class TestQuestionBankCRUD:
    def setup(self):
        self.driver = DriverUtils.get_driver()
        DriverUtils.set_switch(True)
        self.resources_sort_page = ResourcesSortPage(self.driver)
        self.course_label_page = CourseLabelPage(self.driver)

    def teardown(self):
        DriverUtils.quit_driver()

    @pytest.mark.run(order=24)
    # @pytest.mark.skipif(condition=True, reason=None)
    def test_add_course_label(self):
        self.resources_sort_page.refresh_page()
        self.resources_sort_page.click_resources_manage()
        self.course_label_page.click_course_label_btn()
        self.course_label_page.click_resources_sort_input()
        self.course_label_page.select_third_sort()
        self.course_label_page.click_new_btn()
        self.course_label_page.input_label_sort("标签{}".format(
            time.strftime("%M%S")))
        self.course_label_page.input_label_name1(123)
        self.course_label_page.click_add_label_btn()
        self.course_label_page.input_label_name2("测试")
        self.course_label_page.click_remove_label_btn()
        self.course_label_page.click_determine_btn()

    @pytest.mark.run(order=26)
    # @pytest.mark.skipif(condition=True, reason=None)
    def test_remove_label_sort(self):
        self.course_label_page.click_remove1_label_btn()
        self.course_label_page.click_determine1_btn()
Ejemplo n.º 2
0
class TestQuestionBankCRUD:

    def setup(self):
        self.driver = DriverUtils.get_driver()
        DriverUtils.set_switch(True)
        self.resources_sort_page = ResourcesSortPage(self.driver)
        self.question_bank_page = QuestionBankPage(self.driver)

    def teardown(self):
        DriverUtils.quit_driver()

    @pytest.mark.run(order=41)
    # @pytest.mark.skipif(condition=True, reason=None)
    def test_question_bank_query(self):
        self.question_bank_page.refresh_page()
        self.resources_sort_page.click_resources_manage()
        self.question_bank_page.click_papers_and_questions_btn()
        self.question_bank_page.click_question_bank_btn()
        self.question_bank_page.click_course_name_search()
        self.question_bank_page.input_courses_name("测试")
        self.question_bank_page.click_keys_enter(self.question_bank_page.course_name_search)
        self.question_bank_page.refresh_page()
        self.question_bank_page.click_time_filter()
        self.question_bank_page.click_last_week_btn()
        self.question_bank_page.click_time_filter()
        self.question_bank_page.click_last_month_btn()
        self.question_bank_page.refresh_page()
        self.question_bank_page.click_status_filter()
        self.question_bank_page.click_enable_btn()
        self.question_bank_page.click_status_filter()
        self.question_bank_page.click_disable_btn()

    @pytest.mark.run(order=42)
    # @pytest.mark.skipif(condition=True, reason=None)
    def test_add_question_bank(self):
        self.question_bank_page.refresh_page()
        self.question_bank_page.click_new_btn()
        self.question_bank_page.input_question_bank_name("测试题库")
        self.question_bank_page.click_sort_input()
        self.question_bank_page.select_third_sort()
        self.question_bank_page.click_determine_btn()
        self.question_bank_page.click_determine5_btn()
        self.question_bank_page.switch_window()
        self.question_bank_page.click_single_choice_questions_btn()
        self.question_bank_page.input_subject(123)
        self.question_bank_page.input_option_a(123)
        self.question_bank_page.input_option_b(321)
        self.question_bank_page.select_answer()
        self.question_bank_page.click_determine1_btn()
        self.question_bank_page.click_determine2_btn()

    @pytest.mark.run(order=44)
    # @pytest.mark.skipif(condition=True, reason=None)
    def test_disable_and_remove(self):
        self.question_bank_page.refresh_page()
        self.question_bank_page.click_disable1_btn()
        self.question_bank_page.click_determine3_btn()
        self.question_bank_page.click_remove_btn()
        self.question_bank_page.click_determine3_btn()
