How to use _test_create_group method in tempest

Best Python code snippet using tempest_python

test_groups.py

Source:test_groups.py Github

copy

Full Screen

...21 return helpers.gen_random_resource_name("group")22 @property23 def group_description(self):24 return helpers.gen_random_resource_name('description')25 def _test_create_group(self, group_name, group_desc=None):26 self.groups_page.create_group(name=group_name, description=group_desc)27 self.assertTrue(28 self.groups_page.find_message_and_dismiss(messages.SUCCESS))29 self.assertFalse(30 self.groups_page.find_message_and_dismiss(messages.ERROR))31 self.assertTrue(self.groups_page.is_group_present(group_name))32 def _test_delete_group(self, group_name):33 self.groups_page.delete_group(name=group_name)34 self.assertTrue(35 self.groups_page.find_message_and_dismiss(messages.SUCCESS))36 self.assertFalse(37 self.groups_page.find_message_and_dismiss(messages.ERROR))38 self.assertFalse(self.groups_page.is_group_present(group_name))39 def test_create_delete_group(self):40 """Tests ability to create and delete a group"""41 group_name = self.group_name42 self._test_create_group(group_name)43 self._test_delete_group(group_name)44 def test_edit_group(self):45 """Tests ability to edit group name and description"""46 group_name = self.group_name47 self._test_create_group(group_name)48 new_group_name = self.group_name49 new_group_desc = self.group_description50 self.groups_page.edit_group(group_name, new_group_name, new_group_desc)51 self.assertTrue(52 self.groups_page.find_message_and_dismiss(messages.SUCCESS))53 self.assertFalse(54 self.groups_page.find_message_and_dismiss(messages.ERROR))55 self.assertTrue(self.groups_page.is_group_present(new_group_name))...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run tempest automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful