예제 #1
0
def test_create_now_password_and_join():
    reserve_meeting.reserve_meeting_from_panel()
    sleep(1)
    reserve_meeting.choose_now()
    sleep(1)
    reserve_meeting.fill_password(password)
    auto.WheelDown(7)
    reserve_meeting.now_meeting_confirm()
    sleep(1)
    reserve_meeting.control_now_meeting()
    sleep(1)
    reserve_meeting.invite_others_control_now_meeting(remote_user)
    sleep(1)
    reserve_meeting.join_now_meeting()
    operate_in_meeting = OperateInMeeting()
    operate_in_meeting.hangup_call()
    sleep(5)
    join_a_meeting.join_a_meeting_from_panel_with_password(password)
    sleep(20)
    operate_in_meeting.hangup_call()
    sleep(5)
    join_a_meeting.join_a_meeting_from_panel_with_password_one_line(password)
    sleep(20)
    operate_in_meeting.hangup_call()
    sleep(5)
    reserve_meeting.terminate_now_meeting()
예제 #2
0
    def Scroll(self, direction, percent, duration):
        if direction not in ('vertical', 'horizontal'):
            return False

        if direction == 'horizontal':
            return False

        self.JudgeSize()
        x = 0.5  # 先把鼠标移到窗口中间,这样才能保证滚动的是这个窗口。
        y = 0.5
        steps = percent
        Left = self.root.BoundingRectangle[0]
        Top = self.root.BoundingRectangle[1]
        Width = self.root.BoundingRectangle[2] - self.root.BoundingRectangle[0]
        Height = self.root.BoundingRectangle[3] - self.root.BoundingRectangle[1]
        x = Left + Width * x
        y = Top + Height * y
        x = int(x)
        y = int(y)
        UIAuto.MoveTo(x, y)
        interval = float(duration - 0.3 * steps) / (abs(steps) + 1)  # 实现滚动时间
        if interval <= 0:
            interval = 0.1
        if steps < 0:
            for i in range(0, abs(steps)):
                time.sleep(interval)
                UIAuto.WheelUp(1)
        else:
            for i in range(0, abs(steps)):
                time.sleep(interval)
                UIAuto.WheelDown(1)
        return True
 def change_to_full_mode_meeting(self):
     self.log.info("change_to_full_mode_meeting")
     self.go_to_setting_page()
     self.setting_page.TextControl(searchDepth=9, Name="应用").Click()
     auto.WheelDown(5)
     self.setting_page.CheckBoxControl(searchDepth=9,
                                       Name="进入会议时全屏显示").Click()
예제 #4
0
 def choose_time(self):
     log.info("Change time")
     x, y = self.__start_time_pos()
     auto.Click(x + 250, y)
     auto.SetCursorPos(x + 250, y + 80)
     auto.WheelDown(3)
     auto.Click(x + 500, y)
예제 #5
0
 def choose_duration(self):
     log.info("Change duration")
     x, y = self.__meeting_duration_pos()
     auto.Click(x + 160, y)
     auto.SetCursorPos(x + 120, y + 100)
     auto.WheelDown(3)
     sleep(1)
     auto.Click(x + 500, y)
예제 #6
0
def test_create_now_and_join():
    reserve_meeting.reserve_meeting_from_panel()
    sleep(1)
    reserve_meeting.choose_now()
    auto.WheelDown(7)
    reserve_meeting.now_meeting_confirm()
    sleep(1)
    reserve_meeting.control_now_meeting()
    sleep(1)
    reserve_meeting.invite_others_control_now_meeting(remote_user)
    sleep(1)
    reserve_meeting.join_now_meeting()
    operate_in_meeting = OperateInMeeting()
    operate_in_meeting.hangup_call()
    sleep(5)
    reserve_meeting.terminate_now_meeting()
예제 #7
0
def test_create_reserve_meeting():
    auto.WheelDown()
    sleep(2)
    reserve_meeting.reserve_confirm()
예제 #8
0
def test_use_random_number_as_meeting_room():
    auto.WheelDown(6)
    sleep(2)
    reserve_meeting.same_layout()
예제 #9
0
 def scroll_Bottom(self):
     auto.WheelDown(100)
     return self
예제 #10
0
 def now_meeting_confirm(self):
     auto.WheelDown(8)
     self.reserve_meeting_page.ButtonControl(searchDepth=10, Name="立即召开").Click()