class TestStudyResourcesCRUD:
    def setup(self):
        self.driver = DriverUtils.get_driver()
        DriverUtils.set_switch(True)
        self.study = StudyResourcesManagePage(self.driver)
        self.resources_sort_page = ResourcesSortPage(self.driver)

    def teardown(self):
        DriverUtils.quit_driver()

    @pytest.mark.run(order=27)
    # @pytest.mark.skipif(condition=True, reason=None)
    def test_video_library_query(self):
        self.resources_sort_page.refresh_page()
        self.resources_sort_page.click_resources_manage()
        self.study.click_study_resources_manage()
        self.study.click_search()
        self.study.input_search_content("测试")
        self.study.click_keys_enter(self.study.resources_name_search)
        self.study.refresh_page()
        self.study.click_status_filter1()
        self.study.click_transcoding_successful()
        self.study.click_status_filter1()
        self.study.click_transcoding_fail()

    @pytest.mark.run(order=30)
    # @pytest.mark.skipif(condition=True, reason=None)
    def test_database_query(self):
        self.study.refresh_page()
        self.study.click_database_btn()
        self.study.click_type_filter()
        self.study.click_first_type_btn()
        self.study.refresh_page()
        self.study.click_database_btn()
        self.study.click_time_filter()
        self.study.click_first_time_filter()
        self.study.click_time_filter()
        self.study.click_second_time_filter()
        self.study.refresh_page()
        self.study.click_database_btn()
        self.study.click_status_filter2()
        self.study.click_enable_btn()
        self.study.click_status_filter2()
        self.study.click_disable_btn()

    @pytest.mark.run(order=31)
    # @pytest.mark.skipif(condition=True, reason=None)
    def test_more_operation(self):
        self.study.refresh_page()
        self.study.click_database_btn()
        self.study.click_related_courses()
        self.study.select_related_courses()
        self.study.click_related_courses_determine()
        self.study.click_more_enable()
        self.study.refresh_page()
        self.study.click_database_btn()
        self.study.click_download_btn()
Ejemplo n.º 4
0
class TestPaperLibraryCRUD:

    def setup(self):
        self.driver = DriverUtils.get_driver()
        DriverUtils.set_switch(True)
        self.resources_sort_page = ResourcesSortPage(self.driver)
        self.question_bank_page = QuestionBankPage(self.driver)
        self.paper_page = PaperLibraryPage(self.driver)

    def teardown(self):
        DriverUtils.quit_driver()

    @pytest.mark.run(order=46)
    # @pytest.mark.skipif(condition=True, reason=None)
    def test_question_bank_query(self):
        self.question_bank_page.refresh_page()
        self.resources_sort_page.click_resources_manage()
        self.question_bank_page.click_papers_and_questions_btn()
        self.paper_page.click_paper_btn()
        self.question_bank_page.click_course_name_search()
        self.question_bank_page.input_courses_name("测试")
        self.question_bank_page.click_keys_enter(self.question_bank_page.course_name_search)
        self.question_bank_page.refresh_page()
        self.question_bank_page.click_time_filter()
        self.question_bank_page.click_last_week_btn()
        self.question_bank_page.click_time_filter()
        self.question_bank_page.click_last_month_btn()
        self.question_bank_page.refresh_page()
        self.paper_page.click_status_filter()
        self.question_bank_page.click_enable_btn()
        self.paper_page.click_status_filter()
        self.question_bank_page.click_disable_btn()

    @pytest.mark.run(order=48)
    # @pytest.mark.skipif(condition=True, reason=None)
    def test_add_random_paper(self):
        self.paper_page.refresh_page()
        self.paper_page.click_paper_btn()
        self.paper_page.click_new_btn()
        self.paper_page.click_random_papers_btn()
        self.paper_page.click_question_bank_select_btn1()
        self.paper_page.click_select_all1()
        self.paper_page.click_determine2_btn()
        self.paper_page.input_select_question(3)
        self.paper_page.input_score1(4)
        self.paper_page.input_random_paper("随机试卷{}".format(time.strftime("%H%M%S")))
        self.paper_page.click_determine3_btn()

    @pytest.mark.run(order=50)
    # @pytest.mark.skipif(condition=True, reason=None)
    def test_remove_paper(self):
        self.paper_page.refresh_page()
        self.paper_page.click_disable1_btn()
        self.paper_page.click_determine4_btn()
        self.paper_page.click_remove1_btn()
        self.paper_page.click_determine5_btn()
