Esempio n. 1
0
 def test_create_positive_1(self, name):
     """
     @Test: Create new Config-Group
     @Feature: Config-Groups - Positive Create
     @Assert: Config-Groups is created
     """
     with Session(self.browser) as session:
         make_config_groups(session, name=name)
         search = self.configgroups.search(name)
         self.assertIsNotNone(search)
Esempio n. 2
0
 def test_create_negative_1(self, name):
     """
     @Test: Create new config-groups with 256 chars
     @Feature: Config-Groups - Negative Create
     @Assert: Config-Groups is not created with 256 chars
     """
     with Session(self.browser) as session:
         make_config_groups(session, name=name)
         search = self.configgroups.search(name)
         self.assertIsNone(search)
Esempio n. 3
0
    def test_delete_positive(self, name):
        """@Test: Delete selected config-groups

        @Feature: Config-Groups - Positive delete

        @Assert: Config-Groups is deleted

        """
        with Session(self.browser) as session:
            make_config_groups(session, name=name)
            self.configgroups.delete(name)
Esempio n. 4
0
    def test_positive_delete(self):
        """Delete selected config-groups

        @id: 50879d3c-7c38-4294-aae4-0f3f146c9613

        @Assert: Config-Groups is deleted
        """
        with Session(self.browser) as session:
            for name in valid_data_list():
                with self.subTest(name):
                    make_config_groups(session, name=name)
                    self.configgroups.delete(name)
Esempio n. 5
0
    def test_create_positive_2(self, name):
        """@Test: Create new config-groups with 255 chars

        @Feature: Config-Groups - Positive Create

        @Assert: Config-Groups is created with 255 chars

        """
        with Session(self.browser) as session:
            make_config_groups(session, name=name)
            search = self.configgroups.search(name)
            self.assertIsNotNone(search)
Esempio n. 6
0
 def test_create_negative_3(self):
     """
     @Test: Create new config-groups with blank name
     @Feature: Config-Groups - Negative Create
     @Assert: Config-Groups is not created with 256 chars
     """
     name = "    "
     with Session(self.browser) as session:
         make_config_groups(session, name=name)
         error = session.nav.wait_until_element(
             common_locators["name_haserror"])
         self.assertIsNotNone(error)
Esempio n. 7
0
    def test_positive_delete(self):
        """Delete selected config-groups

        @Feature: Config-Groups - Positive delete

        @Assert: Config-Groups is deleted

        """
        with Session(self.browser) as session:
            for name in generate_strings_list(length=8):
                with self.subTest(name):
                    make_config_groups(session, name=name)
                    self.configgroups.delete(name)
    def test_positive_create(self):
        """Create new Config-Group

        @id: b9e170a3-29b1-49e6-bfc6-c48fb0021ecb

        @Assert: Config-Groups is created

        """
        with Session(self.browser) as session:
            for name in valid_data_list():
                with self.subTest(name):
                    make_config_groups(session, name=name)
                    self.assertIsNotNone(self.configgroups.search(name))
    def test_positive_delete(self):
        """Delete selected config-groups

        @id: 50879d3c-7c38-4294-aae4-0f3f146c9613

        @Assert: Config-Groups is deleted

        """
        with Session(self.browser) as session:
            for name in generate_strings_list(length=8):
                with self.subTest(name):
                    make_config_groups(session, name=name)
                    self.configgroups.delete(name)
    def test_positive_delete(self):
        """Delete selected config-groups

        @Feature: Config-Groups - Positive delete

        @Assert: Config-Groups is deleted

        """
        with Session(self.browser) as session:
            for name in generate_strings_list(length=8):
                with self.subTest(name):
                    make_config_groups(session, name=name)
                    self.configgroups.delete(name)
Esempio n. 11
0
    def test_positive_create(self):
        """Create new Config-Group

        @id: b9e170a3-29b1-49e6-bfc6-c48fb0021ecb

        @Assert: Config-Groups is created

        """
        with Session(self.browser) as session:
            for name in valid_data_list():
                with self.subTest(name):
                    make_config_groups(session, name=name)
                    self.assertIsNotNone(self.configgroups.search(name))
    def test_positive_create(self):
        """Create new Config-Group

        @Feature: Config-Groups - Positive Create

        @Assert: Config-Groups is created

        """
        with Session(self.browser) as session:
            for name in valid_data_list():
                with self.subTest(name):
                    make_config_groups(session, name=name)
                    self.assertIsNotNone(self.configgroups.search(name))
