コード例 #1
0
 def setUp(self):
     self.driver = init_driver(deviceName="192.168.1.6:5555")
     self.answer_page = AnswerPage(self.driver)
     self.meeting_page = MeetingPage(self.driver)
     self.manage_meeting_page = ManageMeetingPage(self.driver)
     self.meeting_detail_page = MeetingDetailPage(self.driver)
     self.set_layout_out_page = SetLayoutOutPage(self.driver)
コード例 #2
0
 def setUp(self):
     self.driver = init_driver(deviceName='192.168.1.6:5555')
     self.home_page = HomePage(self.driver)
     self.join_meeting_page = JoinMeetingPage(self.driver)
     self.meeting_page = MeetingPage(self.driver)
     self.manage_meeting_page = ManageMeetingPage(self.driver)
     self.meeting_detail_page = MeetingDetailPage(self.driver)
     self.set_layout_out_page = SetLayoutOutPage(self.driver)
コード例 #3
0
class MeetingSteps(Steps):
    def __init__(self, driver):
        super().__init__(driver)
        self.page = MeetingPage(driver)

    def click_like(self):
        self.page.click_like_icon()

    def click_go_button(self):
        self.page.click_go_button()

    def click_meet_member(self):
        self.page.click_meet_member()

    def handle_like(self):
        self.page.handle_like()

    def handle_go_button(self):
        self.page.handle_go_button()
コード例 #4
0
 def __init__(self, driver):
     super().__init__(driver)
     self.page = MeetingPage(driver)
コード例 #5
0
class TestSceneTwo(unittest.TestCase):
    def setUp(self):
        self.driver = init_driver(deviceName='192.168.1.6:5555')
        self.home_page = HomePage(self.driver)
        self.join_meeting_page = JoinMeetingPage(self.driver)
        self.meeting_page = MeetingPage(self.driver)
        self.manage_meeting_page = ManageMeetingPage(self.driver)
        self.meeting_detail_page = MeetingDetailPage(self.driver)
        self.set_layout_out_page = SetLayoutOutPage(self.driver)

    def test_scene_two(self):
        """
        脚本前提:有一个常开的会议,会中PC频繁开关切换共享,将配合的会议号填写在下面text='会议号';
        脚本内容:拨号盘呼叫会议入会,会议界面的所有一级菜单全部按一遍,然后停留会中20s,观察会议中接收共享情况
        循环入会100次,如需更改次数,range(循环次数)
        :return:
        """
        for i in range(100):
            time.sleep(1)
            self.home_page.click_join_meeting_btn()
            # 以下三行代码为拨号盘呼叫入会
            self.join_meeting_page.click_bhp_btn()
            self.join_meeting_page.input_meeting_num(text='88000090')
            self.join_meeting_page.click_call_btn()
            time.sleep(6)
            self.meeting_page.click_close_audio_btn()
            self.meeting_page.click_close_camera_btn()
            self.meeting_page.click_close_mic_btn()
            self.meeting_page.click_close_audio_btn()
            self.meeting_page.click_close_camera_btn()
            self.meeting_page.click_close_mic_btn()
            self.meeting_page.click_manage_meeting_btn()
            self.manage_meeting_page.click_back_btn()
            self.meeting_page.click_meeting_detail_btn()
            self.meeting_detail_page.click_back_btn()
            self.meeting_page.click_split_screen_btn()
            self.set_layout_out_page.click_back_btn()
            time.sleep(20)
            self.meeting_page.click_exit_meeting_btn()
コード例 #6
0
class TestSceneFive(unittest.TestCase):
    def setUp(self):
        self.driver = init_driver(deviceName="192.168.1.6:5555")
        self.answer_page = AnswerPage(self.driver)
        self.meeting_page = MeetingPage(self.driver)
        self.manage_meeting_page = ManageMeetingPage(self.driver)
        self.meeting_detail_page = MeetingDetailPage(self.driver)
        self.set_layout_out_page = SetLayoutOutPage(self.driver)

    def test_scene_five(self):
        for x in range(100):
            time.sleep(1)
            self.answer_page.click_answer_btn()
            self.meeting_page.click_manage_meeting_btn()
            for i in range(3):
                self.driver.swipe(950, 800, 1000, 400)
            self.manage_meeting_page.click_back_btn()
            self.meeting_page.click_meeting_detail_btn()
            self.meeting_detail_page.click_back_btn()
            self.meeting_page.click_split_screen_btn()
            # self.set_layout_out_page.click_set_layout_out2_btn()
            # self.set_layout_out_page.click_set_layout_out3_btn()
            # self.set_layout_out_page.click_set_layout_out2_btn()
            self.set_layout_out_page.click_back_btn()
            for a in range(2):
                self.meeting_page.click_close_audio_btn()
                self.meeting_page.click_close_camera_btn()
                self.meeting_page.click_close_mic_btn()
            self.meeting_page.click_exit_meeting_btn()
コード例 #7
0
class TestSceneThree(unittest.TestCase):
    def setUp(self):
        self.driver = init_driver(deviceName='192.168.1.6:5555')
        self.home_page = HomePage(self.driver)
        self.meeting_page = MeetingPage(self.driver)
        self.manage_meeting_page = ManageMeetingPage(self.driver)
        self.invite_meeting_page = InviteMeetingPage(self.driver)
        self.hold_meeting_page = HoldMeetingPage(self.driver)
        self.meeting_detail_page = MeetingDetailPage(self.driver)
        self.set_layout_out_page = SetLayoutOutPage(self.driver)

    def test_scene_three(self):
        for i in range(100):
            time.sleep(1)
            self.home_page.click_create_meeting_btn()
            self.hold_meeting_page.click_direct_meeting_btn()
            num_list = get_invite_num('all')
            for a in num_list:
                time.sleep(1)
                self.meeting_page.click_invite_meeting_btn()
                self.invite_meeting_page.click_input_box_btn()
                self.invite_meeting_page.input_num(a)
                self.invite_meeting_page.click_confirm_btn()
                self.invite_meeting_page.click_invite_btn()
            for b in range(10):
                self.meeting_page.click_manage_meeting_btn()
                self.driver.swipe(1000, 830, 950, 450)
                for c in range(10):
                    self.manage_meeting_page.click_stop_voice_btn()
                self.manage_meeting_page.click_back_btn()
            for d in range(10):
                self.meeting_page.click_meeting_detail_btn()
                self.meeting_detail_page.click_back_btn()
            for e in range(10):
                self.meeting_page.click_split_screen_btn()
                self.set_layout_out_page.click_back_btn()
            for f in range(10):
                self.meeting_page.click_close_mic_btn()
            for g in range(10):
                self.meeting_page.click_close_camera_btn()
            for h in range(10):
                self.meeting_page.click_close_audio_btn()
            self.meeting_page.click_manage_meeting_btn()
            self.manage_meeting_page.click_close_meeting_btn()