Ejemplo n.º 5
0
class TestResourcesSortCRUD:

    def setup(self):
        self.driver = DriverUtils.get_driver()
        DriverUtils.set_switch(True)
        self.questionnaire_template_page = QuestionnaireTemplatePage(self.driver)
        self.resources_sort_page = ResourcesSortPage(self.driver)

    def teardown(self):
        DriverUtils.quit_driver()

    @pytest.mark.run(order=59.2)
    # @pytest.mark.skipif(condition=True, reason=None)
    def test_query(self):
        self.questionnaire_template_page.refresh_page()
        self.resources_sort_page.click_resources_manage()
        self.questionnaire_template_page.click_questionnaire_template_btn()
        self.questionnaire_template_page.input_keyword("测试")
        self.questionnaire_template_page.click_keys_enter(self.questionnaire_template_page.keyword_search)
        self.questionnaire_template_page.refresh_page()
        self.questionnaire_template_page.click_time_filter_box()
        self.questionnaire_template_page.click_last_week_btn()
        self.questionnaire_template_page.click_time_filter_box()
        self.questionnaire_template_page.click_last_month_btn()
        self.questionnaire_template_page.refresh_page()
        self.questionnaire_template_page.click_status_filter()
        self.questionnaire_template_page.click_enable_btn()
        self.questionnaire_template_page.click_status_filter()
        self.questionnaire_template_page.click_disable_btn()

    @pytest.mark.run(order=59.4)
    # @pytest.mark.skipif(condition=True, reason=None)
    def test_add(self):
        self.questionnaire_template_page.click_add_btn()
        self.questionnaire_template_page.input_template_name("问卷模板{}".format(time.strftime("%M%S")))
        self.questionnaire_template_page.click_determine_btn()
        self.questionnaire_template_page.click_determine_btn1()
        self.questionnaire_template_page.click_single_choice_btn()
        self.questionnaire_template_page.input_topic("单选题题目")
        self.questionnaire_template_page.input_option_input("111")
        self.questionnaire_template_page.click_add_option_btn()
        self.questionnaire_template_page.input_option_input2("222")
        self.questionnaire_template_page.click_determine_btn2()

    @pytest.mark.run(order=59.6)
    # @pytest.mark.skipif(condition=True, reason=None)
    def test_more(self):
        self.questionnaire_template_page.click_questionnaire_template_btn()
        self.questionnaire_template_page.click_disable_btn1()
        self.questionnaire_template_page.click_determine_btn3()
        self.questionnaire_template_page.click_remove_btn()
        self.questionnaire_template_page.click_determine_btn3()
Ejemplo n.º 6
0
class TestCooperativeOrganizationCRUD:
    def setup(self):
        self.driver = DriverUtils.get_driver()
        DriverUtils.set_switch(True)
        self.resources_sort_page = ResourcesSortPage(self.driver)
        self.coo_organ_page = CooperativeOrganizationPage(self.driver)

    def teardown(self):
        DriverUtils.quit_driver()

    @pytest.mark.run(order=57)
    # @pytest.mark.skipif(condition=True, reason=None)
    def test_query(self):
        self.resources_sort_page.refresh_page()
        self.resources_sort_page.click_resources_manage()
        self.coo_organ_page.click_lecturer_and_tutor_btn()
        self.coo_organ_page.click_coo_organ_btn()
        self.coo_organ_page.input_name_search("嘉为")
        self.coo_organ_page.click_keys_enter(
            self.coo_organ_page.keyword_search)
        self.coo_organ_page.refresh_page()
        self.coo_organ_page.click_status_filter()
        self.coo_organ_page.click_enable_btn()
        self.coo_organ_page.click_status_filter()
        self.coo_organ_page.click_disable_btn()
        self.coo_organ_page.refresh_page()

    @pytest.mark.run(order=58)
    # @pytest.mark.skipif(condition=True, reason=None)
    def test_add(self):
        self.coo_organ_page.refresh_page()
        self.coo_organ_page.click_new_btn()
        self.coo_organ_page.input_mechanism_name("合作机构{}".format(
            time.strftime("%M%S")))
        self.coo_organ_page.click_determine_btn()

    @pytest.mark.run(order=59)
    # @pytest.mark.skipif(condition=True, reason=None)
    def test_remove_and_disable(self):
        self.coo_organ_page.refresh_page()
        self.coo_organ_page.click_manage_btn()
        self.coo_organ_page.click_disable1_btn()
        self.coo_organ_page.click_determine1_btn()
        self.coo_organ_page.click_remove_btn()
        self.coo_organ_page.click_determine1_btn()