Esempio n. 13
0
    def test_positive_create(self):
        """Create new Config-Group

        @Feature: Config-Groups - Positive Create

        @Assert: Config-Groups is created

        """
        with Session(self.browser) as session:
            for name in valid_data_list():
                with self.subTest(name):
                    make_config_groups(session, name=name)
                    self.assertIsNotNone(self.configgroups.search(name))
Esempio n. 14
0
    def test_create_negative_2(self, name):
        """@Test: Create new config-groups with blank name

        @Feature: Config-Groups - Negative Create

        @Assert: Config-Groups is not created

        """

        with Session(self.browser) as session:
            make_config_groups(session, name=name)
            error = session.nav.wait_until_element(
                common_locators["name_haserror"])
            self.assertIsNotNone(error)
Esempio n. 15
0
    def test_positive_delete(self):
        """Delete selected config-groups

        :id: 50879d3c-7c38-4294-aae4-0f3f146c9613

        :expectedresults: Config-Groups is deleted

        :CaseImportance: Critical
        """
        with Session(self) as session:
            for name in valid_data_list():
                with self.subTest(name):
                    make_config_groups(session, name=name)
                    self.configgroups.delete(name)
Esempio n. 16
0
    def test_positive_delete(self):
        """Delete selected config-groups

        :id: 50879d3c-7c38-4294-aae4-0f3f146c9613

        :expectedresults: Config-Groups is deleted

        :CaseImportance: Critical
        """
        with Session(self) as session:
            for name in valid_data_list():
                with self.subTest(name):
                    make_config_groups(session, name=name)
                    self.configgroups.delete(name)
Esempio n. 17
0
    def test_negative_create(self):
        """Try to create config group and use whitespace, blank, tab
        symbol or too long string of different types as its name value

        @Feature: Config-Groups - Negative Create

        @Assert: Config-Groups is not created
        """
        with Session(self.browser) as session:
            for name in invalid_values_list('ui'):
                with self.subTest(name):
                    make_config_groups(session, name=name)
                    self.assertIsNotNone(session.nav.wait_until_element(
                        common_locators['name_haserror']))
                    self.assertIsNone(self.configgroups.search(name))
Esempio n. 18
0
    def test_positive_create(self):
        """Create new Config-Group

        :id: b9e170a3-29b1-49e6-bfc6-c48fb0021ecb

        :expectedresults: Config-Groups is created


        :CaseImportance: Critical
        """
        with Session(self) as session:
            for name in valid_data_list():
                with self.subTest(name):
                    make_config_groups(session, name=name)
                    self.assertIsNotNone(self.configgroups.search(name))
Esempio n. 19
0
    def test_positive_create(self):
        """Create new Config-Group

        :id: b9e170a3-29b1-49e6-bfc6-c48fb0021ecb

        :expectedresults: Config-Groups is created


        :CaseImportance: Critical
        """
        with Session(self) as session:
            for name in valid_data_list():
                with self.subTest(name):
                    make_config_groups(session, name=name)
                    self.assertIsNotNone(self.configgroups.search(name))
Esempio n. 20
0
 def test_delete_positive_1(self, name):
     """
     @Test: Create new config-groups
     @Feature: Config-Groups - Positive delete
     @Assert: Config-Groups is deleted
     """
     with Session(self.browser) as session:
         make_config_groups(session, name=name)
         search = self.configgroups.search(name)
         self.assertIsNotNone(search)
         self.configgroups.delete(
             name, True, drop_locator=locators["config_groups.dropdown"])
         self.assertIsNotNone(session.nav.wait_until_element
                              (common_locators["notif.success"]))
         self.assertIsNone(self.configgroups.search(name))
