Exemple #1
0
    def setUp(self):
        TestCase.setUp(self)

        self.realm_name = "SE_realm_selfservice"
        self.reset_resolvers_and_realms(
            data.musicians_ldap_resolver, self.realm_name)
        self.selfservice = SelfService(self.driver, self.base_url)
Exemple #2
0
class TestSelfservice(TestCase):
    """TestCase class that tests the selfservice by first creating a policy
       that allows users to access the selfservice and change their OTP Pin
       and then logging in and verifying the text "set PIN" is present.
    """

    def setUp(self):
        TestCase.setUp(self)

        self.realm_name = "SE_realm_selfservice"
        self.reset_resolvers_and_realms(
            data.musicians_ldap_resolver, self.realm_name)
        self.selfservice = SelfService(self.driver, self.base_url)

    def test_selfservice(self):
        """Creates User-Id-Resolvers"""
        self.manage_ui.policy_view.clear_policies()
        Policy(self.manage_ui, "SE_policy_selfservice",
               "selfservice", "setOTPPIN, ", self.realm_name.lower())

        login_user = u"郎"
        login_password = "******"

        self.selfservice.login(
            login_user, login_password, self.realm_name.lower())

        self.selfservice.select_tab(self.selfservice.tab_set_pin)
class TestSelfservice(TestCase):
    """TestCase class that tests the selfservice by first creating a policy
       that allows users to access the selfservice and change their OTP Pin
       and then logging in and verifying the text "set PIN" is present.
    """
    @pytest.fixture(autouse=True)
    def setUp(self):
        self.selfservice = SelfService(self)

    def test_selfservice(self, musicians_realm):
        """Creates User-Id-Resolvers"""
        self.manage_ui.policy_view.clear_policies_via_api()
        Policy(self.manage_ui, "SE_policy_selfservice", "selfservice",
               "setOTPPIN, ", musicians_realm)

        login_user = "******"
        login_password = "******"

        self.selfservice.login(login_user, login_password, musicians_realm)

        self.selfservice.select_tab(self.selfservice.tab_set_pin)
Exemple #4
0
 def setUp(self):
     self.selfservice = SelfService(self.driver, self.base_url,
                                    self.ui_wait_time)
 def setUp(self):
     self.selfservice = SelfService(self)