Ejemplo n.º 7
0
class TestInstructorInformationCRUD:

    def setup(self):
        self.driver = DriverUtils.get_driver()
        DriverUtils.set_switch(True)
        self.resources_sort_page = ResourcesSortPage(self.driver)
        self.ins_info_page = InstructorInformationPage(self.driver)

    def teardown(self):
        DriverUtils.quit_driver()

    @pytest.mark.run(order=52)
    # @pytest.mark.skipif(condition=True, reason=None)
    def test_query(self):
        self.resources_sort_page.refresh_page()
        self.resources_sort_page.click_resources_manage()
        self.ins_info_page.click_lecturer_and_tutor_btn()
        self.ins_info_page.click_lecturer_info_btn()
        self.ins_info_page.input_keyword_search("张三")
        self.ins_info_page.click_keys_enter(self.ins_info_page.keyword_search)
        self.ins_info_page.refresh_page()
        self.ins_info_page.click_lecturer_type_filter()
        self.ins_info_page.click_inside_lecturer()
        self.ins_info_page.click_lecturer_type_filter()
        self.ins_info_page.click_outside_lecturer()
        self.ins_info_page.refresh_page()
        self.ins_info_page.click_teach_type_filter()
        self.ins_info_page.click_first_btn()
        self.ins_info_page.refresh_page()
        self.ins_info_page.click_lecturer_level_filter()
        self.ins_info_page.click_primary_lecturer()
        self.ins_info_page.click_lecturer_level_filter()
        self.ins_info_page.click_intermediate_lecturer()
        self.ins_info_page.refresh_page()
        self.ins_info_page.click_status_filter()
        self.ins_info_page.click_enable_btn()
        self.ins_info_page.click_status_filter()
        self.ins_info_page.click_disable_btn()

    @pytest.mark.run(order=53)
    # @pytest.mark.skipif(condition=True, reason=None)
    def test_add_outside_lecturer(self):
        self.resources_sort_page.refresh_page()
        self.ins_info_page.click_add_lecturer_btn()
        self.ins_info_page.click_add_outside_lecturer()
        self.ins_info_page.input_lecturer_name("张三{}".format(time.strftime("%M%S")))
        self.ins_info_page.input_account("{}".format(time.strftime("%H%M%S")))
        self.ins_info_page.select_sex_radio()
        self.ins_info_page.click_determine_btn()

    @pytest.mark.run(order=54)
    # @pytest.mark.skipif(condition=True, reason=None)
    def test_modify_lecturer_info(self):
        self.ins_info_page.refresh_page()
        self.ins_info_page.click_name_btn()
        self.ins_info_page.clear_lecturer_name_input()
        self.ins_info_page.input_lecturer_name("修改后{}".format(time.strftime("%M%S")))
        self.ins_info_page.clear(self.ins_info_page.account_input)
        self.ins_info_page.input_account("{}".format(time.strftime("%H%M%S")))
        self.ins_info_page.click_determine_btn()

    @pytest.mark.run(order=55)
    # @pytest.mark.skipif(condition=True, reason=None)
    def test_remove_and_disable(self):
        self.ins_info_page.refresh_page()
        self.ins_info_page.click_disable1_btn()
        self.ins_info_page.click_determine1_btn()

    @pytest.mark.run(order=56)
    # @pytest.mark.skipif(condition=True, reason=None)
    def test_add_inside_lecturer(self):
        self.ins_info_page.refresh_page()
        self.ins_info_page.click_add_lecturer_btn()
        self.ins_info_page.click_add_inside_lecturer()
        self.ins_info_page.click_lecturer_name_input1()
        self.ins_info_page.click_select_inside_lecturer()
        self.ins_info_page.click_determine2_btn()
        self.ins_info_page.click_determine3_btn()
Ejemplo n.º 8
0
 def setup(self):
     self.driver = DriverUtils.get_driver()
     DriverUtils.set_switch(True)
     self.resources_sort_page = ResourcesSortPage(self.driver)
     self.ins_info_page = InstructorInformationPage(self.driver)
 def setup(self):
     self.driver = DriverUtils.get_driver()
     DriverUtils.set_switch(True)
     self.face_page = FaceToFaceCoursePage(self.driver)
     self.resources_sort_page = ResourcesSortPage(self.driver)
