def test_call_zhenyishan_0186(self): """多方视频管理界面,检查添加联系人按钮""" # 1、已成功发起多方视频,人数未满9人 # 2、当前为多方视频管理界面 mess = MessagePage() # Step 1、进行拨打语音通话 mess.click_calls() cp = CallPage() cp.wait_for_page_load() cp.click_multi_party_video() cmvp = MultiPartyVideoPage() cmvp.input_contact_search("15875537272") cmvp.click_text('未知号码') cmvp.input_contact_search("13800138222") cmvp.click_text('未知号码') cmvp.click_tv_sure() if cp.is_exist_go_on(): cp.click_go_on() # 是否存在设置悬浮窗,存在暂不开启 SuspendedTips().ignore_tips_if_tips_display() # Step 2、主叫方点击挂断按钮 time.sleep(3) MutiVideoPage().click_multi_video_add_person() time.sleep(1) self.assertFalse(cmvp.is_enabled_tv_sure())
def test_call_zhenyishan_0155(self): """分组群发/标签分组/群发消息:发起多方视频,在管理页面点击“+”进入标签分组联系人选择页""" # Step: 1、通过分组群发/标签分组/群发消息发起多方视频 cpg = CallPage() Preconditions.enter_label_grouping_chat_page() gpg = GroupListPage() gpg.click_mult_call_icon() CallPage().click_mutil_video_call() time.sleep(1) cpg.click_text("大佬1") time.sleep(1) cpg.click_text("给个红包1") time.sleep(1) mppg = MultiPartyVideoPage() mppg.click_tv_sure() time.sleep(1) if cpg.is_text_present("现在去开启"): cpg.click_text("暂不开启") time.sleep(1) self.assertTrue(mppg.is_exist_end_video_call()) # Step: 2、在多方视频管理页面点击“+”进入联系人选择页 MutiVideoPage().click_multi_video_add_person() # CheckPoint:1、联系人选择页显示标签分组成员 cpg.page_should_contain_text("搜索标签分组成员") cpg.click_back_by_android() if mppg.is_exist_end_video_call(): mppg.click_end_video_call() cpg.click_back_by_android(3) cpg.click_call()
def test_call_zhenyishan_0191(self): """多方视频管理界面,检查添加联系人按钮""" # 1、已成功发起多方视频,人数未满9人 # 2、当前为多方视频管理界面 mess = MessagePage() # Step 1、进行拨打语音通话 mess.click_calls() cp = CallPage() cp.wait_for_page_load() cp.click_multi_party_video() cmvp = MultiPartyVideoPage() cmvp.input_contact_search("15875537272") cmvp.click_text('未知号码') cmvp.input_contact_search("13800138222") cmvp.click_text('未知号码') cmvp.click_tv_sure() if cp.is_exist_go_on(): cp.click_go_on() # 是否存在设置悬浮窗,存在暂不开启 SuspendedTips().ignore_tips_if_tips_display() # Step 2、主叫方点击挂断按钮 time.sleep(3) MutiVideoPage().click_multi_video_add_person() time.sleep(2) LabelGroupingPage().click_local_contacts('给个名片1', '给个名片2', '测试短信1', '测试短信2', '给个红包1', '联系人1', '联系人2', '联系人3', '联系人4') cmvp.is_toast_exist('人数已达上限8人')
def test_Conts_TagsGrouping_0011(self): """多方视频""" group_name = uuid.uuid4().__str__() members = [ '给个红包1', '给个红包2', ] # 进入标签分组列表页面 conts_page = ContactsPage() conts_page.open_contacts_page() conts_page.click_label_grouping() # 创建分组 lg = LabelGroupingPage() real_name = lg.create_group(group_name, *members) # 进入分组 lg.wait_for_page_load() lg.click_label_group(real_name) # 点击多方视频 detail = LableGroupDetailPage() detail.click_multiparty_videos() # 选择联系人 contacts_selector = ContactsSelector() current_mobile().wait_until( condition=lambda d: current_mobile().is_text_present('多方视频'), timeout=3, ) contacts_selector.select_local_contacts(*members) tips = MutiVideoTipsPage() tips.go_on_if_tips_pop_out() tips1 = SuspendedTips() tips1.ignore_tips_if_tips_display() mtv = MutiVideoPage() mtv.wait_for_page_load()
def test_call_zhenyishan_0159(self): """多方视频管理页面,检查免提按钮""" # 1、已成功发起多方视频 # 2、当前为多方视频管理界面 # Step: 1、点击静音按钮 cpg = CallPage() cpg.click_multi_party_video() mppg = MultiPartyVideoPage() mppg.select_contacts_by_number("14775970982") mppg.select_contacts_by_number("13800138006") mppg.click_tv_sure() time.sleep(1) if cpg.is_exist_go_on(): cpg.click_go_on() MutiVideoPage().wait_for_and_click_not_open() time.sleep(2) # CheckPoint:1、默认为开启状态 self.assertTrue(MutiVideoPage().is_selected_mutil_video_call_mute()) # CheckPoint:2、当前为开启状态:点击按钮,按钮变为关闭状态按钮置灰,本机说话,对方能听到本机声音 MutiVideoPage().click_mutil_video_call_mute() time.sleep(2) self.assertFalse(MutiVideoPage().is_selected_mutil_video_call_mute()) # CheckPoint:3、当前为关闭状态:点击按钮,按钮变为开启状态,按钮高亮,本机说话,对方不能听到本机声音 MutiVideoPage().click_mutil_video_call_mute() time.sleep(2) self.assertTrue(MutiVideoPage().is_selected_mutil_video_call_mute())
def test_call_zhenyishan_0053(self): """从群聊发起多方视频,在多方视频管理界面点击“+”进入联系人选择页""" # Step:1、从群聊发起多方视频 # Step:2、在多方视频管理界面点击“+”进入联系人选择页 # Step:3、检查联系人选择器 cpg = CallPage() mp = MessagePage() ContactsPage().click_message_icon() mp.wait_for_page_load() mp.click_add_icon() mp.click_group_chat() # 点击选择一个群 scg = SelectContactsPage() scg.click_select_one_group() sog = SelectOneGroupPage() # 等待“选择一个群”页面加载 sog.wait_for_page_load() # 选择一个普通群 phone_number = current_mobile().get_cards(CardType.CHINA_MOBILE)[0] sog.selecting_one_group_by_name("Test_" + phone_number) # Step: 2、勾选2 - 8人,点击呼叫 gpg = GroupListPage() gpg.click_mult_call_icon() CallPage().click_mutil_video_call() mppg = MultiPartyVideoPage() for i in range(3): mppg.click_contact_icon(i) mppg.click_tv_sure() time.sleep(1) if cpg.is_text_present("现在去开启"): cpg.click_text("暂不开启") time.sleep(1) self.assertTrue(mppg.is_exist_end_video_call()) # CheckPoint:1、展示群成员列表 MutiVideoPage().click_multi_video_add_person() cpg.page_should_contain_text(phone_number) cpg.click_back_by_android() if mppg.is_exist_end_video_call(): mppg.click_end_video_call() cpg.click_back_by_android(2)