Exemplo n.º 1
0
def start_survey():
    get_driver = Browser_Factory(one_time_browser_setup)
    driver = get_driver.select_browser()
    lg = Login(driver)
    lg.startlogin(username, password)
    cs = CreateSurvey(driver)
    cs.start_create_survey(first_survey_name)
    return driver
def test_validLogin(select_driver):
    print("Valid Login Stared")
    lp = Login(select_driver)
    lp.startlogin(username, password)
    result = lp.login_successful()
    print("Result: " + str(result))

    assert result == True
Exemplo n.º 3
0
    def start_app(self):

        log = Login(self.driver)
        log.startlogin(username, password)
        cre_survey = CreateSurvey(self.driver)
        cre_survey.start_create_survey(first_survey_name)

        sur_operation = StartSurvey(self.driver)
        sur_operation.start_survey_operation(new_survey_title, new_page_title)

        enter_questions = AskQuestion(self.driver)
        enter_questions.first_question(first_question_enter)
        enter_questions.second_question(second_question_enter)
        enter_questions.third_question(third_question_enter)
        enter_questions.four_question(four_question_enter)
Exemplo n.º 4
0
class TestLoginDemo(unittest.TestCase):
    log = cl.customLogger(logging.DEBUG)

    @pytest.fixture(autouse=True)
    def objectSetup(self, one_time_browser_setup):
        self.login_start = Login(one_time_browser_setup)

    # @pytest.mark.run(order=1)
    # def test_Failed_Valid(self):
    #     print("InvalidLogin")
    #     self.login_start.startlogin(usernamefaili, password)
    #     result = self.login_start.login_failed()
    #     assert result == True

    @pytest.mark.run(order=1)
    def test_Login_Valid(self):
        print("valid login started")
        self.login_start.startlogin(username, password)
        result = self.login_start.login_successful()
        assert result == True
Exemplo n.º 5
0
def start_login():
    get_driver = Browser_Factory(one_time_browser_setup)
    driver = get_driver.select_browser()
    lg = Login(driver)
    lg.startlogin(username, password)
    return driver