class TestFaceToFaceCourseCRUD:
    def setup(self):
        self.driver = DriverUtils.get_driver()
        DriverUtils.set_switch(True)
        self.face_page = FaceToFaceCoursePage(self.driver)
        self.resources_sort_page = ResourcesSortPage(self.driver)

    def teardown(self):
        DriverUtils.quit_driver()

    @pytest.mark.run(order=37)
    # @pytest.mark.skipif(condition=True, reason=None)
    def test_course_query(self):
        self.face_page.refresh_page()
        self.resources_sort_page.click_resources_manage()
        self.face_page.click_face_to_face_course_btn()
        self.face_page.click_course_name_search()
        self.face_page.input_courses_name("测试")
        self.face_page.click_keys_enter(self.face_page.course_name_search)
        self.face_page.refresh_page()
        self.face_page.click_time_filter()
        self.face_page.click_last_week_btn()
        self.face_page.click_time_filter()
        self.face_page.click_last_month_btn()
        self.face_page.refresh_page()
        self.face_page.click_status_filter()
        self.face_page.click_enable_btn()

    @pytest.mark.run(order=38)
    # @pytest.mark.skipif(condition=True, reason=None)
    def test_add_course(self):
        self.face_page.click_new_courses()
        self.face_page.input_courses_name1("测试{}".format(
            time.strftime("%H%M%S")))
        self.face_page.click_resources_sort_input()
        self.face_page.select_courses_sort()
        self.face_page.input_credit(3)
        self.face_page.input_class_hours(2)
        self.face_page.click_save_and_publish()

    @pytest.mark.run(order=39)
    # @pytest.mark.skipif(condition=True, reason=None)
    def test_modify_course_content(self):
        self.face_page.refresh_page()
        self.face_page.click_course_name_btn()
        self.face_page.clear_courses_name_input()
        self.face_page.input_courses_name1("修改后{}".format(
            time.strftime("%H%M%S")))
        self.face_page.clear(self.face_page.credit_input1)
        self.face_page.input(self.face_page.credit_input1, 5)
        self.face_page.clear(self.face_page.class_hours1)
        self.face_page.input(self.face_page.class_hours1, 6)
        self.face_page.click(self.face_page.save)

    @pytest.mark.run(order=40)
    # @pytest.mark.skipif(condition=True, reason=None)
    def test_more(self):
        self.face_page.refresh_page()
        self.face_page.click_disable1_btn()
        self.face_page.click_determine_btn()
        self.face_page.click_remove_btn()
        self.face_page.click_determine_btn()
Ejemplo n.º 11
0
 def setup(self):
     self.driver = DriverUtils.get_driver()
     DriverUtils.set_switch(True)
     self.resources_sort_page = ResourcesSortPage(self.driver)
     self.coo_organ_page = CooperativeOrganizationPage(self.driver)
Ejemplo n.º 12
0
 def setup(self):
     self.driver = DriverUtils.get_driver()
     DriverUtils.set_switch(True)
     self.resources_sort_page = ResourcesSortPage(self.driver)
     self.question_bank_page = QuestionBankPage(self.driver)
     self.paper_page = PaperLibraryPage(self.driver)
 def setup(self):
     self.driver = DriverUtils.get_driver()
     DriverUtils.set_switch(True)
     self.study = StudyResourcesManagePage(self.driver)
     self.resources_sort_page = ResourcesSortPage(self.driver)
 def setup(self):
     self.driver = DriverUtils.get_driver()
     DriverUtils.set_switch(True)
     self.resources_sort_page = ResourcesSortPage(self.driver)
     self.course_label_page = CourseLabelPage(self.driver)