Esempio n. 21
0
 def test_update_positive_1(self, testdata):
     """
     @Test: Create new config-group
     @Feature: Config-Groups - Positive Update
     @Assert: Config-Groups is updated.
     """
     name = testdata['name']
     new_name = testdata['new_name']
     with Session(self.browser) as session:
         make_config_groups(session, name=name)
         search = self.configgroups.search(name)
         self.assertIsNotNone(search)
         self.configgroups.update(name, new_name)
         search = self.configgroups.search(new_name)
         self.assertIsNotNone(search)
Esempio n. 22
0
    def test_positive_update(self):
        """Update selected config-group

        @id: c8589969-1fdb-4977-b973-3795a36704be

        @Assert: Config-Groups is updated.

        """
        name = gen_string('alpha')
        with Session(self.browser) as session:
            for new_name in generate_strings_list():
                with self.subTest(new_name):
                    make_config_groups(session, name=name)
                    self.assertIsNotNone(self.configgroups.search(name))
                    self.configgroups.update(name, new_name)
                    self.assertIsNotNone(self.configgroups.search(new_name))
    def test_positive_update(self):
        """Update selected config-group

        @Feature: Config-Groups - Positive Update

        @Assert: Config-Groups is updated.

        """
        name = gen_string('alpha')
        with Session(self.browser) as session:
            for new_name in generate_strings_list():
                with self.subTest(new_name):
                    make_config_groups(session, name=name)
                    self.assertIsNotNone(self.configgroups.search(name))
                    self.configgroups.update(name, new_name)
                    self.assertIsNotNone(self.configgroups.search(new_name))
    def test_negative_create(self):
        """Try to create config group and use whitespace, blank, tab
        symbol or too long string of different types as its name value

        @Feature: Config-Groups - Negative Create

        @Assert: Config-Groups is not created
        """
        with Session(self.browser) as session:
            for name in invalid_values_list('ui'):
                with self.subTest(name):
                    make_config_groups(session, name=name)
                    self.assertIsNotNone(
                        session.nav.wait_until_element(
                            common_locators['name_haserror']))
                    self.assertIsNone(self.configgroups.search(name))
Esempio n. 25
0
    def test_positive_update(self):
        """Update selected config-group

        @id: c8589969-1fdb-4977-b973-3795a36704be

        @Assert: Config-Groups is updated.

        """
        name = gen_string('alpha')
        with Session(self.browser) as session:
            for new_name in generate_strings_list():
                with self.subTest(new_name):
                    make_config_groups(session, name=name)
                    self.assertIsNotNone(self.configgroups.search(name))
                    self.configgroups.update(name, new_name)
                    self.assertIsNotNone(self.configgroups.search(new_name))
Esempio n. 26
0
    def test_delete_positive(self, name):
        """@Test: Delete selected config-groups

        @Feature: Config-Groups - Positive delete

        @Assert: Config-Groups is deleted

        """

        with Session(self.browser) as session:
            make_config_groups(session, name=name)
            search = self.configgroups.search(name)
            self.assertIsNotNone(search)
            self.configgroups.delete(
                name, drop_locator=locators['config_groups.dropdown'])
            self.assertIsNone(self.configgroups.search(name))
Esempio n. 27
0
    def test_update_positive(self, new_name):
        """@Test: Update selected config-group

        @Feature: Config-Groups - Positive Update

        @Assert: Config-Groups is updated.

        """
        name = gen_string('alpha')
        with Session(self.browser) as session:
            make_config_groups(session, name=name)
            search = self.configgroups.search(name)
            self.assertIsNotNone(search)
            self.configgroups.update(name, new_name)
            search = self.configgroups.search(new_name)
            self.assertIsNotNone(search)
Esempio n. 28
0
    def test_positive_update(self):
        """Update selected config-group

        @Feature: Config-Groups - Positive Update

        @Assert: Config-Groups is updated.

        """
        name = gen_string('alpha')
        with Session(self.browser) as session:
            for new_name in generate_strings_list():
                with self.subTest(new_name):
                    make_config_groups(session, name=name)
                    self.assertIsNotNone(self.configgroups.search(name))
                    self.configgroups.update(name, new_name)
                    self.assertIsNotNone(self.configgroups.search(new_name))
