Exemplo 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)
Exemplo 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)
Exemplo 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)
Exemplo 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)
Exemplo 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)
Exemplo 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)
Exemplo 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)
Exemplo n.º 8
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))
Exemplo n.º 9
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 generate_strings_list(length=8):
                with self.subTest(name):
                    make_config_groups(session, name=name)
                    self.configgroups.delete(name)
Exemplo n.º 10
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)
Exemplo 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))
Exemplo n.º 12
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))
Exemplo 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))
Exemplo 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)
Exemplo 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)
Exemplo 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)
Exemplo 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))
Exemplo 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))
Exemplo 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))
Exemplo 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))
Exemplo 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)
Exemplo 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))
Exemplo n.º 23
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))
Exemplo n.º 24
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))
Exemplo 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))
Exemplo 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))
Exemplo 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)
Exemplo 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))
Exemplo 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)
Exemplo 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)
Exemplo 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))
Exemplo 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))
Exemplo 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))
Exemplo 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
Exemplo 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