class TestOnlineCourseManageCRUD:
    def setup(self):
        self.driver = DriverUtils.get_driver()
        DriverUtils.set_switch(True)
        self.online_course = OnlineCourseManagePage(self.driver)
        self.resources_sort_page = ResourcesSortPage(self.driver)

    def teardown(self):
        DriverUtils.quit_driver()

    @pytest.mark.run(order=33)
    # @pytest.mark.skipif(condition=True, reason=None)
    def test_course_query(self):
        self.online_course.refresh_page()
        self.resources_sort_page.click_resources_manage()
        self.online_course.click_online_course_manage_btn()
        self.online_course.input_courses_name("测试")
        self.online_course.click_keys_enter(
            self.online_course.course_name_search)
        self.online_course.refresh_page()
        self.online_course.click_status_filter()
        self.online_course.click_enable_btn()
        self.online_course.click_status_filter()
        self.online_course.click_disable_btn()

    @pytest.mark.run(order=34)
    # @pytest.mark.skipif(condition=True, reason=None)
    def test_add_course(self):
        self.online_course.refresh_page()
        self.online_course.click_new_courses()
        self.online_course.click_courses_name_input()
        self.online_course.input_courses_name1("测试{}".format(
            time.strftime("%H%M%S")))
        self.online_course.click_resources_sort_input()
        self.online_course.select_courses_sort()
        self.online_course.click_next_btn()
        self.online_course.click_add_section()
        self.online_course.input_section_name("小节{}".format(
            time.strftime("%H%M%S")))
        self.online_course.click_determine1_btn()
        self.online_course.click_add_learn_content_btn()
        self.online_course.click_content_type()
        self.online_course.click_video_btn()
        self.online_course.click_select_video_btn()
        self.online_course.click_video_file_btn()
        self.online_course.click_check_video_btn()
        time.sleep(2)
        js = "window.scrollTo(0, 10000)"
        self.driver.execute_script(js)
        self.online_course.click_determine2_btn()
        self.online_course.click_determine3_btn()
        self.online_course.click_add_learn_content_btn()
        self.online_course.click_content_type()
        self.online_course.click_learn_data_btn()
        self.online_course.click_select_data_btn()
        self.online_course.click_check_data_btn()
        self.online_course.click_determine2_btn()
        self.online_course.click_determine3_btn()
        self.online_course.click_release_btn()

    @pytest.mark.run(order=35)
    # @pytest.mark.skipif(condition=True, reason=None)
    def test_modify_course_content(self):
        self.resources_sort_page.refresh_page()
        self.online_course.click_courses_name_btn()
        self.online_course.click_courses_content_btn()
        self.online_course.click_remove1_btn()
        self.online_course.click_determine4_btn()
        self.online_course.click_go_back_btn()

    @pytest.mark.run(order=36)
    # @pytest.mark.skipif(condition=True, reason=None)
    def test_more(self):
        self.online_course.refresh_page()
        self.online_course.click_disable1_btn()
        self.online_course.click_determine5_btn()
        self.online_course.click_remove2_btn()
        self.online_course.click_determine5_btn()
Ejemplo n.º 16
0
class TestResourcesSortCRUD:

    def setup(self):
        self.driver = DriverUtils.get_driver()
        DriverUtils.set_switch(True)
        self.resources_sort_page = ResourcesSortPage(self.driver)

    def teardown(self):
        DriverUtils.quit_driver()

    @pytest.mark.run(order=19)
    # @pytest.mark.skipif(condition=True, reason=None)
    def test_add_resources_sort(self):
        self.resources_sort_page.refresh_page()
        self.resources_sort_page.click_resources_manage()
        self.resources_sort_page.click_add_btn()
        self.resources_sort_page.select_parent_sort()
        self.resources_sort_page.click_blank_space()
        self.resources_sort_page.input_sort_name("三级分类{}".format(time.strftime("%M%S")))
        self.resources_sort_page.click_determine_btn()

    @pytest.mark.run(order=21)
    # @pytest.mark.skipif(condition=True, reason=None)
    def test_move_up_and_down(self):
        self.resources_sort_page.click_move_up_btn()
        self.resources_sort_page.click_move_down_btn()

    @pytest.mark.run(order=22)
    # @pytest.mark.skipif(condition=True, reason=None)
    def test_remove_resources_sort(self):
        self.resources_sort_page.input_sort_name_search("三级分类")
        self.resources_sort_page.click_keys_enter(self.resources_sort_page.sort_name_search)
        self.resources_sort_page.click_remove_btn()
        self.resources_sort_page.click_remove_determine_btn()
 def setup(self):
     self.driver = DriverUtils.get_driver()
     DriverUtils.set_switch(True)
     self.online_course = OnlineCourseManagePage(self.driver)
     self.resources_sort_page = ResourcesSortPage(self.driver)
Ejemplo n.º 18
0
 def setup(self):
     self.driver = DriverUtils.get_driver()
     DriverUtils.set_switch(True)
     self.questionnaire_template_page = QuestionnaireTemplatePage(self.driver)
     self.resources_sort_page = ResourcesSortPage(self.driver)