Exemple #1
0
    def test_b1_login_negative_wrong_pwd(self):
        self.driver.get(self.login_url)
        login_page = LogInOutPage(self.driver)

        username = datagen.get_anti_user()
        password = "******"

        login_page.input_user(username)
        login_page.input_pwd(password)

        login_page.click_submit_button()

        assert login_page.is_login_error()
Exemple #2
0
    def test_a1_login_negative_wrong_username(self):
        self.driver.get(self.login_url)
        login_page = LogInOutPage(self.driver)

        username = "******"
        password = datagen.get_current_pwd()

        login_page.input_user(username)
        login_page.input_pwd(password)

        login_page.click_submit_button()

        assert login_page.is_login_error()
Exemple #3
0
    def test_c1_login_positive_login(self):
        self.driver.get(self.login_url)
        login_page = LogInOutPage(self.driver)

        username = datagen.get_current_user()
        password = datagen.get_current_pwd()

        login_page.input_user(username)
        login_page.input_pwd(password)

        login_page.click_submit_button()

        # should check(assert) login is successful
        assert login_page.is_login_success()