def call_from_favorite(self, name):
     self.log.info("call_from_favorite")
     self.hexMeetHJTWindow.GroupControl(
         searchDepth=1, AutomationId="CHomeDlg.m_pWgtOperationBar"
     ).ListControl(
         searchDepth=2,
         AutomationId=
         "CHomeDlg.m_pWgtOperationBar.verticalWidget_4.m_pLvMenus").Click()
     self.contact_page.DataItemControl(searchDepth=15, Name=name).Click()
     sleep(1)
     self.contact_page.ButtonControl(searchDepth=11, Name="视频").Click()
     sleep(20)
     operate_in_meeting = OperateInMeeting()
     operate_in_meeting.hangup_call()
Exemplo n.º 2
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()
Exemplo n.º 3
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()
 def call_from_organization(self, name):
     self.log.info("call_from_organization")
     self.hexMeetHJTWindow.GroupControl(
         searchDepth=1, AutomationId="CHomeDlg.m_pWgtOperationBar"
     ).ListControl(
         searchDepth=2,
         AutomationId=
         "CHomeDlg.m_pWgtOperationBar.verticalWidget_4.m_pLvMenus").Click()
     self.contact_page.TabItemControl(searchDepth=14, Name=" 组织结构").Click()
     sleep(1)
     self.contact_page.EditControl(searchDepth=13,
                                   Name="输入用户/终端名称").SendKeys(name)
     self.contact_page.DataItemControl(searchDepth=15, Name=name).Click()
     sleep(1)
     self.contact_page.ButtonControl(searchDepth=11, Name="视频").Click()
     sleep(20)
     operate_in_meeting = OperateInMeeting()
     operate_in_meeting.hangup_call()
Exemplo n.º 5
0
import allure
import sys
import os
sys.path.append(
    (os.path.abspath(os.path.join(os.path.dirname(__file__), '../..'))))
from HJT_pkg.UnRegisterCallPageObject import UnRegisterCall
from HJT_pkg.HjtWindowsSingleton import HjtWindowSingleton
from HJT_pkg.ReserveMeetingPageObject import ReserveMeeting
from HJT_pkg.OperateInMeetingPageObject import OperateInMeeting
from HJT_pkg.Screen import CaptureScreen
from time import sleep

unregister_call = UnRegisterCall()
hjt_singleton = HjtWindowSingleton()
reserve_meeting = ReserveMeeting()
operate_meeting = OperateInMeeting()
password = "******"
server_addr = "cloudbeta.hexmeet.com"
conf_id = "13910001001"
conf_id_password = "******"
show_name = "autotest"
capture_screen = CaptureScreen()


def setup_module():
    hjt_singleton.start_hjt()


def teardown_module():
    hjt_singleton.close_hjt()