Esempio n. 29
0
    def test_create_negative(self, name):
        """@Test: Try to create config group and use whitespace, blank, tab
        symbol or too long string of different types as its name value

        @Feature: Config-Groups - Negative Create

        @Assert: Config-Groups is not created

        """
        with Session(self.browser) as session:
            make_config_groups(session, name=name)
            error = session.nav.wait_until_element(
                common_locators['name_haserror'])
            self.assertIsNotNone(error)
            search = self.configgroups.search(name)
            self.assertIsNone(search)
Esempio n. 30
0
    def test_update_positive_1(self, testdata):
        """@Test: Create new config-group

        @Feature: Config-Groups - Positive Update

        @Assert: Config-Groups is updated.

        """
        name = testdata['name']
        new_name = testdata['new_name']
        with Session(self.browser) as session:
            make_config_groups(session, name=name)
            search = self.configgroups.search(name)
            self.assertIsNotNone(search)
            self.configgroups.update(name, new_name)
            search = self.configgroups.search(new_name)
            self.assertIsNotNone(search)
Esempio n. 31
0
    def test_negative_create(self):
        """Try to create config group and use whitespace, blank, tab
        symbol or too long string of different types as its name value

        :id: 1c8d098c-60c2-4dc4-af24-1c8a4cfff5e2

        :expectedresults: Config-Groups is not created

        :CaseImportance: Critical
        """
        with Session(self) as session:
            for name in invalid_values_list('ui'):
                with self.subTest(name):
                    make_config_groups(session, name=name)
                    self.assertIsNotNone(session.nav.wait_until_element(
                        common_locators['name_haserror']))
                    self.assertIsNone(self.configgroups.search(name))
Esempio n. 32
0
    def test_negative_create(self):
        """Try to create config group and use whitespace, blank, tab
        symbol or too long string of different types as its name value

        :id: 1c8d098c-60c2-4dc4-af24-1c8a4cfff5e2

        :expectedresults: Config-Groups is not created

        :CaseImportance: Critical
        """
        with Session(self) as session:
            for name in invalid_values_list('ui'):
                with self.subTest(name):
                    make_config_groups(session, name=name)
                    self.assertIsNotNone(
                        session.nav.wait_until_element(
                            common_locators['name_haserror']))
                    self.assertIsNone(self.configgroups.search(name))
Esempio n. 33
0
    def test_delete_positive_1(self, name):
        """@Test: Create new config-groups

        @Feature: Config-Groups - Positive delete

        @Assert: Config-Groups is deleted

        """

        with Session(self.browser) as session:
            make_config_groups(session, name=name)
            search = self.configgroups.search(name)
            self.assertIsNotNone(search)
            self.configgroups.delete(
                name, True, drop_locator=locators["config_groups.dropdown"])
            self.assertIsNotNone(
                session.nav.wait_until_element(
                    common_locators["notif.success"]))
            self.assertIsNone(self.configgroups.search(name))
Esempio n. 34
0
    def test_positive_update(self):
        """Update selected config-group

        :id: c8589969-1fdb-4977-b973-3795a36704be

        :expectedresults: Config-Groups is updated.


        :CaseImportance: Critical
        """
        name = gen_string('alpha')
        with Session(self) as session:
            make_config_groups(session, name=name)
            self.assertIsNotNone(self.configgroups.search(name))
            for new_name in generate_strings_list():
                with self.subTest(new_name):
                    self.configgroups.update(name, new_name)
                    self.assertIsNotNone(self.configgroups.search(new_name))
                    name = new_name
Esempio n. 35
0
    def test_positive_update(self):
        """Update selected config-group

        :id: c8589969-1fdb-4977-b973-3795a36704be

        :expectedresults: Config-Groups is updated.


        :CaseImportance: Critical
        """
        name = gen_string('alpha')
        with Session(self) as session:
            make_config_groups(session, name=name)
            self.assertIsNotNone(self.configgroups.search(name))
            for new_name in generate_strings_list():
                with self.subTest(new_name):
                    self.configgroups.update(name, new_name)
                    self.assertIsNotNone(self.configgroups.search(new_name))
                    name = new_name