def test_change_to_full_mode_meeting(): app_setting.change_to_full_mode_meeting() JoinAMeeting().join_now_meeting_from_top_menu() sleep(20) operate_meeting.terminate_call_in_full_mode() app_setting.change_to_full_mode_meeting()
def create_a_now_meeting_and_join(self): log.info("Create an immediate meeting and join") self.go_to_meeting_page() self.reserve_meeting_page.TextControl(searchDepth=8, Name="立即会议").Click() sleep(3) self.reserve_confirm() sleep(15) self.return_from_reserve_meeting() JoinAMeeting().join_now_meeting_from_reserved_item()
def test_create_now_password_and_join(): reserve_meeting = ReserveMeeting() join_a_meeting = JoinAMeeting() reserve_meeting.create_now_meeting_from_panel() sleep(1) reserve_meeting.fill_password(password) sleep(1) reserve_meeting.choose_participants(remote_user) sleep(1) reserve_meeting.reserve_confirm() sleep(15) join_a_meeting.join_now_meeting_from_reserved_item_and_hangup() # sleep(5) # reserve_meeting.return_from_reserve_meeting() sleep(5) join_a_meeting.join_now_meeting_from_reserved_item_and_hangup(CallType.Video, MicStatus.MUTE, CameraStatus.UMUTE)
import pytest import allure from time import sleep import uiautomation as auto from HexmeetPkg.Common import CallType, MicStatus, CameraStatus from HexmeetPkg.HexmeetWindowsSingleton import HexmeetWindowSingleton from HexmeetPkg.OperateInMeetingPageObject import OperateInMeeting from HexmeetPkg.ReserveMeetingPageObject import ReserveMeeting from HexmeetPkg.joinAMeetingPageObject import JoinAMeeting hjt_singleton = HexmeetWindowSingleton() reserve_meeting = ReserveMeeting() join_a_meeting = JoinAMeeting() remote_user = "******" password = "******" call_matrix = [ (CallType.Video, MicStatus.MUTE, CameraStatus.MUTE), (CallType.Video, MicStatus.MUTE, CameraStatus.UMUTE), (CallType.Video, MicStatus.UMUTE, CameraStatus.MUTE), (CallType.Video, MicStatus.UMUTE, CameraStatus.UMUTE), (CallType.Audio, MicStatus.MUTE, CameraStatus.MUTE), (CallType.Audio, MicStatus.MUTE, CameraStatus.UMUTE), (CallType.Audio, MicStatus.UMUTE, CameraStatus.MUTE), (CallType.Audio, MicStatus.UMUTE, CameraStatus.UMUTE), ] @allure.parent_suite("预约会议") @allure.feature("测试HEXMEET APP的设置预约会议操作")
def test_prepare_all(): sleep(5) reserve_meeting.clear_reserved_meeting() sleep(5) __invite_others_and_join_the_meeting() JoinAMeeting().join_now_meeting_from_reserved_item_and_hangup()
import pytest import allure from time import sleep from HexmeetPkg.HexmeetWindowsSingleton import HexmeetWindowSingleton from HexmeetPkg.joinAMeetingPageObject import JoinAMeeting from HexmeetPkg.OperateInMeetingPageObject import OperateInMeeting from HexmeetPkg.ReserveMeetingPageObject import ReserveMeeting from HexmeetPkg.Screen import CaptureScreen from HexmeetPkg.Common import CallType, MicStatus, CameraStatus from PIL import Image from PIL import ImageChops hjt_singleton = HexmeetWindowSingleton() join_meeting_po = JoinAMeeting() operate_in_meeting = OperateInMeeting() fullscreenbox = (0, 0, 2560, 1440) def setup_module(): hjt_singleton.start_hexmeet() def teardown_module(): hjt_singleton.close_hexmeet() def capture_attach_pic(pic_name, description, _bbox=(645, 316, 1918, 1072)): CaptureScreen.capture_attach_pic("../pics/" + pic_name, description, _bbox) @pytest.mark.flaky(rerun=1, rerun_delay=2)