def test_positive_create(self): """Create new Compute Profile using different names @Feature: Compute Profile - Positive Create @Assert: Compute Profile is created """ with Session(self.browser) as session: for name in valid_data_list(): with self.subTest(name): make_compute_profile(session, name=name) self.assertIsNotNone(self.compute_profile.search(name))
def test_positive_create(self): """Create new Compute Profile using different names @id: 138a3e6f-7eb5-4204-b48d-edc6ce363576 @Assert: Compute Profile is created """ with Session(self.browser) as session: for name in valid_data_list(): with self.subTest(name): make_compute_profile(session, name=name) self.assertIsNotNone(self.compute_profile.search(name))
def test_positive_delete(self): """Delete Compute Profile entity @Feature: Compute Profile - Positive Delete @Assert: Compute Profile is deleted successfully. """ with Session(self.browser) as session: for name in generate_strings_list(length=7): with self.subTest(name): make_compute_profile(session, name=name) self.compute_profile.delete(name)
def test_positive_delete(self): """Delete Compute Profile entity @id: 9029b8ec-44c3-4f41-9ea0-0c13c2add76c @Assert: Compute Profile is deleted successfully. """ with Session(self.browser) as session: for name in generate_strings_list(length=7): with self.subTest(name): make_compute_profile(session, name=name) self.compute_profile.delete(name)
def test_negative_create(self): """Attempt to create Compute Profile using invalid names only @id: 6da73996-c235-45ee-a11e-5b4f0ae75d93 @Assert: Compute Profile is not created """ with Session(self.browser) as session: for name in invalid_values_list('ui'): with self.subTest(name): make_compute_profile(session, name=name) self.assertIsNotNone(session.nav.wait_until_element( common_locators['name_haserror']))
def test_positive_delete(self): """Delete Compute Profile entity :id: 9029b8ec-44c3-4f41-9ea0-0c13c2add76c :expectedresults: Compute Profile is deleted successfully. :CaseImportance: Critical """ with Session(self) as session: for name in valid_data_list(): with self.subTest(name): make_compute_profile(session, name=name) self.compute_profile.delete(name, dropdown_present=True)
def test_negative_create(self): """Attempt to create Compute Profile using invalid names only @id: 6da73996-c235-45ee-a11e-5b4f0ae75d93 @Assert: Compute Profile is not created """ with Session(self.browser) as session: for name in invalid_values_list('ui'): with self.subTest(name): make_compute_profile(session, name=name) self.assertIsNotNone( session.nav.wait_until_element( common_locators['name_haserror']))
def test_positive_delete(self): """Delete Compute Profile entity :id: 9029b8ec-44c3-4f41-9ea0-0c13c2add76c :expectedresults: Compute Profile is deleted successfully. :CaseImportance: Critical """ with Session(self.browser) as session: for name in valid_data_list(): with self.subTest(name): make_compute_profile(session, name=name) self.compute_profile.delete(name, dropdown_present=True)
def test_positive_create(self): """Create new Compute Profile using different names :id: 138a3e6f-7eb5-4204-b48d-edc6ce363576 :expectedresults: Compute Profile is created :CaseImportance: Critical """ with Session(self) as session: for name in valid_data_list(): with self.subTest(name): make_compute_profile(session, name=name) self.assertIsNotNone(self.compute_profile.search(name))
def test_positive_delete(self): """Delete Compute Profile entity :id: 9029b8ec-44c3-4f41-9ea0-0c13c2add76c :expectedresults: Compute Profile is deleted successfully. :CaseImportance: Critical """ with Session(self.browser) as session: for name in generate_strings_list(length=7): with self.subTest(name): make_compute_profile(session, name=name) self.compute_profile.delete(name)
def test_positive_update(self): """Update selected Compute Profile entity using proper names @id: b6dac9a4-8c5d-44d4-91e4-be2813e3ea50 @Assert: Compute Profile is updated. """ name = gen_string('alpha') with Session(self.browser) as session: make_compute_profile(session, name=name) self.assertIsNotNone(self.compute_profile.search(name)) for new_name in generate_strings_list(length=7): with self.subTest(new_name): self.compute_profile.update(name, new_name) self.assertIsNotNone(self.compute_profile.search(new_name)) name = new_name
def test_negative_update(self): """Attempt to update Compute Profile entity using invalid names only @id: cf7d46c2-6edc-43be-b5d4-ba92f10b921b @Assert: Compute Profile is not updated. """ name = gen_string('alpha') with Session(self.browser) as session: make_compute_profile(session, name=name) self.assertIsNotNone(self.compute_profile.search(name)) for new_name in invalid_values_list('ui'): with self.subTest(new_name): self.compute_profile.update(name, new_name) self.assertIsNotNone(session.nav.wait_until_element( common_locators['name_haserror']))
def test_negative_update(self): """Attempt to update Compute Profile entity using invalid names only @id: cf7d46c2-6edc-43be-b5d4-ba92f10b921b @Assert: Compute Profile is not updated. """ name = gen_string('alpha') with Session(self.browser) as session: make_compute_profile(session, name=name) self.assertIsNotNone(self.compute_profile.search(name)) for new_name in invalid_values_list('ui'): with self.subTest(new_name): self.compute_profile.update(name, new_name) self.assertIsNotNone( session.nav.wait_until_element( common_locators['name_haserror']))
def test_positive_update(self): """Update selected Compute Profile entity using proper names :id: b6dac9a4-8c5d-44d4-91e4-be2813e3ea50 :expectedresults: Compute Profile is updated. :CaseImportance: Critical """ name = gen_string('alpha') with Session(self) as session: make_compute_profile(session, name=name) self.assertIsNotNone(self.compute_profile.search(name)) for new_name in valid_data_list(): with self.subTest(new_name): self.compute_profile.update(name, new_name) self.assertIsNotNone(self.compute_profile.search(new_name)) name = new_name
def test_positive_update(self): """Update selected Compute Profile entity using proper names :id: b6dac9a4-8c5d-44d4-91e4-be2813e3ea50 :expectedresults: Compute Profile is updated. :CaseImportance: Critical """ name = gen_string('alpha') with Session(self.browser) as session: make_compute_profile(session, name=name) self.assertIsNotNone(self.compute_profile.search(name)) for new_name in valid_data_list(): with self.subTest(new_name): self.compute_profile.update(name, new_name) self.assertIsNotNone(self.compute_profile.search(new_name)) name = new_name