def test_question_2(select_driver): print("second question ") questions_second = AskQuestion(select_driver) questions_second.second_question(second_question_enter) result = questions_second.valid_second_question() print("Result: " + str(result)) assert result == str(second_question_enter)
def test_question_3(select_driver): print("third question") questions_third = AskQuestion(select_driver) questions_third.third_question(third_question_enter) result = questions_third.valid_third_question() print("Result: " + str(result)) assert result == str(third_question_enter)
def test_question_5(select_driver): print("five question") questions_five = AskQuestion(select_driver) questions_five.five_question(five_question_enter) result = questions_five.valid_five_question() print("Result: " + str(result)) assert result == str(five_question_enter)
def test_question_4(select_driver): print("four question") questions_four = AskQuestion(select_driver) questions_four.four_question(four_question_enter) result = questions_four.valid_four_question() print("Result: " + str(result)) #assert result == True assert result == str(four_question_enter)
def test_question_first(select_driver): print("first question ") questions_first = AskQuestion(select_driver) questions_first.first_question(first_question_enter) result = questions_first.valid_first_question() print("Result: " + str(result)) #assert result == True assert result == str(first_question_enter)
def test_question_9(select_driver): print(" nine question ") questions_nine = AskQuestion(select_driver) questions_nine.nine_question(nine_question_enter) result = questions_nine.valid_nine_question() print("Result: " + str(result)) #assert result == True assert result == str(nine_question_enter)
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)
class TestAskquestionSurvey(unittest.TestCase): log = cl.customLogger(logging.DEBUG) @pytest.fixture(autouse=True) def objectSetup(self, start_survey): self.question = AskQuestion(start_survey) @pytest.mark.run(order=4) def test_askquestion(self): print("start question on survey") self.question.first_question(first_question_enter) @pytest.mark.run(order=5) def test_question_sec(self): print("question_second ") self.question.second_question(second_question_enter) @pytest.mark.run(order=6) def test_question_third(self): print("question_third ") self.question.third_question(third_question_enter) @pytest.mark.run(order=7) def test_question_four(self): print("question_four ") self.question.four_question(four_question_enter) @pytest.mark.run(order=8) def test_question_five(self): print("question_five ") self.question.five_question(five_question_enter) @pytest.mark.run(order=9) def test_question_six(self): print("question_six ") self.question.six_question(six_question_enter) @pytest.mark.run(order=10) def test_question_seven(self): print("question_seven ") self.question.seven_question(seven_question_enter) @pytest.mark.run(order=11) def test_question_eight(self): print("question_eight ") self.question.eight_question(eight_question_enter) @pytest.mark.run(order=12) def test_question_nine(self): print("question_nine ") self.question.nine_question(nine_question_enter) @pytest.mark.run(order=13) def test_question_ten(self): print("question_second ") self.question.ten_question(ten_question_enter)
def objectSetup(self, start_survey): self.question = AskQuestion(start_survey)
def test_question_10(select_driver): print("ten question") questions_ten = AskQuestion(select_driver) questions_ten.ten_question(ten_question_enter) result = questions_ten.valid_ten_question() print("Result: " + str(result))