Best Python code snippet using robotframework-appiumlibrary_python
multipartyvideo.py
Source:multipartyvideo.py
...344 mppg.click_contact_list_item(i)345 mppg.click_tv_sure()346 # CheckPoint:1.åèµ·å¤æ¹è§é¢347 time.sleep(1)348 mppg.page_should_contain_text("å
³éæå头")349 @tags('ALL', 'CMCC', 'Call')350 def test_call_zhenyishan_0002(self):351 """å¤æ¹è§é¢å
¥å£æ£æ¥ï¼éè¯æ¨¡åä¸çº§çé¢ï¼å¤æ¹è§é¢æé®ï¼wifiåèµ·å¤æ¹è§é¢"""352 # 1ãwifiè¿æ¥æ£å¸¸353 # 2ãå½å为éè¯æ¨¡å354 # Step:1ãç¹å»åèµ·è§é¢355 # Step:2ãå¾é2-8人ï¼ç¹å»å¼å«356 cpg = CallPage()357 cpg.click_multi_party_video()358 mppg = MultiPartyVideoPage()359 mppg.select_contacts_by_number("14775970982")360 mppg.select_contacts_by_number("13800138006")361 mppg.click_tv_sure()362 time.sleep(2)363 # CheckPoint:åèµ·å¤æ¹è§é¢364 cpg.page_should_contain_text("å
³éæå头")365 @tags('ALL', 'CMCC', 'Call')366 def test_call_zhenyishan_0003(self):367 """å¤æ¹è§é¢å
¥å£æ£æ¥ï¼éè¯è®°å½å表ï¼wifiåèµ·å¤æ¹è§é¢"""368 # 1ãwifiè¿æ¥æ£å¸¸369 # 2ãéè¯è®°å½å表已æå¤æ¹è§é¢è®°å½370 # Step:1ãç¹å»å¤æ¹è§é¢éè¯è®°å½371 self.test_call_zhenyishan_0002()372 # CheckPoint:åèµ·å¤æ¹è§é¢373 cpg = CallPage()374 cpg.wait_for_call_page()375 cpg.click_call_entry()376 time.sleep(2)377 cpg.page_should_contain_text("å
³éæå头")378 @tags('ALL', 'CMCC', 'Call')379 def test_call_zhenyishan_0004(self):380 """å¤æ¹è§é¢å
¥å£æ£æ¥ï¼éè¯è®°å½è¯¦æ
页ï¼wifiåèµ·å¤æ¹è§é¢"""381 # 1ãwifiè¿æ¥æ£å¸¸382 # 2ãéè¯è®°å½383 # Step:1ãç¹å»å¤æ¹è§é¢éè¯è®°å½çâï¼â384 # Step:2ãç¹å»å次å¼å«385 # CheckPoint:åèµ·å¤æ¹è§é¢386 self.test_call_zhenyishan_0002()387 cpg = CallPage()388 cpg.wait_for_call_page()389 cpg.click_dial()390 cpg.click_call_time_search_status()391 time.sleep(1)392 mppg = MultiPartyVideoPage()393 mppg.click_call_again()394 time.sleep(1)395 cpg.page_should_contain_text("å
³éæå头")396 # @tags('ALL', 'CMCC', 'Call')397 # def test_call_zhenyishan_0005(self):398 # """å¤æ¹è§é¢å
¥å£æ£æ¥ï¼æ ç¾åç»ï¼wifiåèµ·å¤æ¹è§é¢"""399 # # 1ãwifiè¿æ¥æ£å¸¸400 # # 2ãå½å为é讯å½æ¨¡å401 # # Step:1ãè¿å
¥æ ç¾åç»402 # # Step:2ãè¿å
¥ä»»æä¸ä¸ªåç»403 # # Step:3ãå¾éè系人ï¼ç¹å»å¼å«404 # cpg = CallPage()405 # Preconditions.enter_label_grouping_chat_page(False)406 # LableGroupDetailPage().click_multiparty_videos()407 # mppg = MultiPartyVideoPage()408 # time.sleep(1)409 # for i in range(3):410 # mppg.click_select_contacts(i)411 # mppg.click_tv_sure()412 # # CheckPoint:åèµ·å¤æ¹è§é¢413 # time.sleep(1)414 # self.assertTrue(mppg.is_exist_end_video_call())415 # @tags('ALL', 'CMCC', 'Call')416 # def test_call_zhenyishan_0006(self):417 # """å¤æ¹è§é¢å
¥å£æ£æ¥ï¼æ ç¾åç»-群åæ¶æ¯ï¼wifiåèµ·å¤æ¹è§é¢"""418 # # 1ãwifiè¿æ¥æ£å¸¸419 # # 2ãå½å为é讯å½æ¨¡å420 # # Step:1ãè¿å
¥æ ç¾åç»421 # # Step:2ãè¿å
¥ä»»æä¸ä¸ªåç»422 # # Step:3ãç¹å»ç¾¤åæ¶æ¯423 # Preconditions.enter_label_grouping_chat_page()424 # cpg = CallPage()425 # # Step:4ãå¾éè系人ï¼ç¹å»å¼å«426 # gpg = GroupListPage()427 # gpg.click_mult_call_icon()428 # CallPage().click_mutil_video_call()429 # mppg = MultiPartyVideoPage()430 # for i in range(3):431 # mppg.click_contact_icon(i)432 # mppg.click_tv_sure()433 # time.sleep(1)434 # # CheckPoint:åèµ·å¤æ¹è§é¢435 # if cpg.is_text_present("ç°å¨å»å¼å¯"):436 # cpg.click_text("æä¸å¼å¯")437 # time.sleep(1)438 # self.assertTrue(mppg.is_exist_end_video_call())439 # mppg.click_end_video_call()440 # mppg.click_btn_ok()441 # cpg.click_back_by_android(3)442 # cpg.click_call()443 #444 @staticmethod445 def setUp_test_call_zhenyishan_0007_001():446 # å
³éWiFiï¼æå¼4Gç½ç»447 warnings.simplefilter('ignore', ResourceWarning)448 Preconditions.make_already_in_call()449 CalllogBannerPage().skip_multiparty_call()450 CallPage().delete_all_call_entry()451 CallPage().set_network_status(4)452 @tags('ALL', 'CMCC', 'Call')453 def test_call_zhenyishan_0007_001(self):454 """æªè®¢è´æ¯æ10Gå
æµï¼ä½¿ç¨ç§»å¨ç½ç»åèµ·å¤æ¹è§é¢ï¼å¼¹åºæ¯æ10Gå
æµç¹ææ示çªå£---æ®é群/ä¼ä¸ç¾¤"""455 # 1ãç»å½çææºå·ç æªè®¢è´æ¯æ10Gå
æµ456 # 2ãå½å为移å¨ç½ç»è¿æ¥457 # Step:1ãæ¶æ¯æ¨¡å â æ®é群/ä¼ä¸ç¾¤ â ç¹å»è§é¢æé® â ç¹å»å¤æ¹è§é¢458 cpg = CallPage()459 mp = MessagePage()460 ContactsPage().click_message_icon()461 mp.wait_for_page_load()462 mp.click_add_icon()463 mp.click_group_chat()464 # ç¹å»éæ©ä¸ä¸ªç¾¤465 scg = SelectContactsPage()466 scg.click_select_one_group()467 sog = SelectOneGroupPage()468 # çå¾
âéæ©ä¸ä¸ªç¾¤â页é¢å è½½469 sog.wait_for_page_load()470 # éæ©ä¸ä¸ªæ®é群471 phone_number = current_mobile().get_cards(CardType.CHINA_MOBILE)[0]472 sog.selecting_one_group_by_name("Test_" + phone_number)473 # Step: 2ãå¾é2 - 8人ï¼ç¹å»å¼å«474 gpg = GroupListPage()475 gpg.click_mult_call_icon()476 CallPage().click_mutil_video_call()477 mppg = MultiPartyVideoPage()478 for i in range(3):479 mppg.click_contact_list_item(i)480 mppg.click_tv_sure()481 # CheckPoint:åèµ·å¤æ¹è§é¢ï¼å¼¹åºæ¯æ10Gå
æµç¹ææ示弹çª482 time.sleep(1)483 cpg.page_should_contain_text("æ¯æ10Gå
æµç¹æ")484 @staticmethod485 def tearDown_test_call_zhenyishan_0007_001():486 # æå¼ç½ç»487 cpg = CallPage()488 cpg.set_network_status(6)489 preconditions.disconnect_mobile(REQUIRED_MOBILES['IOS-移å¨'])490 @staticmethod491 def setUp_test_call_zhenyishan_0007_002():492 # å
³éWiFiï¼æå¼4Gç½ç»493 warnings.simplefilter('ignore', ResourceWarning)494 Preconditions.make_already_in_call()495 CalllogBannerPage().skip_multiparty_call()496 CallPage().delete_all_call_entry()497 CallPage().set_network_status(4)498 @tags('ALL', 'CMCC', 'Call')499 def test_call_zhenyishan_0007_002(self):500 """æªè®¢è´æ¯æ10Gå
æµï¼ä½¿ç¨ç§»å¨ç½ç»åèµ·å¤æ¹è§é¢ï¼å¼¹åºæ¯æ10Gå
æµç¹ææ示çªå£---éè¯æ¨¡å â åèµ·è§é¢ â å¾é2--8人 â ç¹å»å¼å«"""501 # 1ãç»å½çææºå·ç æªè®¢è´æ¯æ10Gå
æµ502 # 2ãå½å为移å¨ç½ç»è¿æ¥503 # Step:1ãéè¯æ¨¡å â åèµ·è§é¢ â å¾é2--8人 â ç¹å»å¼å«504 cpg = CallPage()505 cpg.click_multi_party_video()506 mppg = MultiPartyVideoPage()507 mppg.select_contacts_by_number("14775970982")508 mppg.select_contacts_by_number("13800138006")509 mppg.click_tv_sure()510 # CheckPoint:åèµ·å¤æ¹è§é¢ï¼å¼¹åºæ¯æ10Gå
æµç¹ææ示弹çª511 time.sleep(1)512 cpg.page_should_contain_text("æ¯æ10Gå
æµç¹æ")513 @staticmethod514 def tearDown_test_call_zhenyishan_0007_002():515 # æå¼ç½ç»516 cpg = CallPage()517 cpg.set_network_status(6)518 preconditions.disconnect_mobile(REQUIRED_MOBILES['IOS-移å¨'])519 @staticmethod520 def setUp_test_call_zhenyishan_0007_003():521 # å
³éWiFiï¼æå¼4Gç½ç»522 warnings.simplefilter('ignore', ResourceWarning)523 Preconditions.make_already_in_call()524 CalllogBannerPage().skip_multiparty_call()525 CallPage().delete_all_call_entry()526 @tags('ALL', 'CMCC', 'Call')527 def test_call_zhenyishan_0007_003(self):528 """æªè®¢è´æ¯æ10Gå
æµï¼ä½¿ç¨ç§»å¨ç½ç»åèµ·å¤æ¹è§é¢ï¼å¼¹åºæ¯æ10Gå
æµç¹ææ示çªå£---éè¯æ¨¡å â éè¯è®°å½å表 â ç¹å»å·²æå¤æ¹è§é¢è®°å½"""529 # 1ãç»å½çææºå·ç æªè®¢è´æ¯æ10Gå
æµ530 # 2ãå½å为移å¨ç½ç»è¿æ¥531 # Step:1ãéè¯æ¨¡å â éè¯è®°å½å表 â ç¹å»å·²æå¤æ¹è§é¢è®°å½532 self.test_call_zhenyishan_0002()533 # CheckPoint:åèµ·å¤æ¹è§é¢534 cpg = CallPage()535 cpg.wait_for_call_page()536 CallPage().set_network_status(4)537 cpg.click_call_entry()538 # CheckPoint:åèµ·å¤æ¹è§é¢ï¼å¼¹åºæ¯æ10Gå
æµç¹ææ示弹çª539 time.sleep(1)540 cpg.page_should_contain_text("æ¯æ10Gå
æµç¹æ")541 @staticmethod542 def tearDown_test_call_zhenyishan_0007_003():543 # æå¼ç½ç»544 cpg = CallPage()545 cpg.set_network_status(6)546 preconditions.disconnect_mobile(REQUIRED_MOBILES['IOS-移å¨'])547 @staticmethod548 def setUp_test_call_zhenyishan_0007_004():549 # å
³éWiFiï¼æå¼4Gç½ç»550 warnings.simplefilter('ignore', ResourceWarning)551 Preconditions.make_already_in_call()552 CalllogBannerPage().skip_multiparty_call()553 CallPage().delete_all_call_entry()554 @tags('ALL', 'CMCC', 'Call')555 def test_call_zhenyishan_0007_004(self):556 """æªè®¢è´æ¯æ10Gå
æµï¼ä½¿ç¨ç§»å¨ç½ç»åèµ·å¤æ¹è§é¢ï¼å¼¹åºæ¯æ10Gå
æµç¹ææ示çªå£---éè¯æ¨¡å â éè¯è®°å½å表 â ç¹å»å·²æå¤æ¹è§é¢è®°å½å³ä¾§çâï¼âè¿å
¥éè¯è¯¦æ
页 â ç¹å»å次å¼å«"""557 # 1ãç»å½çææºå·ç æªè®¢è´æ¯æ10Gå
æµ558 # 2ãå½å为移å¨ç½ç»è¿æ¥559 # Step:1ãéè¯æ¨¡å â éè¯è®°å½å表 â ç¹å»å·²æå¤æ¹è§é¢è®°å½å³ä¾§çâï¼âè¿å
¥éè¯è¯¦æ
页 â ç¹å»å次å¼å«560 self.test_call_zhenyishan_0002()561 cpg = CallPage()562 cpg.wait_for_call_page()563 CallPage().set_network_status(4)564 cpg.click_dial()565 cpg.click_call_time_search_status()566 mppg = MultiPartyVideoPage()567 mppg.click_call_again()568 # CheckPoint:åèµ·å¤æ¹è§é¢ï¼å¼¹åºæ¯æ10Gå
æµç¹ææ示弹çª569 time.sleep(1)570 cpg.page_should_contain_text("æ¯æ10Gå
æµç¹æ")571 @staticmethod572 def tearDown_test_call_zhenyishan_0007_004():573 # æå¼ç½ç»574 cpg = CallPage()575 cpg.set_network_status(6)576 preconditions.disconnect_mobile(REQUIRED_MOBILES['IOS-移å¨'])577 # @staticmethod578 # def setUp_test_call_zhenyishan_0007_005():579 # # å
³éWiFiï¼æå¼4Gç½ç»580 # Preconditions.make_already_in_call()581 # CalllogBannerPage().skip_multiparty_call()582 # CallPage().delete_all_call_entry()583 # CallPage().set_network_status(4)584 #585 # @tags('ALL', 'CMCC', 'Call')586 # def test_call_zhenyishan_0007_005(self):587 # """æªè®¢è´æ¯æ10Gå
æµï¼ä½¿ç¨ç§»å¨ç½ç»åèµ·å¤æ¹è§é¢ï¼å¼¹åºæ¯æ10Gå
æµç¹ææ示çªå£---é讯å½æ¨¡å â æ ç¾åç» â ç¹å»å·²æ°å»ºåç» â ç¹å»å¤æ¹è§é¢"""588 # # 1ãç»å½çææºå·ç æªè®¢è´æ¯æ10Gå
æµ589 # # 2ãå½å为移å¨ç½ç»è¿æ¥590 # # Step:1ãé讯å½æ¨¡å â æ ç¾åç» â ç¹å»å·²æ°å»ºåç» â ç¹å»å¤æ¹è§é¢591 # cpg = CallPage()592 # Preconditions.enter_label_grouping_chat_page(False)593 # LableGroupDetailPage().click_multiparty_videos()594 # mppg = MultiPartyVideoPage()595 # time.sleep(1)596 # for i in range(3):597 # mppg.click_select_contacts(i)598 # mppg.click_tv_sure()599 # # CheckPoint:åèµ·å¤æ¹è§é¢ï¼å¼¹åºæ¯æ10Gå
æµç¹ææ示弹çª600 # time.sleep(1)601 # cpg.page_should_contain_text("æ¯æ10Gå
æµç¹æ")602 # cpg.click_back_by_android(4)603 #604 # @staticmethod605 # def tearDown_test_call_zhenyishan_0007_005():606 # # æå¼ç½ç»607 # cpg = CallPage()608 # cpg.set_network_status(6)609 #610 # @staticmethod611 # def setUp_test_call_zhenyishan_0007_006():612 # # å
³éWiFiï¼æå¼4Gç½ç»613 # Preconditions.make_already_in_call()614 # CalllogBannerPage().skip_multiparty_call()615 # CallPage().delete_all_call_entry()616 # CallPage().set_network_status(4)617 #618 # @tags('ALL', 'CMCC', 'Call')619 # def test_call_zhenyishan_0007_006(self):620 # """æªè®¢è´æ¯æ10Gå
æµï¼ä½¿ç¨ç§»å¨ç½ç»åèµ·å¤æ¹è§é¢ï¼å¼¹åºæ¯æ10Gå
æµç¹ææ示çªå£---é讯å½æ¨¡åâæ ç¾åç»âç¹å»å·²æ°å»ºåç»â群åæ¶æ¯âç¹å»å¤æ¹è§é¢"""621 # # 1ãç»å½çææºå·ç æªè®¢è´æ¯æ10Gå
æµ622 # # 2ãå½å为移å¨ç½ç»è¿æ¥623 # # Step:1ãé讯å½æ¨¡åâæ ç¾åç»âç¹å»å·²æ°å»ºåç»â群åæ¶æ¯âç¹å»å¤æ¹è§é¢624 # Preconditions.enter_label_grouping_chat_page()625 # cpg = CallPage()626 # # Step:4ãå¾éè系人ï¼ç¹å»å¼å«627 # gpg = GroupListPage()628 # gpg.click_mult_call_icon()629 # CallPage().click_mutil_video_call()630 # mppg = MultiPartyVideoPage()631 # for i in range(3):632 # mppg.click_contact_icon(i)633 # mppg.click_tv_sure()634 # # CheckPoint:åèµ·å¤æ¹è§é¢ï¼å¼¹åºæ¯æ10Gå
æµç¹ææ示弹çª635 # time.sleep(1)636 # cpg.page_should_contain_text("æ¯æ10Gå
æµç¹æ")637 # cpg.click_back_by_android(5)638 #639 # @staticmethod640 # def tearDown_test_call_zhenyishan_0007_006():641 # # æå¼ç½ç»642 # cpg = CallPage()643 # cpg.set_network_status(6)644 #645 # @tags('ALL', 'CMCC', 'Call')646 # def test_call_zhenyishan_0038(self):647 # """æ®é群èï¼å¤æ¹è§é¢è系人éæ©å¨æç´¢é群æåï¼æ£æ¥é¡µé¢æ¾ç¤º"""648 # # 1ãå·²éè¿ç¾¤èè¿å
¥å¤æ¹è§é¢è系人éæ©å¨649 # # Step:1ãå¨æç´¢æ¡è¾å
¥é群æåå称650 # cpg = CallPage()651 # mp = MessagePage()652 # ContactsPage().click_message_icon()653 # mp.wait_for_page_load()654 # mp.click_add_icon()655 # mp.click_group_chat()656 # # ç¹å»éæ©ä¸ä¸ªç¾¤657 # scg = SelectContactsPage()658 # scg.click_select_one_group()659 # sog = SelectOneGroupPage()660 # # çå¾
âéæ©ä¸ä¸ªç¾¤â页é¢å è½½661 # sog.wait_for_page_load()662 # # éæ©ä¸ä¸ªæ®é群663 # phone_number = current_mobile().get_cards(CardType.CHINA_MOBILE)[0]664 # sog.selecting_one_group_by_name("Test_" + phone_number)665 # gpg = GroupListPage()666 # gpg.click_mult_call_icon()667 # CallPage().click_mutil_video_call()668 # time.sleep(1)669 # SelectContactsPage().search("13800138001")670 # # CheckPoint:1ã页é¢æ¾ç¤ºâæ æç´¢ç»æâ671 # cpg.page_should_contain_text("æ æç´¢ç»æ")672 # cpg.click_back_by_android(3)673 #674 # @tags('ALL', 'CMCC', 'Call')675 # def test_call_zhenyishan_0039(self):676 # """æ®é群èï¼å¤æ¹è§é¢è系人éæ©å¨æ索群æå"""677 # # 1ãå·²éè¿ç¾¤èè¿å
¥å¤æ¹è§é¢è系人éæ©å¨678 # # Step:1ãå¨æç´¢æ¡è¾å
¥ç¾¤æåå称679 # cpg = CallPage()680 # mp = MessagePage()681 # ContactsPage().click_message_icon()682 # mp.wait_for_page_load()683 # mp.click_add_icon()684 # mp.click_group_chat()685 # # ç¹å»éæ©ä¸ä¸ªç¾¤686 # scg = SelectContactsPage()687 # scg.click_select_one_group()688 # sog = SelectOneGroupPage()689 # # çå¾
âéæ©ä¸ä¸ªç¾¤â页é¢å è½½690 # sog.wait_for_page_load()691 # # éæ©ä¸ä¸ªæ®é群692 # phone_number = current_mobile().get_cards(CardType.CHINA_MOBILE)[0]693 # sog.selecting_one_group_by_name("Test_" + phone_number)694 # gpg = GroupListPage()695 # gpg.click_mult_call_icon()696 # CallPage().click_mutil_video_call()697 # time.sleep(1)698 # SelectContactsPage().search("æ")699 # time.sleep(1)700 # # CheckPoint:1ãæ ¹æ®è¾å
¥æ¡ä»¶ï¼æç´¢åºç¾¤æå701 # cpg.page_should_contain_text("æ")702 # # CheckPoint:2ãæç´¢ç»æä¸ï¼å·²å¹é
çå
容é«äº®æ¾ç¤º703 # # CheckPoint:3ãç¹å»å¯éä¸ï¼å¹¶ä¸æ¸
空è¾å
¥å
容704 # mppg = MultiPartyVideoPage()705 # mppg.click_contact_icon(0)706 # time.sleep(1)707 # cpg.page_should_contain_text("æç´¢æå")708 # cpg.click_back_by_android(2)709 #710 # @tags('ALL', 'CMCC', 'Call')711 # def test_call_zhenyishan_0053(self):712 # """ä»ç¾¤èåèµ·å¤æ¹è§é¢ï¼å¨å¤æ¹è§é¢ç®¡ççé¢ç¹å»â+âè¿å
¥è系人éæ©é¡µ"""713 # # Step:1ãä»ç¾¤èåèµ·å¤æ¹è§é¢714 # # Step:2ãå¨å¤æ¹è§é¢ç®¡ççé¢ç¹å»â+âè¿å
¥è系人éæ©é¡µ715 # # Step:3ãæ£æ¥è系人éæ©å¨716 # cpg = CallPage()717 # mp = MessagePage()718 # ContactsPage().click_message_icon()719 # mp.wait_for_page_load()720 # mp.click_add_icon()721 # mp.click_group_chat()722 # # ç¹å»éæ©ä¸ä¸ªç¾¤723 # scg = SelectContactsPage()724 # scg.click_select_one_group()725 # sog = SelectOneGroupPage()726 # # çå¾
âéæ©ä¸ä¸ªç¾¤â页é¢å è½½727 # sog.wait_for_page_load()728 # # éæ©ä¸ä¸ªæ®é群729 # phone_number = current_mobile().get_cards(CardType.CHINA_MOBILE)[0]730 # sog.selecting_one_group_by_name("Test_" + phone_number)731 # # Step: 2ãå¾é2 - 8人ï¼ç¹å»å¼å«732 # gpg = GroupListPage()733 # gpg.click_mult_call_icon()734 # CallPage().click_mutil_video_call()735 # mppg = MultiPartyVideoPage()736 # for i in range(3):737 # mppg.click_contact_icon(i)738 # mppg.click_tv_sure()739 # time.sleep(1)740 # if cpg.is_text_present("ç°å¨å»å¼å¯"):741 # cpg.click_text("æä¸å¼å¯")742 # time.sleep(1)743 # self.assertTrue(mppg.is_exist_end_video_call())744 # # CheckPoint:1ãå±ç¤ºç¾¤æåå表745 # MutiVideoPage().click_multi_video_add_person()746 # cpg.page_should_contain_text(phone_number)747 # cpg.click_back_by_android()748 # if mppg.is_exist_end_video_call():749 # mppg.click_end_video_call()750 # cpg.click_back_by_android(2)751 #752 # @tags('ALL', 'CMCC', 'Call')753 # def test_call_zhenyishan_0057(self):754 # """éè¯æ¨¡åï¼æç´¢æ --éè¿ç®/ç¹ä½ä¸ææç´¢åºç»æ"""755 # # 1ãå½å为å¤æ¹è§é¢è系人éæ©é¡µ756 # # 2ãæ¬å°è系人ä¸å·²æç®ä½ä¸æå称çè系人以åç¹ä½ä¸æå称çè系人757 # # Step:1ãå¨è¾å
¥æ¡è¾å
¥ç®ä½ä¸æ/ç¹ä½ä¸æ758 # cpg = CallPage()759 # cpg.click_multi_party_video()760 # # CheckPoint:1ãæ ¹æ®è¾å
¥æ¡ä»¶ï¼æç´¢åºå§åä¸å«æ对åºç®/ç¹ä½åçç»æ761 # SelectContactsPage().search("æµè¯å·ç ")762 # time.sleep(1)763 # cpg.page_should_contain_text("14775970982")764 # mppg = MultiPartyVideoPage()765 # mppg.click_contact_icon(0)766 # time.sleep(1)767 # cpg.page_should_contain_text("æç´¢æè¾å
¥å·ç ")768 #769 # # CheckPoint:2ãæç´¢ç»æä¸ï¼å·²å¹é
çå
容é«äº®æ¾ç¤º770 # SelectContactsPage().search("ç¹é«")771 # time.sleep(1)772 # cpg.page_should_contain_text("13800138020")773 # # CheckPoint:3ãç¹å»å¯éä¸ï¼å¹¶ä¸æ¸
空è¾å
¥å
容774 # mppg = MultiPartyVideoPage()775 # mppg.click_contact_icon(0)776 # time.sleep(1)777 # cpg.page_should_contain_text("æç´¢æè¾å
¥å·ç ")778 # cpg.click_back_by_android()779 #780 # @tags('ALL', 'CMCC', 'Call')781 # def test_call_zhenyishan_0058(self):782 # """éè¯æ¨¡åï¼æç´¢æ --éè¿è±ææç´¢åºç»æ"""783 # # 1ãå½å为å¤æ¹è§é¢è系人éæ©é¡µ784 # # 2ãæ¬å°è系人ä¸å·²æè±æå称çè系人785 # # Step:1ãå¨è¾å
¥æ¡è¾å
¥è±æ786 # cpg = CallPage()787 # cpg.click_multi_party_video()788 # # CheckPoint:1ãæ ¹æ®è¾å
¥æ¡ä»¶ï¼æç´¢åºå§åä¸å«æ对åºè±æçç»æ789 # SelectContactsPage().search("ç¹æ®!@$")790 # time.sleep(1)791 # cpg.page_should_contain_text("13800138040")792 # # CheckPoint: 2ãæç´¢ç»æä¸ï¼å·²å¹é
çå
容é«äº®æ¾ç¤º793 # # CheckPoint: 3ãç¹å»å¯éä¸ï¼å¹¶ä¸æ¸
空è¾å
¥å
容794 # mppg = MultiPartyVideoPage()795 # mppg.click_contact_icon(0)796 # time.sleep(1)797 # cpg.page_should_contain_text("æç´¢æè¾å
¥å·ç ")798 # cpg.click_back_by_android()799 #800 # @tags('ALL', 'CMCC', 'Call')801 # def test_call_zhenyishan_0059(self):802 # """éè¯æ¨¡åï¼æç´¢æ --éè¿æ°åæç´¢åºç»æ"""803 # # 1ãå½å为å¤æ¹è§é¢è系人éæ©é¡µ804 # # 2ãæ¬å°è系人ä¸å·²æå称å«ææ°åçè系人805 # # Step:1ãå¨è¾å
¥æ¡è¾å
¥æ°å806 # cpg = CallPage()807 # cpg.click_multi_party_video()808 # # CheckPoint:1ãæ ¹æ®è¾å
¥æ¡ä»¶ï¼æç´¢åºå§åãææºå·ç ä¸å«æ对åºæ°åçç»æ809 # SelectContactsPage().search("大佬1")810 # time.sleep(1)811 # cpg.page_should_contain_text("13800138005")812 # # CheckPoint: 2ãæç´¢ç»æä¸ï¼å·²å¹é
çå
容é«äº®æ¾ç¤º813 # # CheckPoint: 3ãç¹å»å¯éä¸ï¼å¹¶ä¸æ¸
空è¾å
¥å
容814 # mppg = MultiPartyVideoPage()815 # mppg.click_contact_icon(0)816 # time.sleep(1)817 # cpg.page_should_contain_text("æç´¢æè¾å
¥å·ç ")818 # cpg.click_back_by_android()819 #820 # @tags('ALL', 'CMCC', 'Call')821 # def test_call_zhenyishan_0060(self):822 # """éè¯æ¨¡åï¼æç´¢æ --éè¿æ°åæç´¢åºç»æ"""823 # # 1ãå½å为å¤æ¹è§é¢è系人éæ©é¡µ824 # # 2ãæ¬å°è系人ä¸å·²æå称å«ææ°åçè系人825 # # Step:1ãå¨è¾å
¥æ¡è¾å
¥æ°å826 # cpg = CallPage()827 # cpg.click_multi_party_video()828 # # CheckPoint:1ãæ ¹æ®è¾å
¥æ¡ä»¶ï¼æç´¢åºå§åãææºå·ç ä¸å«æ对åºæ°åçç»æ829 # SelectContactsPage().search("大佬1")830 # time.sleep(1)831 # cpg.page_should_contain_text("13800138005")832 # # CheckPoint: 2ãæç´¢ç»æä¸ï¼å·²å¹é
çå
容é«äº®æ¾ç¤º833 # # CheckPoint: 3ãç¹å»å¯éä¸ï¼å¹¶ä¸æ¸
空è¾å
¥å
容834 # mppg = MultiPartyVideoPage()835 # mppg.click_contact_icon(0)836 # time.sleep(1)837 # cpg.page_should_contain_text("æç´¢æè¾å
¥å·ç ")838 # cpg.click_back_by_android()839 #840 # @tags('ALL', 'CMCC', 'Call')841 # def test_call_zhenyishan_0071(self):842 # """éè¯æ¨¡åï¼è¿å
¥å¤æ¹è§é¢è系人éæ©é¡µï¼æç´¢åºç»æï¼æç´¢æ ä¸æ¹æ¾ç¤ºï¼ãæ¾å¤§éå¾æ ãæç´¢å¢éè系人ï¼ãæç´¢å
容ã >ï¼ç¹å»è·³è½¬å°å¢éè系人æç´¢ç»æ页é¢"""843 # # 1ãå½å为å¤æ¹è§é¢è系人éæ©é¡µ844 # # Step: 1ãå¨è¾å
¥æ¡è¾å
¥ä»»æå
容845 # cpg = CallPage()846 # cpg.click_multi_party_video()847 # # Step: 2ãæ£æ¥è¾å
¥æ¡ä¸æ¹848 # SelectContactsPage().search("大佬1")849 # time.sleep(1)850 # # CheckPoint:1ãæç´¢æ ä¸æ¹æ¾ç¤ºï¼ãæ¾å¤§éå¾æ ãæç´¢å¢éè系人ï¼ãæç´¢å
容ã851 # # CheckPoint: 2ãæç´¢è¶
é¿å
容æ¶ï¼åé¢...æ¾ç¤º852 # cpg.page_should_contain_text("æç´¢å¢éè系人 : 大佬1")853 # # CheckPoint: 3ãç¹å»è·³è½¬å°å¢éè系人æç´¢ç»æ页é¢854 # SelectContactsPage().click_search_he_contact()855 # time.sleep(1)856 # cpg.page_should_contain_text("å¢éè系人")857 # cpg.click_back_by_android(3)858 #859 # @tags('ALL', 'CMCC', 'Call')860 # def test_call_zhenyishan_0073(self):861 # """éè¯æ¨¡åï¼è¿å
¥å¤æ¹è§é¢è系人éæ©é¡µï¼æ£æ¥ãéæ©å¢éè系人ãå
¥å£"""862 # # 1ãå½å为å¤æ¹è§é¢è系人éæ©é¡µ863 # # 2ãç¨æ·å·²å å
¥ä¼ä¸864 # # Step: 1ãç¹å»ãéæ©å¢éè系人ã865 # cpg = CallPage()866 # cpg.click_multi_party_video()867 # # CheckPoint:1ã跳转å¢éè系人éæ©é¡µ868 # SelectContactsPage().click_search_he_contact()869 # time.sleep(1)870 # cpg.page_should_contain_text("éæ©è系人")871 # cpg.click_back_by_android(2)872 #873 # @tags('ALL', 'CMCC', 'Call')874 # def test_call_zhenyishan_0076(self):875 # """éè¯æ¨¡åï¼æ£æ¥å¢éè系人éæ©é¡µç页é¢æ¾ç¤º"""876 # # 1ãå½å为å¢éè系人éæ©é¡µ877 # # Step: 1ãæ£æ¥é¡µé¢æ¾ç¤º878 # cpg = CallPage()879 # cpg.click_multi_party_video()880 # SelectContactsPage().click_search_he_contact()881 # time.sleep(1)882 # # CheckPoint:1ãè¿åæé®883 # mppg = MultiPartyVideoPage()884 # self.assertTrue(mppg.is_exist_back_button())885 #886 # # CheckPoint:2ãæ é¢ï¼éæ©è系人887 # cpg.page_should_contain_text("éæ©è系人")888 #889 # # CheckPoint:3ãæç´¢æ å
ç½®ç°æ¾ç¤ºâæç´¢æè¾å
¥ææºå·â890 # cpg.page_should_contain_text("æç´¢æè¾å
¥ææºå·")891 #892 # # CheckPoint:4ãå¼å«æé®ï¼ç½®ç°æ¾ç¤º893 # # CheckPoint:5ãä¼ä¸å±çº§æ¾ç¤º894 # self.assertFalse(mppg.is_enabled_tv_sure())895 #896 # @tags('ALL', 'CMCC', 'Call')897 # def test_call_zhenyishan_0080(self):898 # """éè¯æ¨¡åï¼å¢éè系人éæ©é¡µæç´¢æ --éè¿ä¸ææç´¢åºç»æ"""899 # # 1ãå½å为å¢éè系人éæ©é¡µ900 # # 2ãå¢éä¸å·²æç®ä½ä¸æå称çè系人以åç¹ä½ä¸æå称çè系人901 # # Step: 1ãå¨è¾å
¥æ¡è¾å
¥ç®ä½ä¸æ/ç¹ä½ä¸æ902 # cpg = CallPage()903 # cpg.click_multi_party_video()904 # SelectContactsPage().click_search_he_contact()905 # time.sleep(1)906 # # CheckPoint:1ãæ ¹æ®æç´¢æ¡ä»¶ï¼æç´¢åºå§åãå
¬å¸å称ä¸å«æ对åºä¸æçè系人907 # # CheckPoint:2ãè§åï¼ä¸æå®å
¨å¹é
>åé¨å¹é
>åé¨å¹é
908 # # å®å
¨å¹é
909 # SelectContactsPage().search("大佬1")910 # cpg.page_should_contain_text("大佬1")911 # cpg.page_should_not_contain_text("大佬2")912 # cpg.page_should_not_contain_text("大佬3")913 # cpg.page_should_not_contain_text("大佬4")914 #915 # # é¨åå¹é
916 # SelectContactsPage().search("大佬")917 # cpg.page_should_contain_text("大佬1")918 # cpg.page_should_contain_text("大佬2")919 # cpg.page_should_contain_text("大佬3")920 # cpg.page_should_contain_text("大佬4")921 # # å
æ¾ç¤ºååé¨åå¹é
ï¼åæ¾ç¤ºååé¨å¹é
922 # cpg.page_should_not_contain_text("é¦æ¸¯å¤§ä½¬")923 #924 # # CheckPoint:3ãæç´¢ç»æä¸ï¼å·²å¹é
çå
容é«äº®æ¾ç¤º925 # # CheckPoint:4ãç¹å»å¯éä¸ï¼å¹¶ä¸æ¸
空è¾å
¥å
容926 # cpg.click_text("大佬1")927 # cpg.page_should_contain_text("æç´¢æè¾å
¥ææºå·")928 # cpg.click_back_by_android(2)929 #930 # @tags('ALL', 'CMCC', 'Call')931 # def test_call_zhenyishan_0081(self):932 # """éè¯æ¨¡åï¼å¢éè系人éæ©é¡µæç´¢æ --éè¿åæ¯æç´¢åºç»æ"""933 # # 1ãå½å为å¢éè系人éæ©é¡µ934 # # 2ãå¢éä¸å·²æè±æå称çè系人935 # # Step: 1ãå¨è¾å
¥æ¡è¾å
¥è±æ936 # cpg = CallPage()937 # cpg.click_multi_party_video()938 # SelectContactsPage().click_search_he_contact()939 # time.sleep(1)940 # # CheckPoint:1ãæ ¹æ®æç´¢æ¡ä»¶ï¼æç´¢åºå§åãå
¬å¸å称ä¸å«æ对åºåæ¯çè系人941 # # CheckPoint:2ãä¼å
级ï¼æ¼é³>é¦åæ¯942 # # CheckPoint:3ãè§åï¼å®å
¨å¹é
>åé¨å¹é
>åé¨å¹é
943 # # å®å
¨å¹é
944 # SelectContactsPage().search("English")945 # cpg.page_should_contain_text("English")946 # cpg.page_should_not_contain_text("Lily")947 #948 # # é¨åå¹é
æåº949 # SelectContactsPage().search("li")950 # mppg = MultiPartyVideoPage()951 # time.sleep(2)952 # self.assertTrue("Lily" == mppg.get_img_icon_contactlist(0))953 # self.assertTrue("English" == mppg.get_img_icon_contactlist(1))954 #955 # # CheckPoint:4ãæç´¢ç»æä¸ï¼å·²å¹é
çå
容é«äº®æ¾ç¤º956 # # CheckPoint:5ãç¹å»å¯éä¸ï¼å¹¶ä¸æ¸
空è¾å
¥å
容957 # cpg.click_text("English")958 # cpg.page_should_contain_text("æç´¢æè¾å
¥ææºå·")959 # cpg.click_back_by_android(2)960 #961 # @tags('ALL', 'CMCC', 'Call')962 # def test_call_zhenyishan_0082(self):963 # """éè¯æ¨¡åï¼å¢éè系人éæ©é¡µæç´¢æ --éè¿æ°åæç´¢åºç»æ"""964 # # 1ãå½å为å¢éè系人éæ©é¡µ965 # # 2ãå¢éä¸å·²æå称å«ææ°åçè系人966 # # Step: 1ãå¨è¾å
¥æ¡è¾å
¥æ°å967 # cpg = CallPage()968 # cpg.click_multi_party_video()969 # SelectContactsPage().click_search_he_contact()970 # time.sleep(1)971 # # CheckPoint:1ãæ ¹æ®æç´¢æ¡ä»¶ï¼æç´¢åºå§åãææºå·ç ä¸å«æ对åºæ°åçç»æ972 # # CheckPoint:2ãä¼å
级ï¼ææº>å§å>å
¶å®å·ç ï¼å«åºè¯ãçå·ï¼973 # # CheckPoint:3ãè§åï¼>=6ä½å±ç¤ºæç´¢ç»æï¼çå·é¤å¤ï¼974 # SelectContactsPage().search("大佬1")975 # cpg.page_should_contain_text("大佬1")976 # cpg.page_should_contain_text("13800138005")977 #978 # # CheckPoint:4ãç»æï¼é«äº®å¹é
æç´¢æ°åï¼ææææç´¢ç»æå§åé¦åæ¯A-Zæåº979 # # CheckPoint:5ãç¹å»å¯éä¸ï¼å¹¶ä¸æ¸
空è¾å
¥å
容980 # cpg.click_text("大佬1")981 # cpg.page_should_contain_text("æç´¢æè¾å
¥ææºå·")982 # cpg.click_back_by_android(2)983 #984 # @tags('ALL', 'CMCC', 'Call')985 # def test_call_zhenyishan_0083(self):986 # """éè¯æ¨¡åï¼å¢éè系人éæ©é¡µæç´¢æ --éè¿ç¹æ®å符æç´¢åºç»æ"""987 # # 1ãå½å为å¢éè系人éæ©é¡µ988 # # 2ãå¢éä¸å·²æå称å«æç¹æ®å符çè系人989 # # Step: 1ãå¨è¾å
¥æ¡è¾å
¥ç¹æ®å符990 # cpg = CallPage()991 # cpg.click_multi_party_video()992 # SelectContactsPage().click_search_he_contact()993 # time.sleep(1)994 # # CheckPoint:1ãæ ¹æ®æç´¢æ¡ä»¶ï¼æç´¢åºå§åãå
¬å¸å称ä¸å«æ对åºç¹æ®ç¬¦å·çç»æ995 # # CheckPoint:2ãè§åï¼>=2ä½å符ï¼æ¯æ"+",â.âçç»åæç´¢996 # # CheckPoint:3ãä¼å
级ï¼å®å
¨å¹é
>åé¨å¹é
>åé¨å¹é
997 # SelectContactsPage().search("ç¹æ®!@$")998 # cpg.page_should_contain_text("ç¹æ®!@$")999 # cpg.page_should_contain_text("13800138040")1000 #1001 # # CheckPoint:4ãç»æï¼é«äº®å¹é
ç¹æ®å符ç»åãææææç´¢ç»æå§åé¦åæ¯A-Zæåº1002 # # CheckPoint:5ãç¹å»å¯éä¸ï¼å¹¶ä¸æ¸
空è¾å
¥å
容1003 # cpg.click_text("ç¹æ®!@$")1004 # cpg.page_should_contain_text("æç´¢æè¾å
¥ææºå·")1005 # cpg.click_back_by_android(2)1006 #1007 # @tags('ALL', 'CMCC', 'Call')1008 # def test_call_zhenyishan_0087(self):1009 # """éè¯æ¨¡åï¼å¢éè系人éæ©é¡µæç´¢æ --æç´¢æ¬æºå·ç """1010 # # 1ãå½å为å¢éè系人éæ©é¡µ1011 # # Step: 1ãå¨è¾å
¥æ¡è¾å
¥æ¬æºå·ç 1012 # cpg = CallPage()1013 # cpg.click_multi_party_video()1014 # SelectContactsPage().click_search_he_contact()1015 # time.sleep(1)1016 # # CheckPoint:1ãé»è®¤ç½®ç°ä¸å¯é1017 # # CheckPoint:2ãç¹å»åtoastæ示ï¼è¯¥è系人ä¸å¯éæ©1018 # phone_number = current_mobile().get_cards(CardType.CHINA_MOBILE)[0]1019 # SelectContactsPage().search(phone_number)1020 # MultiPartyVideoPage().click_img_icon_contactlist()1021 # self.assertTrue(cpg.is_toast_exist("该è系人ä¸å¯éæ©"))1022 # cpg.click_back_by_android(2)1023 #1024 # @tags('ALL', 'CMCC', 'Call')1025 # def test_call_zhenyishan_0096(self):1026 # """éè¯æ¨¡åï¼æ£æ¥ä¼ä¸å
¥å£"""1027 # # 1ãå½å为å¢éè系人éæ©é¡µ1028 # # 2ãæ¬æºç¨æ·å·²å å
¥ä¼ä¸1029 # # Step: 1ãç¹å»ä¼ä¸å称1030 # cpg = CallPage()1031 # cpg.click_multi_party_video()1032 # SelectContactsPage().click_search_he_contact()1033 # time.sleep(1)1034 # # CheckPoint:1ãæç´¢æ å
ç½®ç°æ¾ç¤ºâå½åç»ç»â1035 # cpg.page_should_contain_text("å½åç»ç»")1036 # # CheckPoint:2ãå±ç¤ºè¯¥å表ä¸çç¨æ·1037 # cpg.page_should_contain_text("æ¬æº")1038 # phone_number = current_mobile().get_cards(CardType.CHINA_MOBILE)[0]1039 # cpg.page_should_contain_text(phone_number)1040 # # CheckPoint:3ãå±ç¤ºè¯¥å表ä¸çåç»1041 # # CheckPoint:4ã顶端æ¾ç¤ºä¼ä¸å¯¼èªæ é¢å
å±ï¼ç¹å»è·³è½¬å°å¯¹åºçå表1042 # cpg.click_back_by_android(2)1043 #1044 # @tags('ALL', 'CMCC', 'Call')1045 # def test_call_zhenyishan_0100(self):1046 # """éè¯æ¨¡åï¼é¨é¨çº§æç´¢--æç´¢é¨é¨ä¸çç¨æ·"""1047 # # 1ãå½å为å¢éè系人éæ©é¡µ1048 # # 2ãå·²ç¹å»è¿å
¥ä¼ä¸ä¸çé¨é¨åç»1049 # # Step: 1ãæç´¢å½åé¨é¨ä¸çç¨æ·1050 # cpg = CallPage()1051 # cpg.click_multi_party_video()1052 # SelectContactsPage().click_search_he_contact()1053 # time.sleep(1)1054 # # CheckPoint:1ãæ ¹æ®æç´¢ç»æå±ç¤ºå¯¹æ¹å§åãææºå·ç ãé¨é¨åç»1055 # SelectContactsPage().search("大佬1")1056 # time.sleep(1)1057 # cpg.page_should_contain_text("13800138005")1058 # cpg.page_should_contain_text("æµè¯é¨é¨1")1059 # # CheckPoint:2ãç¹å»å¯éä¸ï¼å¹¶ä¸æ¸
空è¾å
¥å
容1060 # cpg.click_text("13800138005")1061 # cpg.page_should_contain_text("æç´¢æè¾å
¥ææºå·")1062 # cpg.click_back_by_android(2)1063 #1064 # @tags('ALL', 'CMCC', 'Call')1065 # def test_call_zhenyishan_0105(self):1066 # """éè¯æ¨¡åï¼ç¹å»å¢éè系人ï¼æ£æ¥è系人ç¶ææ¾ç¤º"""1067 # # 1ãå½å为å¢éè系人éæ©é¡µ1068 # # 2ãå·²ç¹å»è¿å
¥ä¼ä¸ä¸çé¨é¨åç»1069 # # Step: 1ãç¹å»ä»»æå¢éè系人1070 # cpg = CallPage()1071 # cpg.click_multi_party_video()1072 # SelectContactsPage().click_search_he_contact()1073 # time.sleep(1)1074 # # CheckPoint:1ã对åºè系人æ¾ç¤ºå¾éç¶æï¼å¤´ç¸å¤æ¾ç¤ºâââ1075 # cpg.click_text("ateam3465")1076 # cpg.click_text("大佬1")1077 # # CheckPoint:2ãæç´¢æ¡æ¾ç¤ºå·²æ·»å è系人1078 # SelectLocalContactsPage().is_exist_select_contacts_name()1079 # # CheckPoint:3ãå³ä¸è§âå¼å«âæé®ï¼æ°ååçååï¼å¹¶ä¸ç±ç½®ç°å为å¯ç¹å»1080 # cpg.page_should_contain_text("å¼å«(1/8)")1081 # self.assertTrue(SelectCompanyContactsPage().sure_button_is_enabled())1082 # cpg.click_back_by_android(2)1083 #1084 # @tags('ALL', 'CMCC', 'Call')1085 # def test_call_zhenyishan_0119(self):1086 # """éè¯æ¨¡åï¼ç¹å»æ¬å°é讯å½è系人ï¼æ£æ¥è系人ç¶ææ¾ç¤º"""1087 # # 1ãå½å为å¤æ¹è§é¢è系人éæ©é¡µ1088 # # Step: 1ãç¹å»ä»»ææ¬å°é讯å½è系人1089 # cpg = CallPage()1090 # cpg.click_multi_party_video()1091 # time.sleep(1)1092 # # CheckPoint:1ã对åºè系人æ¾ç¤ºå¾éç¶æï¼å¤´ç¸å¤æ¾ç¤ºâââ1093 # cpg.click_text("大佬1")1094 # time.sleep(1)1095 # # CheckPoint:2ãæç´¢æ¡æ¾ç¤ºå·²æ·»å è系人1096 # SelectLocalContactsPage().is_exist_select_contacts_name()1097 # # CheckPoint:3ãå³ä¸è§âå¼å«âæé®ï¼æ°ååçååï¼å¹¶ä¸ç±ç½®ç°å为å¯ç¹å»1098 # cpg.page_should_contain_text("å¼å«(1/8)")1099 # self.assertTrue(MultiPartyVideoPage().sure_button_is_enabled())1100 # cpg.click_back_by_android(2)1101 #1102 # @tags('ALL', 'CMCC', 'Call')1103 # def test_call_zhenyishan_0127(self):1104 # """éè¯æ¨¡åï¼ä»
å¾éæ¬å°è系人ï¼åèµ·å¤æ¹è§é¢"""1105 # # 1ãå½å为å¤æ¹è§é¢è系人éæ©é¡µ1106 # # Step: 1ãä»
å¾éæ¬å°è系人ï¼ç¹å»å¼å«åèµ·å¤æ¹è§é¢1107 # cpg = CallPage()1108 # cpg.click_multi_party_video()1109 # time.sleep(1)1110 # # CheckPoint:1ãæ£å¸¸åèµ·å¤æ¹è§é¢1111 # mppg = MultiPartyVideoPage()1112 # mppg.select_contacts_by_number("14775970982")1113 # mppg.select_contacts_by_number("13800138005")1114 # mppg.select_contacts_by_number("13800138006")1115 # mppg.click_tv_sure()1116 # time.sleep(1)1117 # if cpg.is_text_present("ç°å¨å»å¼å¯"):1118 # cpg.click_text("æä¸å¼å¯")1119 # time.sleep(1)1120 # self.assertTrue(mppg.is_exist_end_video_call())1121 # mppg.click_end_video_call()1122 # mppg.click_btn_ok()1123 # time.sleep(1)1124 # cpg.click_back_by_android(2)1125 #1126 # @tags('ALL', 'CMCC', 'Call')1127 # def test_call_zhenyishan_0128(self):1128 # """éè¯æ¨¡åï¼ä»
å¾éåé讯å½è系人ï¼åèµ·å¤æ¹è§é¢"""1129 # # 1ãå½å为å¤æ¹è§é¢è系人éæ©é¡µ1130 # # Step: 1ãç¹å»è¿å
¥åé讯å½1131 # # Step: 2ãå¾éåé讯å½è系人ï¼ç¹å»å¼å«åèµ·å¤æ¹è§é¢1132 # cpg = CallPage()1133 # cpg.click_multi_party_video()1134 # time.sleep(1)1135 # # CheckPoint:1ãæ£å¸¸åèµ·å¤æ¹è§é¢1136 # mppg = MultiPartyVideoPage()1137 # SelectContactsPage().click_search_he_contact()1138 # time.sleep(1)1139 # cpg.click_text("ateam3465")1140 # time.sleep(1)1141 # cpg.click_text("大佬1")1142 # time.sleep(1)1143 # cpg.click_text("大佬2")1144 # time.sleep(1)1145 # cpg.click_text("大佬3")1146 # time.sleep(1)1147 # cpg.click_back_by_android(2)1148 # mppg.click_tv_sure()1149 # time.sleep(1)1150 # if cpg.is_text_present("ç°å¨å»å¼å¯"):1151 # cpg.click_text("æä¸å¼å¯")1152 # time.sleep(1)1153 # self.assertTrue(mppg.is_exist_end_video_call())1154 # mppg.click_end_video_call()1155 # mppg.click_btn_ok()1156 # time.sleep(1)1157 # cpg.click_back_by_android(2)1158 #1159 # @tags('ALL', 'CMCC', 'Call')1160 # def test_call_zhenyishan_0129(self):1161 # """éè¯æ¨¡åï¼ä»
å¾ééçè系人ï¼å¯åèµ·å¤æ¹è§é¢"""1162 # # 1ãå½å为å¤æ¹è§é¢è系人éæ©é¡µ1163 # # Step: 1ãéè¿æç´¢æ æç´¢åº2-8个éçè系人并ä¸éä¸1164 # # Step: 2ãç¹å»å¼å«åèµ·å¤æ¹è§é¢1165 # cpg = CallPage()1166 # cpg.click_multi_party_video()1167 # time.sleep(1)1168 # # CheckPoint:1ãæ£å¸¸åèµ·å¤æ¹è§é¢1169 # mppg = MultiPartyVideoPage()1170 # SelectContactsPage().search("13800139000")1171 # mppg.click_contact_list_item()1172 # SelectContactsPage().search("13800139001")1173 # mppg.click_contact_list_item()1174 # SelectContactsPage().search("13800139002")1175 # mppg.click_contact_list_item()1176 # mppg.click_tv_sure()1177 # time.sleep(1)1178 # if cpg.is_text_present("ç°å¨å»å¼å¯"):1179 # cpg.click_text("æä¸å¼å¯")1180 # time.sleep(1)1181 # self.assertTrue(mppg.is_exist_end_video_call())1182 # mppg.click_end_video_call()1183 # mppg.click_btn_ok()1184 # time.sleep(1)1185 # cpg.click_back_by_android(2)1186 #1187 # @tags('ALL', 'CMCC', 'Call')1188 # def test_call_zhenyishan_0130(self):1189 # """éè¯æ¨¡åï¼å¾éæ¬å°è系人+åé讯å½è系人+éçè系人ï¼åèµ·å¤æ¹è§é¢"""1190 # # 1ãå½å为å¤æ¹è§é¢è系人éæ©é¡µ1191 # cpg = CallPage()1192 # cpg.click_multi_party_video()1193 # time.sleep(1)1194 # # Step: 1ãéè¿æç´¢æ æç´¢åº1个éçè系人并ä¸éä¸1195 # mppg = MultiPartyVideoPage()1196 # SelectContactsPage().search("13800139000")1197 # mppg.click_contact_list_item()1198 # # Step: 2ãç¹å»è¿å
¥åé讯å½ï¼éä¸1个åé讯å½è系人1199 # SelectContactsPage().click_search_he_contact()1200 # time.sleep(1)1201 # cpg.click_text("ateam3465")1202 # time.sleep(1)1203 # cpg.click_text("大佬1")1204 # time.sleep(1)1205 # cpg.click_back_by_android(2)1206 # # Step: 3ãå¨æ¬å°é讯å½éä¸1个è系人1207 # mppg.select_contacts_by_number("14775970982")1208 # # Step: 4ãç¹å»å¼å«åèµ·å¤æ¹è§é¢1209 # mppg.click_tv_sure()1210 # # CheckPoint:1ãæ£å¸¸åèµ·å¤æ¹è§é¢1211 # time.sleep(1)1212 # if cpg.is_text_present("ç°å¨å»å¼å¯"):1213 # cpg.click_text("æä¸å¼å¯")1214 # time.sleep(1)1215 # self.assertTrue(mppg.is_exist_end_video_call())1216 # mppg.click_end_video_call()1217 # mppg.click_btn_ok()1218 # time.sleep(1)1219 # cpg.click_back_by_android(2)1220 #1221 # @tags('ALL', 'CMCC', 'Call')1222 # def test_call_zhenyishan_0145(self):1223 # """åç»ç¾¤å/æ ç¾åç»/群åæ¶æ¯ï¼å¤æ¹è§é¢è系人éæ©å¨æ索群æå"""1224 # # 1ãå·²éè¿åç»ç¾¤å/æ ç¾åç»/群åæ¶æ¯è¿å
¥å¤æ¹è§é¢è系人éæ©å¨1225 # cpg = CallPage()1226 # Preconditions.enter_label_grouping_chat_page()1227 # gpg = GroupListPage()1228 # gpg.click_mult_call_icon()1229 # CallPage().click_mutil_video_call()1230 # # Step: 1ãå¨æç´¢æ¡è¾å
¥æ ç¾åç»æåå称1231 # GroupListPage().search_menber_text("大佬1")1232 #1233 # # CheckPoint:1ãæ ¹æ®è¾å
¥æ¡ä»¶ï¼æç´¢åºæ ç¾åç»æå1234 # cpg.page_should_contain_text("13800138005")1235 #1236 # # CheckPoint:2ãæç´¢ç»æä¸ï¼å·²å¹é
çå
容é«äº®æ¾ç¤º1237 # # CheckPoint:3ãç¹å»å¯éä¸ï¼å¹¶ä¸æ¸
空è¾å
¥å
容1238 # mppg = MultiPartyVideoPage()1239 # mppg.click_contact_head()1240 # time.sleep(1)1241 # cpg.page_should_contain_text("æç´¢æ ç¾åç»æå")1242 # cpg.click_back_by_android(4)1243 # cpg.click_call()1244 #1245 # @tags('ALL', 'CMCC', 'Call')1246 # def test_call_zhenyishan_0155(self):1247 # """åç»ç¾¤å/æ ç¾åç»/群åæ¶æ¯ï¼åèµ·å¤æ¹è§é¢ï¼å¨ç®¡ç页é¢ç¹å»â+âè¿å
¥æ ç¾åç»è系人éæ©é¡µ"""1248 # # Step: 1ãéè¿åç»ç¾¤å/æ ç¾åç»/群åæ¶æ¯åèµ·å¤æ¹è§é¢1249 # cpg = CallPage()1250 # Preconditions.enter_label_grouping_chat_page()1251 # gpg = GroupListPage()1252 # gpg.click_mult_call_icon()1253 # CallPage().click_mutil_video_call()1254 # time.sleep(1)1255 # cpg.click_text("大佬1")1256 # time.sleep(1)1257 # cpg.click_text("ç»ä¸ªçº¢å
1")1258 # time.sleep(1)1259 # mppg = MultiPartyVideoPage()1260 # mppg.click_tv_sure()1261 # time.sleep(1)1262 # if cpg.is_text_present("ç°å¨å»å¼å¯"):1263 # cpg.click_text("æä¸å¼å¯")1264 # time.sleep(1)1265 # self.assertTrue(mppg.is_exist_end_video_call())1266 #1267 # # Step: 2ãå¨å¤æ¹è§é¢ç®¡ç页é¢ç¹å»â+âè¿å
¥è系人éæ©é¡µ1268 # MutiVideoPage().click_multi_video_add_person()1269 #1270 # # CheckPoint:1ãè系人éæ©é¡µæ¾ç¤ºæ ç¾åç»æå1271 # cpg.page_should_contain_text("æç´¢æ ç¾åç»æå")1272 # cpg.click_back_by_android()1273 # if mppg.is_exist_end_video_call():1274 # mppg.click_end_video_call()1275 # cpg.click_back_by_android(3)1276 # cpg.click_call()1277 #1278 # @tags('ALL', 'CMCC', 'Call')1279 # def test_call_zhenyishan_0158(self):1280 # """å¤æ¹è§é¢ç®¡ç页é¢ï¼æ£æ¥å
ææé®"""1281 # # 1ãå·²æååèµ·å¤æ¹è§é¢1282 # # 2ãå½å为å¤æ¹è§é¢ç®¡ççé¢1283 # # Step: 1ãç¹å»å
ææé®1284 # cpg = CallPage()1285 # cpg.click_multi_party_video()1286 # mppg = MultiPartyVideoPage()1287 # mppg.select_contacts_by_number("14775970982")1288 # mppg.select_contacts_by_number("13800138006")1289 # mppg.click_tv_sure()1290 # time.sleep(1)1291 # if cpg.is_exist_go_on():1292 # cpg.click_go_on()1293 # MutiVideoPage().wait_for_and_click_not_open()1294 # time.sleep(2)1295 # # CheckPoint:1ãé»è®¤ä¸ºå¼å¯ç¶æ1296 # self.assertTrue(MutiVideoPage().is_selected_mutil_video_call_speaker_btn())1297 # # CheckPoint:2ãå½å为å¼å¯ç¶æï¼ç¹å»æé®ï¼æé®å为å
³éç¶æï¼æé®ç½®ç°ï¼è§é¢éè¯å£°é³ä»ææºå¬çææ¾1298 # MutiVideoPage().click_mutil_video_call_speaker_btn()1299 # time.sleep(2)1300 # self.assertFalse(MutiVideoPage().is_selected_mutil_video_call_speaker_btn())1301 # # CheckPoint:3ãå½å为å
³éç¶æï¼ç¹å»æé®ï¼æé®å为å¼å¯ç¶æï¼æé®é«äº®ï¼è§é¢éè¯å£°é³ä»ææºå¤æ¾ææ¾1302 # MutiVideoPage().click_mutil_video_call_speaker_btn()1303 # time.sleep(2)1304 # self.assertTrue(MutiVideoPage().is_selected_mutil_video_call_speaker_btn())1305 #1306 # @tags('ALL', 'CMCC', 'Call')1307 # def test_call_zhenyishan_0159(self):1308 # """å¤æ¹è§é¢ç®¡ç页é¢ï¼æ£æ¥å
ææé®"""1309 # # 1ãå·²æååèµ·å¤æ¹è§é¢1310 # # 2ãå½å为å¤æ¹è§é¢ç®¡ççé¢1311 # # Step: 1ãç¹å»éé³æé®1312 # cpg = CallPage()1313 # cpg.click_multi_party_video()1314 # mppg = MultiPartyVideoPage()1315 # mppg.select_contacts_by_number("14775970982")1316 # mppg.select_contacts_by_number("13800138006")1317 # mppg.click_tv_sure()1318 # time.sleep(1)1319 # if cpg.is_exist_go_on():1320 # cpg.click_go_on()1321 # MutiVideoPage().wait_for_and_click_not_open()1322 # time.sleep(2)1323 # # CheckPoint:1ãé»è®¤ä¸ºå¼å¯ç¶æ1324 # self.assertTrue(MutiVideoPage().is_selected_mutil_video_call_mute())1325 # # CheckPoint:2ãå½å为å¼å¯ç¶æï¼ç¹å»æé®ï¼æé®å为å
³éç¶ææé®ç½®ç°ï¼æ¬æºè¯´è¯ï¼å¯¹æ¹è½å¬å°æ¬æºå£°é³1326 # MutiVideoPage().click_mutil_video_call_mute()1327 # time.sleep(2)1328 # self.assertFalse(MutiVideoPage().is_selected_mutil_video_call_mute())1329 # # CheckPoint:3ãå½å为å
³éç¶æï¼ç¹å»æé®ï¼æé®å为å¼å¯ç¶æï¼æé®é«äº®ï¼æ¬æºè¯´è¯ï¼å¯¹æ¹ä¸è½å¬å°æ¬æºå£°é³1330 # MutiVideoPage().click_mutil_video_call_mute()1331 # time.sleep(2)1332 # self.assertTrue(MutiVideoPage().is_selected_mutil_video_call_mute())1333 #1334 # @tags('ALL', 'CMCC', 'Call')1335 # def test_call_zhenyishan_0200(self):1336 # """æ£æ¥å¤æ¹è§é¢éè¯è®°å½è¯¦æ
页å
¥å£"""1337 # # 1ãéè¯è®°å½å表已æå¤æ¹è§é¢è®°å½1338 # # Step: 1ãç¹å»å¤æ¹è§é¢éè¯è®°å½å³ä¾§âï¼â1339 # self.test_call_zhenyishan_0002()1340 # cpg = CallPage()1341 # cpg.click_call_time()1342 # # CheckPointï¼1ãè¿å
¥å¤æ¹è§é¢éè¯è®°å½è¯¦æ
页1343 # cpg.page_should_contain_text("å次å¼å«")1344 # cpg.page_should_contain_text("å¤æ¹è§é¢")1345 # cpg.click_back_by_android()1346 #1347 # @tags('ALL', 'CMCC', 'Call')1348 # def test_call_zhenyishan_0204(self):1349 # """å¤æ¹è§é¢éè¯è®°å½è¯¦æ
页ï¼æ£æ¥ä¸é®å»ºç¾¤æé®"""1350 # # 1ãå½å为å¤æ¹è§é¢éè¯è®°å½è¯¦æ
页1351 # # Step: 1ãç¹å»ä¸é®å»ºç¾¤æé®1352 # self.test_call_zhenyishan_0002()1353 # cpg = CallPage()1354 # cpg.click_call_time()1355 # # CheckPointï¼1ã跳转å°ç¾¤èå称设置页é¢1356 # mppg = MultiPartyVideoPage()1357 # mppg.click_one_key_new_group()1358 # time.sleep(1)1359 # cpg.page_should_contain_text("群èå称")1360 # cpg.click_back_by_android(2)1361 #1362 # @tags('ALL', 'CMCC', 'Call')1363 # def test_call_zhenyishan_0207(self):1364 # """å¤æ¹è§é¢éè¯è®°å½è¯¦æ
页ï¼ç¹å»ä¸é®å»ºç¾¤ï¼è¿å
¥ç¾¤èå称设置页é¢ï¼æ£æ¥å建æé®"""1365 # # 1ãå½å为设置群èå称页é¢1366 # # Step: 1ã群èå称为空æ¶ç¹å»å建æé®1367 # # Step: 2ãè¾å
¥ç¾¤èå称åç¹å»å建æé®1368 # self.test_call_zhenyishan_0002()1369 # cpg = CallPage()1370 # cpg.click_call_time()1371 # mppg = MultiPartyVideoPage()1372 # mppg.click_one_key_new_group()1373 # time.sleep(1)1374 # cpg.page_should_contain_text("群èå称")1375 # # CheckPointï¼1ãæªæ群èå称ï¼ç½®ç°ä¸å¯ç¹å»1376 # BuildGroupChatPage().click_clear_button()1377 # time.sleep(1)1378 # self.assertFalse(BuildGroupChatPage().is_enabled_tv_sure())1379 # # CheckPointï¼2ãå·²æ群èå称ï¼é«äº®æ¾ç¤ºï¼ç¹å»è·³è½¬å°ç¾¤èçªå£ï¼å¹¶ä¸åå¤æ¹è§é¢æååèµ·è¿ç¾¤é请1380 # BuildGroupChatPage().input_group_chat_name("å¤æ¹éè¯ç¾¤è")1381 # BuildGroupChatPage().click_ok()1382 # cpg.wait_until(timeout=5, auto_accept_permission_alert=True,1383 # condition=lambda d: cpg.is_text_present("ä½ å"))1384 # cpg.page_should_contain_text("ååºç¾¤é请")1385 # cpg.page_should_contain_text("å¤æ¹éè¯ç¾¤è")1386 # cpg.click_back_by_android(2)...
call_all.py
Source:call_all.py
...157 # Step:1.ç¹å»éè¯tab158 cpg = CallPage()159 cpg.click_dial()160 # CheckPoint:1.è¿å
¥å°éè¯è®°å½å表çé¢ï¼åºé¨âéè¯âæé®åæâæ¨å·çâï¼æ¨å·çæé®æ¾ç¤º9èç¹161 cpg.page_should_contain_text('æ¨å·')162 cpg.page_should_contain_text("ç´æ¥æ¨å·æå¼å§æç´¢")163 cpg.click_dial()164 @tags('ALL', 'CMCC', 'Call', "ios")165 def test_call_shenlisi_0004(self):166 """æ£æ¥æ¨å·çå±å¼"""167 cpg = CallPage()168 # Step:1.ç¹å»âæ¨å·ç"æé®169 cpg.click_dial()170 # CheckPoint:1.æ¨å·çå±ç¤ºï¼è¾å
¥æ¡æ示âç´æ¥æ¨å·æè
å¼å§æç´¢âï¼èåæ 被éè171 cpg.page_should_contain_text('ç´æ¥æ¨å·æå¼å§æç´¢')172 cpg.click_dial()173 @tags('ALL', 'CMCC', 'Call', "ios")174 def test_call_shenlisi_0006(self):175 """æ£æ¥å±å¼æ¨å·çï¼éè¯è®°å½ä¸ºç©º"""176 # Step:1.æ¥çéè¯è®°å½177 cpg = CallPage()178 # CheckPoint:1.页é¢ä¸é´æ¾ç¤ºå¾ç以åæ示è¯179 cpg.page_should_contain_text("é«æ¸
éè¯ï¼é«ææ²é")180 cpg.page_should_contain_text('é£ä¿¡çµè¯')181 @tags('ALL', 'CMCC', 'Call', "ios")182 def test_call_shenlisi_0007(self):183 """æ£æ¥æ¨å·çæé®å¯ç¹å»"""184 cpg = CallPage()185 cpg.click_dial()186 # Step:1.ç¹å»æé®â1â187 cpg.click_one()188 # Step:2.ç¹å»æé®â2â189 cpg.click_two()190 # Step:3.ç¹å»æé®â3â191 cpg.click_three()192 # Step:4.ç¹å»æé®â4â193 cpg.click_four()194 # Step:5.ç¹å»æé®â5â195 cpg.click_five()196 # Step:6.ç¹å»æé®â6â197 cpg.click_six()198 # Step:7.ç¹å»æé®â7â199 cpg.click_seven()200 # Step:8.ç¹å»æé®â8â201 cpg.click_eight()202 # Step:9.ç¹å»æé®â9â203 cpg.click_nine()204 # Step:10.ç¹å»æé®â0â205 cpg.click_zero()206 # Step:11.ç¹å»æé®â*â207 cpg.click_star()208 # Step:12.ç¹å»æé®â#â209 cpg.click_sharp()210 # CheckPoint:1.æ¥éª¤1-12ï¼æ¨å·çåé®è¾å
¥æ£å¸¸211 cpg.page_should_contain_text("1234567890*#")212 @tags('ALL', 'CMCC', 'Call', "ios")213 def test_call_shenlisi_0008(self):214 """æ£æ¥å¨æ¨å·çè¾å
¥â+â"""215 # Step:1.æ£æ¥å¨æ¨å·çè¾å
¥â+â216 cpg = CallPage()217 cpg.click_dial()218 time.sleep(1)219 cpg.press_zero()220 # CheckPoint:1.å±å¼åï¼éè¯è®°å½ææè¿éè¯é¡ºåºå±ç¤º221 cpg.page_should_contain_text("+")222 @tags('ALL', 'CMCC', 'Call', "ios")223 def test_call_shenlisi_0009(self):224 """æ£æ¥è¾å
¥æ¡æå
容æ¶æ¨å·çå¯åæ¢å°å
¶å®æ¨¡å"""225 # Step:1.åæ¢è³å
¶å®æ¨¡åååè¿åå°æ¨å·ç226 cpg = CallPage()227 cpg.click_dial()228 cpg.dial_number("15343030000")229 time.sleep(1)230 # CheckPoint:1.æ¶èµ·æ¶åæ¢å°å
¶ä»ç模åï¼å
容ä¸æ¸
é¤ï¼æ£å¸¸æ¾ç¤º231 cpg.page_should_contain_text("15343030000")232 # Step:2. åæ¢ä¸ºæ¶æ¯233 cpg.click_message()234 time.sleep(2)235 # CheckPoint:2.æ¶èµ·æ¶åæ¢å°å
¶ä»ç模åï¼å
容ä¸æ¸
é¤ï¼æ£å¸¸æ¾ç¤º236 cpg.page_should_not_contain_text("15343030000")237 # Step:3. åæ¢ä¸ºæ¨å·ç238 cpg.click_call()239 # CheckPoint:3.æ¶èµ·æ¶åæ¢å°å
¶ä»ç模åï¼å
容ä¸æ¸
é¤ï¼æ£å¸¸æ¾ç¤º240 cpg.page_should_contain_text("15343030000")241 @tags('ALL', 'CMCC', 'Call', "ios")242 def test_call_shenlisi_0010(self):243 """æ£æ¥æ¨å·çå é¤æé®å¯ç¹å»"""244 # 1.åé£ä¿¡ç»å½ç³»ç»ï¼éè¯tab245 # 2.æ¨å·çè¾å
¥æ¡åå¨ææºå·246 cpg = CallPage()247 cpg.click_dial()248 cpg.dial_number("15343038860")249 # Step:1.ç¹å»æé®âXâ250 cpg.click_delete()251 # CheckPoit:1.å¯å é¤è¾å
¥æ¡çæ°æ®252 cpg.page_should_contain_text("1534303886")253 # Step:2.é¿æâXâ254 cpg.press_delete()255 # CheckPoit:2.è¿ç»å é¤è¾å
¥æ¡çæ°æ®256 cpg.page_should_contain_text("ç´æ¥æ¨å·æå¼å§æç´¢")257 cpg.click_dial()258 @tags('ALL', 'CMCC', 'Call', "ios")259 def test_call_shenlisi_0011(self):260 """æ£æ¥æ¨å·çâå¤æ¹çµè¯âæé®å¯ç¹å»"""261 # Step:1.ç¹å»æé®âå¤æ¹çµè¯â262 cpg = CallPage()263 cpg.click_feixin_call()264 time.sleep(2)265 # CheckPoint:1.è°èµ·è系人å¤æ¹çµè¯è系人éæ©å¨266 self.assertTrue(CalllogBannerPage().is_exist_contact_search_bar())267 @tags('ALL', 'CMCC', 'Call', "ios")268 def test_call_shenlisi_0012(self):269 """æ£æ¥æ¨å·çè¾å
¥æ¡ä¸ºç©ºç¹å»âæ¨æâæé®"""270 # 1.åé£ä¿¡ç»å½ç³»ç»ï¼éè¯tab271 # 2.æ¨å·ç为å±å¼ç¶æ272 # 3.æ¨å·çè¾å
¥æ¡ä¸ºç©º273 cpg = CallPage()274 cpg.click_dial()275 time.sleep(2)276 # Step:1.ç¹å»âæ¨å·âæé®277 cpg.click_call_phone()278 time.sleep(1)279 # # CheckPoint:1.æ示âæ¨æå·ç ä¸è½ä¸ºç©ºâ280 # flag = cpg.is_toast_exist("æ¨æçå·ç ä¸è½ä¸ºç©º")281 # self.assertTrue(flag)282 cpg.page_should_contain_text("å·ç ä¸è½ä¸ºç©º")283 cpg.click_dial()284 @tags('ALL', 'CMCC', 'Call', "ios")285 def test_call_shenlisi_0013(self):286 """æ£æ¥æ¨å·çå±å¼ç¶æå¯æ¶èµ·"""287 # 1.åé£ä¿¡ç»å½ç³»ç»ï¼éè¯tab288 # 2.æ¨å·ç为å±å¼ç¶æ289 cpg = CallPage()290 # Step:1.ç¹å»æ¨å·çæé®291 cpg.click_dial()292 time.sleep(1)293 # CheckPoint:1.æ¨å·çå¯æ¶èµ·å±å¼ï¼æ¨å·çå¾æ å为7个èç¹294 self.assertTrue(cpg.is_on_the_dial_pad())295 cpg.click_dial()296 @tags('ALL', 'CMCC', 'Call', "ios")297 def test_call_shenlisi_0014(self):298 """æ£æ¥è¾å
¥æ¡æå
容å¯æ¶èµ·æ¨å·ç"""299 # 1.åé£ä¿¡ç»å½ç³»ç»ï¼éè¯tab300 # 2.æ¨å·ç为å±å¼ç¶æ301 # 3.æ¨å·çåå¨æ°å¼302 cpg = CallPage()303 cpg.click_dial()304 cpg.dial_number("153")305 # Step:1ç¹å»æ¨å·çæé®306 cpg.click_dial()307 # CheckPoint:1.æ¨å·çå¯æ¶èµ·å±å¼ï¼æ¶èµ·å±å¼å
容ä¿çä¸æ¸
é¤ï¼æ£å¸¸æ¾ç¤º308 flag = cpg.check_delete_hide()309 self.assertTrue(flag)310 cpg.page_should_contain_text("153")311 @tags('ALL', 'CMCC', 'Call', "ios")312 def test_call_shenlisi_0015(self):313 """æ£æ¥è¾å
¥æ¡æå
容æ¶èµ·æ¨å·çå¯åæ¢å°å
¶å®æ¨¡å"""314 # 1.åé£ä¿¡ç»å½ç³»ç»ï¼éè¯tab315 # 2.æ¨å·ç为æ¶èµ·å±å¼ç¶æ316 # 3.æ¨å·çåå¨æ°å¼317 cpg = CallPage()318 cpg.click_dial()319 cpg.dial_number("153")320 # Step:1.åæ¢è³å
¶å®æ¨¡åååè¿åå°æ¨å·ç321 cpg.click_message()322 flag = cpg.check_call_phone()323 self.assertFalse(flag)324 cpg.click_call()325 # CheckPoint:1.æ¨å·çå¯æ¶èµ·å±å¼ï¼æ¶èµ·å±å¼å
容ä¿çä¸æ¸
é¤ï¼æ£å¸¸æ¾ç¤º326 flag = cpg.check_call_phone()327 self.assertTrue(flag)328 cpg.page_should_contain_text("153")329 @tags('ALL', 'CMCC', 'Call', "ios")330 def test_call_shenlisi_0020(self):331 """æ£æ¥è¾å
¥æ¡è¾å
¥è¶
é¿æ°å"""332 # 1.åé£ä¿¡ç»å½ç³»ç»ï¼éè¯tab333 # 2.æ¨å·çå±å¼ç¶æ334 # 3.æ¨å·çåå¨è¶
é¿æ°å¼ï¼æ°å¼è¶
ä¸è¡ï¼335 cpg = CallPage()336 cpg.click_dial()337 cpg.dial_number("153153153153153")338 # Step:1.æ¥çè¾å
¥æ¡æ ·å¼339 # CheckPoint:1.æ¾ç¤ºæ£å¸¸340 time.sleep(1)341 flag = cpg.check_call_phone()342 self.assertTrue(flag)343 time.sleep(1)344 flag = cpg.check_call_text(val="153153153153153")345 self.assertTrue(flag)346 # Step:2.ç¹å»æ¨å·çï¼æ¥çè¾å
¥æ¡æ ·å¼347 cpg.click_dial()348 # 2.è¾å
¥è¶
é¿æ°åï¼æ¶èµ·æ¾ç¤ºæ£å¸¸349 time.sleep(1)350 # flag = cpg.check_call_phone()351 # self.assertFalse(flag)352 # time.sleep(1)353 flag = cpg.check_call_text(val="153153153153153")354 self.assertTrue(flag)355 @tags('ALL', 'CMCC', 'Call', "ios")356 def test_call_shenlisi_0022(self):357 """æ£æ¥æ¨å·ç精确æç´¢åè½---å
éæ¬å°è系人"""358 # 1.ç¨æ·å·²ç»å½åé£ä¿¡ï¼éè¯è®°å½å表页é¢359 # 2.æ¨å·çè¾å
¥çå
éå·æ¬å°å·²ä¿å360 cpg = CallPage()361 # Step:1.ç¹å»âæ¨å·çâ362 cpg.click_dial()363 time.sleep(1)364 # CheckPoint:1.å¼¹åºæ¨å·ççé¢365 flag = cpg.check_call_phone()366 self.assertTrue(flag)367 # Step:2.è¾å
¥11ä½æ°å
éå·368 cpg.dial_number("13800138001")369 # CheckPoint:2.å¯å¹é
åºç¬¦åæ¡ä»¶çè系人ï¼å¹é
çç»æé«äº®370 cpg.page_should_contain_text("ç»ä¸ªçº¢å
2")371 # ret = cpg.get_call_entry_color_of_element()372 # self.assertEqual(ret, (133, 128, 95, 255))373 # Step:3.ç¹å»å¹é
åºçè系人å³ä¾§çæ¶é´èç¹374 cpg.click_call_time_search_status()375 time.sleep(1)376 # CheckPoint:3.å¯è¿å
¥å°è¯¥è系人çéè¯profile377 cpg.page_should_contain_text("å享åç")378 # Step:4.ç¹å»æ¨å·æé®379 cpg.click_back()380 cpg.click_call_phone()381 # CheckPoint:4.å¯å¼¹åºæ¨å·æ¹å¼382 time.sleep(1)383 cpg.page_should_contain_text("é£ä¿¡çµè¯")384 cpg.page_should_contain_text("è¯é³éè¯")385 cpg.page_should_contain_text("æ®éçµè¯")386 @tags('ALL', 'CMCC', 'Call', "ios")387 def test_call_shenlisi_0023(self):388 """æ£æ¥æ¨å·ç精确æç´¢åè½---å
ééçè系人"""389 # 1.ç¨æ·å·²ç»å½åé£ä¿¡ï¼éè¯è®°å½å表页é¢390 # 2.æ¨å·çè¾å
¥çå
éå·æ¬å°æªä¿å391 # Step:1.ç¹å»âæ¨å·çâ392 cpg = CallPage()393 cpg.click_dial()394 time.sleep(1)395 # CheckPoint:1.å¼¹åºæ¨å·ççé¢396 flag = cpg.check_call_phone()397 self.assertTrue(flag)398 # Step:2.è¾å
¥11ä½æ°å
éå·399 cpg.dial_number("15343039999")400 time.sleep(2)401 # CheckPoint:2.éè¯è®°å½å表弹åºâæ°å»ºè系人ââåéæ¶æ¯âæé®402 cpg.page_should_contain_text("æ°å»ºè系人")403 cpg.page_should_contain_text("åéæ¶æ¯")404 # Step:3.ç¹å»æ¨å·æé®405 cpg.click_call_phone()406 # CheckPoint:3.å¯å¼¹åºæ¨å·æ¹å¼407 time.sleep(2)408 cpg.page_should_contain_text("é£ä¿¡çµè¯")409 cpg.page_should_contain_text("è¯é³éè¯")410 cpg.page_should_contain_text("æ®éçµè¯")411 @tags('ALL', 'CMCC', 'Call', "ios")412 def test_call_shenlisi_0024(self):413 """æ£æ¥æ¨å·ç精确æç´¢åè½---é¦æ¸¯æ¬å°è系人"""414 # 1.ç¨æ·å·²ç»å½åé£ä¿¡ï¼éè¯è®°å½å表页é¢415 # 2.æ¨å·çè¾å
¥çé¦æ¸¯å·æ¬å°å·²ä¿å416 cpg = CallPage()417 # Step:1.ç¹å»âæ¨å·çâ418 cpg.click_dial()419 time.sleep(1)420 # CheckPoint:1.å¼¹åºæ¨å·ççé¢421 flag = cpg.check_call_phone()422 self.assertTrue(flag)423 # Step:2.è¾å
¥8ä½æ°é¦æ¸¯å·424 cpg.dial_number("67656003")425 # CheckPoint:2.å¯å¹é
åºç¬¦åæ¡ä»¶çè系人ï¼å¹é
çç»æé«äº®426 cpg.page_should_contain_text("é¦æ¸¯å¤§ä½¬")427 # Step:3.ç¹å»å¹é
åºçè系人å³ä¾§çæ¶é´èç¹428 cpg.click_call_time_search_status()429 time.sleep(1)430 # CheckPoint:3.å¯è¿å
¥å°è¯¥è系人çéè¯profile431 cpg.page_should_contain_text("å享åç")432 cpg.click_back()433 @tags('ALL', 'CMCC', 'Call', "ios")434 def test_call_shenlisi_0025(self):435 """æ£æ¥æ¨å·ç精确æç´¢åè½---é¦æ¸¯éçè系人"""436 # 1.ç¨æ·å·²ç»å½åé£ä¿¡ï¼éè¯è®°å½å表页é¢437 # 2.æ¨å·çè¾å
¥çé¦æ¸¯å·æ¬å°æªä¿å438 # Step:1.ç¹å»âæ¨å·çâ439 cpg = CallPage()440 cpg.click_dial()441 time.sleep(1)442 # CheckPoint:1.å¼¹åºæ¨å·ççé¢443 flag = cpg.check_call_phone()444 self.assertTrue(flag)445 # Step:2.è¾å
¥8ä½æ°é¦æ¸¯å·446 cpg.dial_number("23454097")447 time.sleep(2)448 # CheckPoint:2.éè¯è®°å½å表弹åºâæ°å»ºè系人ââåéæ¶æ¯âæé®449 cpg.page_should_contain_text("æ°å»ºè系人")450 cpg.page_should_contain_text("åéæ¶æ¯")451 @tags('ALL', 'CMCC', 'Call', "ios")452 def test_call_shenlisi_0026(self):453 """æ£æ¥ä»æ¨å·çè¿å
¥å°éç人æ¶æ¯ä¼è¯çªå£"""454 # 1.ç¨æ·å·²ç»å½åé£ä¿¡ï¼éè¯è®°å½å表页é¢455 # 2.æ¨å·çå·²è¾å
¥éçè系人Açææºå·456 # 3.éè¯è®°å½å表已弹åºâæ°å»ºè系人ââåéæ¶æ¯âæé®457 cpg = CallPage()458 cpg.click_dial()459 cpg.dial_number("15343038860")460 # Step:1.ç¹å»âåéæ¶æ¯âæé®461 cpg.click_send_message()462 chatpage = BaseChatPage()463 flag = chatpage.is_exist_dialog()464 if flag:465 chatpage.click_i_have_read()466 # CheckPoint:1.è¿å
¥ä¸éçè系人Açæ¶æ¯åè¯çªå£467 cpg.page_should_contain_text("说ç¹ä»ä¹...")468 @tags('ALL', 'CMCC', 'Call', "ios")469 def test_call_shenlisi_0027(self):470 """æ£æ¥ä»æ¨å·çæ°å»ºè系人"""471 # 1.ç¨æ·å·²ç»å½åé£ä¿¡ï¼éè¯è®°å½å表页é¢472 # 2.æ¨å·çå·²è¾å
¥éçè系人Açææºå·473 # 3.éè¯è®°å½å表已弹åºâæ°å»ºè系人ââåéæ¶æ¯âæé®474 cpg = CallPage()475 cpg.click_dial()476 cpg.dial_number("15343038860")477 # Step:1.ç¹å»âæ°å»ºè系人âæé®478 cpg.click_new_contact()479 time.sleep(2)480 cpg.hide_keyboard()481 # CheckPoint:1.跳转å°æ°å»ºè系人çé¢ï¼çµè¯æ èªå¨å¡«å
è系人Açææºå·ï¼å
¶å®è¾å
¥æ¡ä¸ºç©º482 cpg.page_should_contain_text("è¾å
¥å§å")483 cpg.page_should_contain_text("15343038860")484 cpg.page_should_contain_text("è¾å
¥å
¬å¸")485 cpg.page_should_contain_text("è¾å
¥èä½")486 cpg.page_should_contain_text("è¾å
¥é®ç®±")487 @tags('ALL', 'CMCC', 'Call', "ios")488 def test_call_shenlisi_0050(self):489 """æ£æ¥æ¨å·çåæ¶æ¨å·æ¹å¼"""490 # 1.ç¨æ·å·²ç»å½åé£ä¿¡ï¼éè¯-æ¨å·ç491 # 2.已弹åºæ¨å·æ¹å¼492 cpg = CallPage()493 cpg.click_dial()494 cpg.dial_number("15340038800")495 cpg.click_call_phone()496 time.sleep(1)497 # Step:1.ç¹å»âåæ¶âæé®498 cpg.click_back()499 # CheckPoint:1.æ¨å·æ¹å¼æ¶èµ·ï¼åçå¨è¾å
¥å·ç çæ¨å·ç页500 self.assertTrue(cpg.check_call_phone())501 @tags('ALL', 'CMCC', 'Call', "ios")502 def test_call_shenlisi_0051(self):503 """æ£æ¥å¨æ¨å·çè¾å
¥å¼å¸¸å符æ¨å·"""504 # 1.ç¨æ·å·²ç»å½åé£ä¿¡ï¼éè¯-æ¨å·ç505 # 2.å¨æ¨å·çå·²è¾å
¥*ï¼#ãç©ºæ ¼çå符506 # 3.æ å¯å·507 # Step:1.ç¹å»æ¨å·æé®508 cpg = CallPage()509 cpg.click_dial()510 cpg.dial_number("*# ")511 cpg.click_call_phone()512 # CheckPoint:1.æ示âè¾å
¥å·ç æ æï¼è¯·éæ°è¾å
¥â513 flag = cpg.is_toast_exist("è¾å
¥çå·ç æ æï¼è¯·éæ°è¾å
¥")514 self.assertTrue(flag)515 cpg.click_dial()516 @tags('ALL', 'CMCC', 'Call', "ios")517 def test_call_shenlisi_0064(self):518 """æ£æ¥æ¨å·çæç´¢åè½---å
éæ¬å°è系人"""519 # 1.ç¨æ·å·²ç»å½åé£ä¿¡ï¼éè¯è®°å½å表页é¢520 # 2.æ¨å·çè¾å
¥çå
éå·æ¬å°å·²ä¿å521 # Step:1.ç¹å»âæ¨å·çâ522 cpg = CallPage()523 cpg.click_dial()524 time.sleep(2)525 # CheckPoint:1.å¼¹åºæ¨å·ççé¢526 flag = cpg.check_call_phone()527 self.assertTrue(flag)528 # Step:2.è¾å
¥11ä½æ°å
éå·529 cpg.dial_number("13800138001")530 time.sleep(1)531 # CheckPoint:2.精确å¹é
åºä¸æ¨å·çå·ç ä¸è´çææºå·è系人532 cpg.page_should_contain_text("ç»ä¸ªçº¢å
2")533 @tags('ALL', 'CMCC', 'Call', "ios")534 def test_call_shenlisi_0065(self):535 """æ£æ¥æ¨å·çæç´¢åè½---å
ééçè系人"""536 # 1.ç¨æ·å·²ç»å½åé£ä¿¡ï¼éè¯è®°å½å表页é¢537 # 2.æ¨å·çè¾å
¥çå
éå·æ¬å°æªä¿å538 # Step:1.ç¹å»âæ¨å·çâ539 cpg = CallPage()540 cpg.click_dial()541 time.sleep(1)542 # CheckPoint:1.å¼¹åºæ¨å·ççé¢543 flag = cpg.check_call_phone()544 self.assertTrue(flag)545 # Step:2.è¾å
¥11ä½æ°å
éå·546 cpg.dial_number("15343038867")547 # CheckPoint:2.éè¯è®°å½å表弹åºâæ°å»ºè系人ââåéæ¶æ¯âæé®548 cpg.page_should_contain_text("æ°å»ºè系人")549 cpg.page_should_contain_text("åéæ¶æ¯")550 @tags('ALL', 'CMCC', 'Call', "ios")551 def test_call_shenlisi_0066(self):552 """æ£æ¥æ¨å·çæç´¢åè½---é¦æ¸¯æ¬å°è系人"""553 # 1.ç¨æ·å·²ç»å½åé£ä¿¡ï¼éè¯è®°å½å表页é¢554 # 2.æ¨å·çè¾å
¥çé¦æ¸¯å·æ¬å°å·²ä¿å555 # Step:1.ç¹å»âæ¨å·çâ556 cpg = CallPage()557 cpg.click_dial()558 time.sleep(1)559 # CheckPoint:1.å¼¹åºæ¨å·ççé¢560 flag = cpg.check_call_phone()561 self.assertTrue(flag)562 # Step:2.è¾å
¥8ä½æ°é¦æ¸¯å·563 cpg.dial_number("67656003")564 # CheckPoint:2.精确å¹é
åºä¸æ¨å·çå·ç ä¸è´çææºå·è系人565 cpg.page_should_contain_text("é¦æ¸¯å¤§ä½¬")566 cpg.click_back()567 @tags('ALL', 'CMCC', 'Call', "ios")568 def test_call_shenlisi_0067(self):569 """æ£æ¥æ¨å·çæç´¢åè½---é¦æ¸¯éçè系人"""570 # 1.ç¨æ·å·²ç»å½åé£ä¿¡ï¼éè¯è®°å½å表页é¢571 # 2.æ¨å·çè¾å
¥çé¦æ¸¯å·æ¬å°æªä¿å572 # Step:1.ç¹å»âæ¨å·çâ573 cpg = CallPage()574 cpg.click_dial()575 time.sleep(1)576 # CheckPoint:1.å¼¹åºæ¨å·ççé¢577 flag = cpg.check_call_phone()578 self.assertTrue(flag)579 # Step:2.è¾å
¥8ä½æ°é¦æ¸¯å·580 cpg.dial_number("67656000")581 # CheckPoint:2.éè¯è®°å½å表弹åºâæ°å»ºè系人ââåéæ¶æ¯âæé®582 cpg.page_should_contain_text("æ°å»ºè系人")583 cpg.page_should_contain_text("åéæ¶æ¯")584 @tags('ALL', 'CMCC', 'Call', "ios")585 def test_call_shenlisi_0068(self):586 """æ£æ¥ä»æ¨å·çè¿å
¥å°éç人æ¶æ¯ä¼è¯çªå£"""587 # 1.1.ç¨æ·å·²ç»å½åé£ä¿¡ï¼éè¯è®°å½å表页é¢588 # 2.æ¨å·çå·²è¾å
¥éçè系人Açææºå·589 # 3.éè¯è®°å½å表已弹åºâæ°å»ºè系人ââåéæ¶æ¯âæé®590 cpg = CallPage()591 cpg.click_dial()592 cpg.dial_number("15343038867")593 # Step:1.ç¹å»âåéæ¶æ¯âæé®594 cpg.click_send_message()595 chatpage = BaseChatPage()596 if chatpage.is_exist_dialog():597 chatpage.click_i_have_read()598 # CheckPoint:1.è¿å
¥ä¸éçè系人Açæ¶æ¯åè¯çªå£599 cpg.page_should_contain_text("说ç¹ä»ä¹...")600 @tags('ALL', 'CMCC', 'Call', "ios")601 def test_call_shenlisi_0069(self):602 """æ£æ¥ä»æ¨å·çæ°å»ºè系人"""603 # 1.ç¨æ·å·²ç»å½åé£ä¿¡ï¼éè¯è®°å½å表页é¢604 # 2.æ¨å·çå·²è¾å
¥éçè系人Açææºå·605 # 3.éè¯è®°å½å表已弹åºâæ°å»ºè系人ââåéæ¶æ¯âæé®606 cpg = CallPage()607 cpg.click_dial()608 cpg.dial_number("15343038867")609 # Step:1.ç¹å»âæ°å»ºè系人âæé®610 cpg.click_new_contact()611 time.sleep(2)612 cpg.hide_keyboard()613 # CheckPoint:1.跳转å°æ°å»ºè系人çé¢ï¼çµè¯æ èªå¨å¡«å
è系人Açææºå·ï¼å
¶å®è¾å
¥æ¡ä¸ºç©º614 cpg.page_should_contain_text("è¾å
¥å§å")615 cpg.page_should_contain_text("15343038867")616 cpg.page_should_contain_text("è¾å
¥å
¬å¸")617 cpg.page_should_contain_text("è¾å
¥èä½")618 cpg.page_should_contain_text("è¾å
¥é®ç®±")619 @tags('ALL', 'CMCC', 'Call')620 def test_call_shenlisi_0070(self):621 """æ£æ¥åèå¯åªä½é¢æ¿-é³é¢éè¯æ¨æ"""622 # 1.ç»å½åé£ä¿¡ï¼æ¶æ¯tab-åèä¼è¯çªå£-å¯åªä½é¢æ¿623 # 2.已弹åºè¯é³éè¯ä¸è§é¢éè¯æé®624 cpg = CallPage()625 ContactsPage().click_message_icon()626 Preconditions.enter_single_chat_page("ç»ä¸ªçº¢å
2")627 BaseChatPage().click_more()628 ChatMorePage().click_voice_and_video_call()629 # Step:1.ç¹å»è¯é³éè¯630 cpg.click_voice_call()631 # CheckPoint:1.ç´æ¥å¼åºä¸å¯¹ä¸è¯é³éè¯632 time.sleep(2)633 cpg.page_should_contain_text("æ£å¨å¼å«")634 cpg.wait_until(635 timeout=30,636 auto_accept_permission_alert=True,637 condition=lambda d: cpg.is_text_present("说ç¹ä»ä¹..."))638 # Step:2.ç¹å»è§é¢çµè¯639 BaseChatPage().click_more()640 ChatMorePage().click_voice_and_video_call()641 cpg.click_video_call()642 # Step:2.ç´æ¥å¼åºä¸å¯¹ä¸è§é¢éè¯643 time.sleep(2)644 cpg.page_should_contain_text("è§é¢éè¯å¼å«ä¸")645 @tags('ALL', 'CMCC', 'Call', "ios")646 def test_call_shenlisi_0086(self):647 """æ£æ¥è¯é³éè¯è®°å½-æ¬å°è系人"""648 # 1.Aå·²ç»å½åé£ä¿¡649 # 2.ç¨æ·Aå·²æååèµ·ä¸ç¨æ·Bçè¯é³éè¯650 # Step:1.ç¨æ·Aæ¥çéè¯è®°å½651 cpg = CallPage()652 cpg.click_dial()653 time.sleep(1)654 cpg.select_type_start_call(calltype=1, text="13800138001")655 time.sleep(2)656 cpg.hang_up_the_call()657 cpg.wait_for_dial_pad()658 # CheckPoint:1.éè¯è®°å½å±ç¤ºä¸ç¨æ·Bçè¯é³éè¯è®°å½ï¼æ¾ç¤ºç¨æ·Bçå称ãéè¯ç±»åãè¯é³éè¯ããå½å±å°ãå³ä¾§æ¾ç¤ºéè¯æ¶é´ä»¥åæ¶é´èç¹å¾æ 659 cpg.page_should_contain_text("ç»ä¸ªçº¢å
2")660 cpg.page_should_contain_text("è¯é³éè¯")661 # cpg.page_should_contain_text("广ä¸æ·±å³")662 # cpg.page_should_contain_text("移å¨")663 self.assertTrue(cpg.is_exist_call_time())664 # Step:2.ç¹å»æ¶é´èç¹665 cpg.click_call_time()666 time.sleep(1)667 # CheckPoint:2.è¿å
¥å°ç¨æ·Bçéè¯profile668 self.assertTrue(cpg.is_exist_profile_name())669 cpg.click_back()670 @tags('ALL', 'CMCC', 'Call', "ios")671 def test_call_shenlisi_0087(self):672 """æ£æ¥è¯é³éè¯è®°å½-ä¼ä¸è系人"""673 # 1.Aå·²ç»å½åé£ä¿¡674 # 2.ç¨æ·Aå·²æååèµ·ä¸ç¨æ·Nçè¯é³éè¯675 # Step:1.ç¨æ·Aæ¥çéè¯è®°å½676 cpg = CallPage()677 cpg.click_dial()678 time.sleep(1)679 cpg.select_type_start_call(calltype=1, text="13800137003")680 time.sleep(1)681 cpg.hang_up_the_call()682 cpg.wait_for_dial_pad()683 time.sleep(1)684 if not cpg.is_on_the_call_page():685 cpg.click_call()686 time.sleep(1)687 # CheckPoint:1.éè¯è®°å½å±ç¤ºä¸ç¨æ·Bçè¯é³éè¯è®°å½ï¼æ¾ç¤ºç¨æ·Bçå称ãéè¯ç±»åãè¯é³éè¯ããå½å±å°ãå³ä¾§æ¾ç¤ºéè¯æ¶é´ä»¥åæ¶é´èç¹å¾æ 688 cpg.page_should_contain_text("å 马ä¸")689 cpg.page_should_contain_text("è¯é³éè¯")690 self.assertTrue(cpg.is_exist_call_time())691 # Step:2.ç¹å»æ¶é´èç¹692 # Step:3.ç¨æ·N为ä¼ä¸è系人ï¼éæ¬å°è系人ï¼693 cpg.click_call_time()694 time.sleep(1)695 # CheckPoint:2.è¿å
¥å°ç¨æ·Nçéè¯profile696 self.assertTrue(cpg.is_exist_profile_name())697 cpg.click_back()698 @tags('ALL', 'CMCC', 'Call', "ios")699 def test_call_shenlisi_0088(self):700 """æ£æ¥è¯é³éè¯è®°å½-éçè系人"""701 # 1.Aå·²ç»å½åé£ä¿¡702 # 2.ç¨æ·Aå·²æååèµ·ä¸ç¨æ·Bçè¯é³éè¯703 # Step:1.ç¨æ·Aæ¥çéè¯è®°å½704 cpg = CallPage()705 cpg.create_call_entry("13537795364")706 # CheckPoint:1.éè¯è®°å½å±ç¤ºä¸ç¨æ·Bçè¯é³éè¯è®°å½ï¼æ¾ç¤ºç¨æ·Bçå称ãéè¯ç±»åãè¯é³éè¯ããå½å±å°ãå³ä¾§æ¾ç¤ºéè¯æ¶é´ä»¥åæ¶é´èç¹å¾æ 707 cpg.page_should_contain_text("13537795364")708 cpg.page_should_contain_text("è¯é³éè¯")709 # cpg.page_should_contain_text("广ä¸æ·±å³")710 # cpg.page_should_contain_text("移å¨")711 self.assertTrue(cpg.is_exist_call_time())712 # Step:2.ç¹å»æ¶é´èç¹713 cpg.click_call_time()714 time.sleep(1)715 # CheckPoint:2.è¿å
¥å°ç¨æ·Bçéè¯profile716 self.assertTrue(cpg.is_exist_profile_name())717 cpg.click_back()718 @staticmethod719 def setUp_test_call_shenlisi_0155():720 # å
³éWiFiï¼æå¼4Gç½ç»721 warnings.simplefilter('ignore', ResourceWarning)722 Preconditions.make_already_in_call()723 CallPage().delete_all_call_entry()724 CallPage().set_network_status(4)725 @tags('ALL', 'CMCC', 'Call')726 def test_call_shenlisi_0155(self):727 """æ£æ¥è¯é³éè¯-æªè®¢è´æ¯æ10Gç¨æ·--4gå¼¹åºæ¯æ10Gå
æµç¹ææ示çªå£"""728 # 1.客æ·ç«¯å·²ç»å½729 # 2.æªè®¢è´æ¯æ10Gç¨æ·730 # 3.ç½ç»ä½¿ç¨4G731 cpg = CallPage()732 # Step:1.åèµ·è¯é³éè¯733 cpg.select_type_start_call(calltype=1, text="13800138001")734 time.sleep(1)735 # CheckPoint:1.å¼¹åºæ¯æ10Gå
æµç¹ææ示çªå£ã736 cpg.page_should_contain_text("æ¯æ10Gå
æµç¹æ")737 # Step:2.æ¥ççé¢738 # CheckPoint:2.å ç²ææ¡ä¸ºï¼è¯é³éè¯æ¯åéæ¶è约0.3MBæµéï¼è®¢è´[æ¯æ10G]ç
èè¯é³/è§é¢éè¯ãå¼¹çªåºé¨æ¾ç¤ºâ继ç»æ¨æâãâ订è´å
æµç¹æâãâ以åä¸åæ示â739 cpg.page_should_contain_text("è¯é³éè¯æ¯åéæ¶è约0.3MBæµéï¼è®¢è´[æ¯æ10G]ç
èè¯é³/è§é¢éè¯")740 cpg.page_should_contain_text("继ç»æ¨æ")741 cpg.page_should_contain_text("订è´å
æµç¹æ")742 cpg.page_should_contain_text("以åä¸åæ示")743 # Step:3.ç¹å»â继ç»æ¨æâ744 cpg.click_text("继ç»æ¨æ")745 # CheckPoint:3.ç¹å»åï¼ç´æ¥å¼å«746 cpg.page_should_contain_text("æ£å¨å¼å«")747 # Step:4.å次ç¹å»è¯é³éè¯748 cpg.wait_for_dial_pad()749 cpg.select_type_start_call(calltype=1, text="13800138001")750 # CheckPoint:4.继ç»å¼¹åºæ示çªå£751 cpg.page_should_contain_text("æ¯æ10Gå
æµç¹æ")752 @staticmethod753 def tearDown_test_call_shenlisi_0155():754 # æå¼ç½ç»755 cpg = CallPage()756 cpg.set_network_status(6)757 preconditions.disconnect_mobile(REQUIRED_MOBILES['IOS-移å¨'])758 @staticmethod759 def setUp_test_call_shenlisi_0156():760 # å
³éWiFiï¼æå¼4Gç½ç»761 warnings.simplefilter('ignore', ResourceWarning)762 Preconditions.make_already_in_call()763 CallPage().delete_all_call_entry()764 CallPage().set_network_status(4)765 @tags('ALL', 'CMCC', 'Call')766 def test_call_shenlisi_0156(self):767 """æ£æ¥4gå
æµç¹ææ示æ订è´å
æµç¹ææ示çªå£è®¢è´å
æµçé¢è·³è½¬---è¯é³éè¯"""768 # 1.客æ·ç«¯å·²ç»å½769 # 2.已弹åº4gå¼¹åºæ¯æ10Gå
æµç¹ææ示çªå£770 cpg = CallPage()771 cpg.select_type_start_call(calltype=1, text="13800138001")772 # 1.ç¹å»è®¢è´å
æµç¹æ773 cpg.click_text("订è´å
æµç¹æ")774 # 1.跳转å°ãåé£ä¿¡éä½ æ¯æ10GæµéãH5页é¢775 cpg.wait_until(timeout=30, auto_accept_permission_alert=True,776 condition=lambda d: cpg.is_text_present("åé£ä¿¡éä½ æ¯æ10Gæµé"))777 cpg.page_should_contain_text("åé£ä¿¡éä½ æ¯æ10Gæµé")778 # 2.ç¹å»è¿åæé®779 cpg.click_back()780 # 2.ç¹å»è¿åæé®ï¼è¿åä¸ä¸çº§781 cpg.page_should_contain_text("æ¯æ10Gå
æµç¹æ")782 @staticmethod783 def tearDown_test_call_shenlisi_0156():784 # æå¼ç½ç»785 cpg = CallPage()786 cpg.set_network_status(6)787 preconditions.disconnect_mobile(REQUIRED_MOBILES['IOS-移å¨'])788 @staticmethod789 def setUp_test_call_shenlisi_0158():790 # ç¡®ä¿æå¼WiFiç½ç»791 Preconditions.make_already_in_call()792 # CalllogBannerPage().skip_multiparty_call()793 # CallPage().delete_all_call_entry()794 # CallPage().set_network_status(6)795 @tags('ALL', 'CMCC', 'Call', "ios")796 def test_call_shenlisi_0158(self):797 """æ£æ¥è¯é³å¼å«-æªè®¢è´æ¯æ10Gç¨æ·--ç¨æ·å¨WiFiç¯å¢ä¸ä¸æ示æ¤ç±»å¼¹çª"""798 # 1.客æ·ç«¯å·²ç»å½799 # 2.æªè®¢è´æ¯æ10Gç¨æ·800 # 3.ç½ç»ä½¿ç¨WIFI801 # 1.åèµ·è¯é³éè¯802 cpg = CallPage()803 cpg.click_dial()804 cpg.dial_number("13800138001")805 cpg.click_call_phone()806 time.sleep(2)807 CallTypeSelectPage().click_call_by_voice()808 time.sleep(2)809 # 1.ç´æ¥åèµ·è¯é³éè¯ï¼æ²¡æå¼¹çª810 cpg.page_should_not_contain_text("æ¯æ10Gå
æµç¹æ")811 time.sleep(1)812 cpg.wait_for_dial_pad()813 cpg.click_dial()814 @tags('ALL', 'CMCC', 'Call', "ios")815 def test_call_shenlisi_0213(self):816 """æ£æ¥è§é¢éè¯è®°å½ââæ¬å°è系人"""817 # 1.Aå·²ç»å½åé£ä¿¡818 # 2.ç¨æ·Aå·²æååèµ·ä¸ç¨æ·Bçè§é¢éè¯819 cpg = CallPage()820 cpg.click_multi_party_video()821 time.sleep(1)822 CalllogBannerPage().input_telephone("13800138001")823 time.sleep(1)824 cpg.click_text("ç»ä¸ªçº¢å
2")825 time.sleep(1)826 cpg.click_text("å¼å«")827 time.sleep(1)828 # Step:1.ç¨æ·Aæ¥çéè¯è®°å½829 cpg.wait_for_page_load()830 # CheckPoint:1.éè¯è®°å½å±ç¤ºä¸ç¨æ·Bçè§é¢éè¯è®°å½ï¼æ¾ç¤ºç¨æ·Bçå称ãéè¯ç±»åãè§é¢éè¯ããææºå·/å½å±å°831 cpg.page_should_contain_text("ç»ä¸ªçº¢å
2")832 cpg.page_should_contain_text("è§é¢éè¯")833 @tags('ALL', 'CMCC', 'Call')834 def test_call_shenlisi_0215(self):835 """æ£æ¥è§é¢éè¯è®°å½-éçè系人"""836 # 1.Aå·²ç»å½åé£ä¿¡837 # 2.ç¨æ·Aå·²æååèµ·ä¸ç¨æ·Bçè§é¢éè¯838 cpg = CallPage()839 cpg.click_multi_party_video()840 CalllogBannerPage().input_telephone("13537795364")841 cpg.swipe_by_percent_on_screen(50, 40, 50, 10)842 # cpg.hide_keyboard()843 time.sleep(2)844 cpg.click_text("æªç¥å·ç ")845 time.sleep(1)846 cpg.click_text("å¼å«")847 time.sleep(1)848 # Step:1.ç¨æ·Aæ¥çéè¯è®°å½849 cpg.wait_for_page_load()850 # CheckPoint:1.éè¯è®°å½å±ç¤ºä¸ç¨æ·Bçè§é¢éè¯è®°å½ï¼æ¾ç¤ºç¨æ·Bçå称ãéè¯ç±»åãè§é¢éè¯ããææºå·/å½å±å°851 cpg.page_should_contain_text("13537795364")852 cpg.page_should_contain_text("è§é¢éè¯")853 cpg.page_should_contain_text("广ä¸æ·±å³")854 # cpg.page_should_contain_text("移å¨")855 # self.assertTrue(cpg.is_exist_call_time())856 @tags('ALL', 'CMCC', 'Call', "ios")857 def test_call_shenlisi_0218(self):858 """æ£æ¥å¼å«æ¬å°è系人ï¼å¼å«çé¢å±ç¤ºå称+ææºå·"""859 # 1.å·²ç»å½åé£ä¿¡860 # 2.ç¨æ·M为æ¬å°è系人861 # 3.å·²å¼å¯éº¦å
é£ï¼ç¸æºæé862 cpg = CallPage()863 cpg.click_dial()864 cpg.dial_number("13800138001")865 cpg.click_call_time_search_status()866 time.sleep(1)867 # Step:1.è§é¢å¼å«Mï¼è¿å
¥å°å¼å«çé¢868 CallContactDetailPage().click_video_call()869 time.sleep(1)870 # CheckPoint:1.头åä¸å±ç¤ºç¨æ·Mçå称+ææºå·871 cpg.page_should_contain_text("13800138001")872 cpg.page_should_contain_text("ç»ä¸ªçº¢å
2")873 CallContactDetailPage().wait_for_star()874 @tags('ALL', 'CMCC', 'Call')875 def test_call_shenlisi_0219(self):876 """æ£æ¥å¼å«éçè系人ï¼å¼å«çé¢å±ç¤ºææºå·+å½å±å°"""877 # 1.å·²ç»å½åé£ä¿¡878 # 2.ç¨æ·M为éçè系人å¯è·åå°å½å±å°879 # 3.ç¨æ·N为éçè系人æ æ³è·åå½å±å°ï¼é¦æ¸¯å·ï¼198å¼å¤´11ä½ææºå·ï¼880 # 3.å·²å¼å¯éº¦å
é£ï¼ç¸æºæé881 cpg = CallPage()882 cpg.create_call_entry("15343038867")883 cpg.click_dial()884 cpg.click_call_time_search_status()885 time.sleep(1)886 # Step:1.è§é¢å¼å«Mï¼è¿å
¥å°å¼å«çé¢887 CallContactDetailPage().click_video_call()888 time.sleep(1)889 # CheckPoint:1.头åä¸å±ç¤ºç¨æ·Mçææºå·+å½å±å°890 cpg.page_should_contain_text("15343038867")891 cpg.page_should_contain_text("æ¹å-æ ªæ´²")892 CallContactDetailPage().wait_for_star()893 cpg.click_back()894 # Step:2.è§é¢å¼å«Nï¼è¿å
¥å°å¼å«çé¢895 cpg = CallPage()896 cpg.create_call_entry("19823452586")897 cpg.click_dial()898 cpg.click_call_time_search_status()899 time.sleep(1)900 # Step:2.è§é¢å¼å«Nï¼è¿å
¥å°å¼å«çé¢901 CallContactDetailPage().click_video_call()902 time.sleep(1)903 # CheckPoint:2.头åä¸å±ç¤ºç¨æ·Mçææºå·+æªç¥å½å±å°904 cpg.page_should_contain_text("19823452586")905 cpg.page_should_contain_text("æªç¥å½å±å°")906 CallContactDetailPage().wait_for_star()907 @staticmethod908 def setUp_test_call_shenlisi_0234():909 # ç¡®ä¿æå¼WiFiç½ç»910 Preconditions.make_already_in_call()911 # CalllogBannerPage().skip_multiparty_call()912 # CallPage().delete_all_call_entry()913 # CallPage().set_network_status(6)914 @tags('ALL', 'CMCC', 'Call', "ios")915 def test_call_shenlisi_0234(self):916 """æ£æ¥è§é¢å¼å«-æªè®¢è´æ¯æ10Gç¨æ·--ç¨æ·å¨WiFiç¯å¢ä¸ä¸æ示æ¤ç±»å¼¹çª"""917 # 1.客æ·ç«¯å·²ç»å½918 # 2.æªè®¢è´æ¯æ10Gç¨æ·919 # 3.ç½ç»ä½¿ç¨WIFI920 # 1.åèµ·è§é¢éè¯921 cpg = CallPage()922 cpg.click_dial()923 cpg.dial_number("13800138001")924 cpg.click_call_time_search_status()925 CallContactDetailPage().click_video_call()926 time.sleep(2)927 # 1.ç´æ¥åèµ·è¯é³éè¯ï¼æ²¡æå¼¹çª928 cpg.page_should_not_contain_text("æ¯æ10Gå
æµç¹æ")929 time.sleep(1)930 CallContactDetailPage().wait_for_star()931 cpg.click_back()932 @tags('ALL', 'CMCC', 'Call')933 def test_call_shenlisi_0314(self):934 """æ£æ¥éè¯çé¢åèµ·å¤æ¹è§é¢"""935 # 1.客æ·ç«¯å·²ç»éå¨ï¼éè¯çé¢936 # 2.ç½ç»æ£å¸¸937 # 3.æåææºå·ææ938 # Step:1.ç¹å»ãå¤æ¹è§é¢ãæé®939 cpg = CallPage()940 cmvp = MultiPartyVideoPage()941 cpg.click_multi_party_video()942 time.sleep(2)943 # CheckPoint:1.跳转è³åèµ·è§é¢-éæ©æåçé¢944 cpg.page_should_contain_text("éæ©å¢éè系人")945 # Step:2.éæ©æå946 # éæ©æ¬å°ä¸ä¸ªï¼å·ç æç´¢ä¸ä¸ª947 cmvp.click_contact_item(index=2)948 time.sleep(1)949 cmvp.input_contact_search("13537795364")950 cpg.click_text("æªç¥å·ç ")951 # CheckPoint:2.被éçæåæ¥æ¾ç¤ºå¨å·²éæåå表952 self.assertTrue(cmvp.is_exist_contact_selection())953 # Step:3.ç¹å»ãå¼å«ãæé®954 cmvp.click_tv_sure()955 time.sleep(1)956 # CheckPoint:3.转å
¥å¤æ¹è§é¢æ¨éçé¢957 cpg.page_should_contain_text("å
³éæå头")958 @tags('ALL', 'CMCC', 'Call')959 def test_call_shenlisi_0324(self):960 """å¨éè¯çé¢é请æ æææºå·åèµ·å¤æ¹è§é¢"""961 # 1.客æ·ç«¯å·²ç»éå¨ï¼éè¯çé¢962 # 2.ç½ç»æ£å¸¸963 # 3.é请æ æææºå·è¿å
¥å°å¤æ¹è§é¢éè¯964 cpg = CallPage()965 cmvp = MultiPartyVideoPage()966 # Step:1.ãå¤æ¹è§é¢ãæé®967 cpg.click_multi_party_video()968 time.sleep(2)969 # CheckPoint:1.跳转è³åèµ·è§é¢-éæ©æåçé¢970 cpg.page_should_contain_text("éæ©å¢éè系人")971 # Step:2.è¾å
¥ä»»æéææºå·æ°å972 cmvp.input_contact_search("13800138005991")973 time.sleep(2)974 # CheckPoint:2.è系人éæ©å¨æ æ³è¯å«åºæ æææºå·975 cpg.page_should_not_contain_text("æ¬å°è系人")976 cpg.page_should_not_contain_text("ç½ç»æç´¢")977 cpg.click_back()978 @tags('ALL', 'CMCC', 'Call')979 def test_call_shenlisi_0326(self):980 """æ£æ¥æ å¯å·æ¶éè¯è®°å½å表页é¢"""981 # 1.ç¨æ·å·²ç»å½åé£ä¿¡éè¯è®°å½å表页é¢982 # 2.æ å¯å·983 cpg = CallPage()984 time.sleep(1)985 # Step:1ï¼æ¥ççé¢986 # CheckPoint:1.å·¦ä¸è§æ¾ç¤ºâéè¯âï¼å³è¾¹æ¾ç¤ºâè§é¢âæé®ï¼ä¸é´æ¾ç¤ºéè¯è®°å½ï¼å³ä¸æ¹æ¾ç¤ºâå¤æ¹çµè¯âæ¬æµ®987 self.assertTrue(cpg.check_call_display())988 self.assertTrue(cpg.check_multiparty_video())989 self.assertTrue(cpg.check_feixin_call())990 # Step:2.ç¹å»æ¨å·ç991 cpg.click_dial()992 # CheckPoint:2.å¼¹åºæ¨å·çï¼é¡¶é¨æ 被é®æ¡993 self.assertFalse(cpg.check_call_display())994 self.assertFalse(cpg.check_multiparty_video())995 cpg.click_dial()996 @tags('ALL', 'CMCC', 'Call')997 def test_call_shenlisi_0328(self):998 """æ£æ¥ééè¯å表为空"""999 # 1.ç¨æ·å·²ç»å½åé£ä¿¡éè¯è®°å½å表页é¢1000 # 2.é讯å½ä¸ºç©º1001 cpg = CallPage()1002 time.sleep(1)1003 # Step:1ï¼æ¥ççé¢1004 # CheckPoint:1.çé¢logoæ示âç»ä½ ç好åæ个çµè¯å§â1005 # self.assertTrue(cpg.check_call_image())1006 cpg.page_should_contain_text("é«æ¸
éè¯ï¼é«ææ²é")1007 @tags('ALL', 'CMCC', 'Call')1008 def test_call_shenlisi_0333(self):1009 """æ£æ¥æ¸
é¶æªæ¥éè¯æ°"""1010 # 1.ç¨æ·å·²ç»å½åé£ä¿¡æ¶æ¯tab1011 # 2.éè¯tabå³ä¸è§æ¾ç¤ºæªè¯»æ¶æ¯æ°æ³¡1012 # Step:1.ç¹å»éè¯tab1013 cpg = CallPage()1014 cpg.click_call()1015 # CheckPoint:1.éè¯æªæ¥æ°æ¸
é¶ï¼å¾æ å为æ¨å·çæé®1016 # æ¸
空éè¯è®°å½1017 cpg.delete_all_call_entry()1018 cpg.page_should_contain_text("é«æ¸
éè¯ï¼é«ææ²é")1019 @tags('ALL', 'CMCC', 'Call')1020 def test_call_shenlisi_0347(self):1021 """æ£æ¥æ¬å°è系人éè¯profileå·¦ä¸è§æ¾ç¤ºå称"""1022 # 1.å·²ç»å½åé£ä¿¡ï¼éè¯tab1023 # 2.å·²åå¨ä¸æ¬å°è系人çéè¯è®°å½M1024 # Step:1.ç¹å»è®°å½Mçæ¶é´èç¹1025 cpg = CallPage()1026 cpg.create_call_entry("13800138001")1027 cpg.click_dial()1028 cpg.click_call_time_search_status()1029 # CheckPoint:1.è¿å
¥å°Mçéè¯profileçé¢1030 time.sleep(2)1031 cpg.page_should_contain_text("å享åç")1032 # Step:2.æ¥çå·¦ä¸è§çå称1033 ret = cpg.get_profile_name()1034 # CheckPoint:2.å·¦ä¸è§<æé®ã以åMå称1035 self.assertEqual(ret, "ç»ä¸ªçº¢å
2")1036 # Step:3.ç¹å»<æé®>1037 cpg.click_back()1038 cpg.click_dial()1039 time.sleep(2)1040 # CheckPoint:3.è¿åå°ä¸ä¸ä¸ªçé¢1041 self.assertTrue(cpg.is_on_the_call_page())1042 @tags('ALL', 'CMCC', 'Call')1043 def test_call_shenlisi_0348(self):1044 """æ£æ¥éçè系人éè¯profileå·¦ä¸è§æ¾ç¤ºææºå·"""1045 # 1.å·²ç»å½åé£ä¿¡ï¼éè¯tab1046 # 2.å·²åå¨ä¸éçè系人çéè¯è®°å½M1047 # Step:1.ç¹å»è®°å½Mçæ¶é´èç¹1048 cpg = CallPage()1049 cpg.create_call_entry("19912345678")1050 cpg.click_dial()1051 cpg.click_call_time_search_status()1052 # CheckPoint:1.è¿å
¥å°Mçéè¯profileçé¢1053 time.sleep(2)1054 self.assertTrue(cpg.is_exist_profile_name())1055 # Step:2.æ¥çå·¦ä¸è§çå称1056 ret = cpg.get_profile_name()1057 # CheckPoint:2.å·¦ä¸è§<æé®ã以åNçææºå·1058 self.assertEqual(ret, "19912345678")1059 # Step:3.ç¹å»<æé®>1060 cpg.click_back()1061 cpg.click_dial()1062 time.sleep(2)1063 # CheckPoint:3.è¿åå°ä¸ä¸ä¸ªçé¢1064 self.assertTrue(cpg.is_on_the_call_page())1065 @tags('ALL', 'CMCC', 'Call')1066 def test_call_shenlisi_0353_001(self):1067 """æ£æ¥éè¯profileçé¢å¯è¿å
¥å°æ¶æ¯ä¼è¯çªå£--æ¬å°è系人"""1068 # 1.å·²ç»å½åé£ä¿¡ï¼éè¯tab1069 # 2.å·²è¿å
¥å°è系人éè¯profile1070 # æ¬å°è系人1071 cpg = CallPage()1072 cpg.create_call_entry("13800138001")1073 cpg.click_dial()1074 cpg.click_call_time_search_status()1075 time.sleep(2)1076 cpg.page_should_contain_text("å享åç")1077 # Step:1.ç¹å»æ¶æ¯æé®1078 CallContactDetailPage().click_normal_message()1079 # CheckPoint:1.è¿å
¥å°ä¸è¯¥è系人çæ¶æ¯ä¼è¯æ¡ãæ¬å°è系人左ä¸è§æ¾ç¤ºå称ãéçè系人ï¼å·¦ä¸è§æ¾ç¤ºææºå·1080 chatpage = BaseChatPage()1081 flag = chatpage.is_exist_dialog()1082 if flag:1083 chatpage.click_i_have_read()1084 cpg.page_should_contain_text("说ç¹ä»ä¹...")1085 cpg.page_should_contain_text("ç»ä¸ªçº¢å
2")1086 @tags('ALL', 'CMCC', 'Call')1087 def test_call_shenlisi_0353_002(self):1088 """æ£æ¥éè¯profileçé¢å¯è¿å
¥å°æ¶æ¯ä¼è¯çªå£--éçè系人"""1089 # éçè系人1090 cpg = CallPage()1091 cpg.create_call_entry("19912345678")1092 cpg.click_dial()1093 cpg.click_call_time_search_status()1094 time.sleep(2)1095 self.assertTrue(cpg.is_exist_profile_name())1096 # Step:1.ç¹å»æ¶æ¯æé®1097 CallContactDetailPage().click_normal_message()1098 # CheckPoint:1.è¿å
¥å°ä¸è¯¥è系人çæ¶æ¯ä¼è¯æ¡ãæ¬å°è系人左ä¸è§æ¾ç¤ºå称ãéçè系人ï¼å·¦ä¸è§æ¾ç¤ºææºå·1099 chatpage = BaseChatPage()1100 flag = chatpage.is_exist_dialog()1101 if flag:1102 chatpage.click_i_have_read()1103 cpg.page_should_contain_text("说ç¹ä»ä¹...")1104 cpg.page_should_contain_text("19912345678")1105 @tags('ALL', 'CMCC', 'Call')1106 def test_call_shenlisi_0355(self):1107 """æ£æ¥éè¯profileçé¢åèµ·è¯é³éè¯"""1108 # 1.å·²ç»å½åé£ä¿¡ï¼éè¯tab1109 # 2.å·²è¿å
¥å°è系人éè¯profile1110 # 3.ææææºå·1111 # Step:1.ç¹å»è¯é³éè¯æé®1112 cpg = CallPage()1113 cpg.create_call_entry("13800138001")1114 cpg.click_dial()1115 cpg.click_call_time_search_status()1116 time.sleep(2)1117 self.assertTrue(cpg.is_exist_profile_name())1118 CallContactDetailPage().click_voice_call()1119 cpg.page_should_contain_text("æ£å¨å¼å«")1120 # CheckPoint:1.åèµ·1v1è¯é³å¼å«1121 CallContactDetailPage().wait_for_star()1122 @tags('ALL', 'CMCC', 'Call')1123 def test_call_shenlisi_0356(self):1124 """æ£æ¥éè¯profileçé¢åèµ·è§é¢éè¯"""1125 # 1.å·²ç»å½åé£ä¿¡ï¼éè¯tab1126 # 2.å·²è¿å
¥å°è系人éè¯profile1127 # 3.ææææºå·1128 # Step:1.ç¹å»è§é¢éè¯1129 cpg = CallPage()1130 cpg.create_call_entry("13800138001")1131 cpg.click_dial()1132 cpg.click_call_time_search_status()1133 time.sleep(2)1134 CallContactDetailPage().click_video_call()1135 cpg.page_should_contain_text("ç½ç»è§é¢éè¯å¼å«ä¸")1136 # CheckPoint:1.åèµ·1v1è§é¢å¼å«1137 CallContactDetailPage().wait_for_star()1138 @tags('ALL', 'CMCC', 'Call')1139 def test_call_shenlisi_0358(self):1140 """æ£æ¥æ¬å°è系人éè¯profile"""1141 # 1.å·²ç»å½åé£ä¿¡-éè¯è®°å½å表1142 # 2.å·²è¿å
¥å°æ¬å°è系人Açéè¯profile1143 # 3.ç¨æ·A为RCSç¨æ·å¹¶ä¿åè³æ¬å°1144 # 4.å½åç»å½è´¦å·æ å¯å·1145 # Step:1.æ¥ççé¢1146 cpg = CallPage()1147 cpg.create_call_entry("13800138001")1148 cpg.click_dial()1149 cpg.click_call_time_search_status()1150 time.sleep(2)1151 # CheckPoint:1.è¿åè½æï¼ææ ãç¼è¾ãå享åçãæ¶æ¯ãçµè¯ãè¯é³éè¯ãè§é¢éè¯ãåé£ä¿¡çµè¯é«äº®ã页é¢æ¾ç¤ºï¼å¨åé£ä¿¡çµè¯æé®ä¸æ¾ç¤ºå
¬å¸ãèä½ãé®ç®±ï¼å
¬å¸ãèä½ãé®ç®±æåæ¾ç¤ºï¼ï¼éè¯è®°å½ãåºé¨æ¾ç¤ºãå享åçãï¼ç¹å»è°èµ·è系人éæ©å¨1152 self.assertTrue(CallContactDetailPage().is_exist_star())1153 cpg.page_should_contain_text("ç¼è¾")1154 cpg.page_should_contain_text("å享åç")1155 cpg.page_should_contain_text("æ¶æ¯")1156 cpg.page_should_contain_text("çµè¯")1157 cpg.page_should_contain_text("è¯é³éè¯")1158 cpg.page_should_contain_text("è§é¢é話")1159 cpg.page_should_contain_text("é£ä¿¡çµè¯")1160 cpg.page_should_contain_text("æ¨åºçµè¯")1161 CallContactDetailPage().click_share_card()1162 time.sleep(2)1163 cpg.page_should_contain_text("éæ©è系人")1164 @tags('ALL', 'CMCC', 'Call')1165 def test_call_shenlisi_0360(self):1166 """æ£æ¥éç人éè¯profile"""1167 # 1.å·²ç»å½åé£ä¿¡-éè¯è®°å½å表1168 # 2.å·²è¿å
¥å°éçè系人Bçéè¯profile1169 # 3.ç¨æ·B为RCSç¨æ·å¹¶ä¸ºéç人1170 # 4.å½åç»å½è´¦å·æ å¯å·1171 # Step:1.æ¥ççé¢1172 cpg = CallPage()1173 cpg.create_call_entry("13537795364")1174 cpg.click_dial()1175 cpg.click_call_time_search_status()1176 time.sleep(2)1177 # CheckPoint:1.åè½æï¼ä¿åå°é讯å½ãæ¶æ¯ãçµè¯ãè¯é³éè¯ãè§é¢éè¯ãåé£ä¿¡çµè¯é«äº®ã页é¢æ¾ç¤ºï¼å¨åé£ä¿¡çµè¯æé®ä¸æ¾ç¤ºéè¯è®°å½ãåºé¨æ¾ç¤ºãä¿åå°é讯å½ãï¼ç¹å»è¿å
¥å°ç¼è¾é¡µé¢1178 time.sleep(2)1179 cpg.page_should_contain_text("ä¿åå°é讯å½")1180 cpg.page_should_contain_text("æ¶æ¯")1181 cpg.page_should_contain_text("çµè¯")1182 cpg.page_should_contain_text("è¯é³éè¯")1183 cpg.page_should_contain_text("è§é¢é話")1184 cpg.page_should_contain_text("é£ä¿¡çµè¯")1185 cpg.page_should_contain_text("æ¨åºçµè¯")1186 CallContactDetailPage().click_save_contacts()1187 @tags('ALL', 'CMCC', 'Call')1188 def test_call_shenlisi_0363(self):1189 """æ£æ¥éRCSéè¯profile--éçè系人"""1190 # 1.å·²ç»å½åé£ä¿¡-éè¯è®°å½å表1191 # 2.å·²è¿å
¥å°æ¬å°è系人Cçéè¯profile1192 # 3.ç¨æ·C为éRCSç¨æ·å¹¶ä¸ºéç人1193 # 4.å½åç»å½è´¦å·æ å¯å·1194 # Step:1.æ¥ççé¢1195 cpg = CallPage()1196 cpg.create_call_entry("15343038890")1197 cpg.click_dial()1198 cpg.click_call_time_search_status()1199 # CheckPoint:1.åè½æï¼ä¿åå°é讯å½ãé请使ç¨ãæ¶æ¯ãçµè¯ãè¯é³éè¯ãè§é¢éè¯ãåé£ä¿¡çµè¯é«äº®ã页é¢æ¾ç¤ºï¼å¨åé£ä¿¡çµè¯æé®ä¸æ¾ç¤ºéè¯è®°å½ãåºé¨æ¾ç¤ºãä¿åå°é讯å½ãï¼ç¹å»è¿å
¥å°ç¼è¾é¡µé¢ããé请使ç¨ãï¼ç¹å»è°èµ·ç³»ç»çä¿¡1200 time.sleep(2)1201 cpg.page_should_contain_text("ä¿åå°é讯å½")1202 cpg.page_should_contain_text("é请使ç¨")1203 cpg.page_should_contain_text("æ¶æ¯")1204 cpg.page_should_contain_text("çµè¯")1205 cpg.page_should_contain_text("è¯é³éè¯")1206 cpg.page_should_contain_text("è§é¢é話")1207 cpg.page_should_contain_text("é£ä¿¡çµè¯")1208 cpg.page_should_contain_text("æ¨åºçµè¯")1209 ContactDetailsPage().click_invitation_use()1210 time.sleep(1)1211 cpg.page_should_contain_text("æ°ä¿¡æ¯")1212 cpg.page_should_contain_text("æ¶ä»¶äººï¼")1213 @tags('ALL', 'CMCC', 'Call')1214 def test_call_shenlisi_0381(self):1215 """æ£æ¥åèå¯åªä½é¢æ¿-é³é¢éè¯å
å«è¯é³éè¯å¹´åãè§é¢"""1216 # 1.ç»å½åé£ä¿¡ï¼æ¶æ¯tab-åèä¼è¯çªå£-å¯åªä½é¢æ¿1217 # Step: 1.1.ç¹å»é³é¢çµè¯æé®1218 cpg = CallPage()1219 ContactsPage().click_message_icon()1220 Preconditions.enter_single_chat_page("ç»ä¸ªçº¢å
2")1221 BaseChatPage().click_more()1222 ChatMorePage().click_voice_and_video_call()1223 time.sleep(1)1224 # CheckPoint: 1.å±å¼çå¯åªä½æ¶æ¯ä½éæ©é¢æ¿æ¶èµ·åAndroidï¼ä¸é´å¼¹åºâè¯é³éè¯ãè§é¢éè¯â两个æé®1225 cpg.page_should_contain_text("è¯é³éè¯")1226 cpg.page_should_contain_text("è§é¢éè¯")1227 cpg.page_should_contain_text("åæ¶")1228 @tags('ALL', 'CMCC', 'Call')1229 def test_call_shenlisi_0395(self):1230 """æ£æ¥ç¾¤èèå¯åªä½é¢æ¿-å¤æ¹çµè¯å
¥å£æ¨æ"""1231 # 1.ç»å½åé£ä¿¡ï¼æ¶æ¯tab-群èä¼è¯çªå£-å¯åªä½é¢æ¿1232 # 2.已弹åºç³»ç»éæ©å¼¹çªå¤æ¹çµè¯åå¤æ¹è§é¢1233 ContactsPage().click_message_icon()1234 Preconditions.get_into_group_chat_page("群è1")1235 # Step:1.ç¹å»å¤æ¹çµè¯1236 gpg = GroupListPage()1237 gpg.click_mult_call_icon()1238 CallPage().click_feixin_call_free()1239 # CheckPoint:1.è°èµ·è系人éæ©å¨1240 time.sleep(1)1241 gpg.page_should_contain_text("æ索群æå")1242 CallPage().click_back()1243 # Step:2.ç¹å»å¤æ¹è§é¢1244 gpg = GroupListPage()1245 gpg.click_mult_call_icon()1246 CallPage().click_mutil_video_call()1247 # CheckPoint:2.è°èµ·è系人éæ©å¨1248 time.sleep(1)...
contactPage.py
Source:contactPage.py
...147 @tags('All','CMCC')148 def test_contacts_0001(self):149 """éªè¯é讯å½é¡µé¢å
ç´ """150 contacts = ContactsPage()151 contacts.page_should_contain_text('é讯å½')152 # contacts.page_should_contain_element('+')153 contacts.page_should_contain_text('æç´¢')154 if contacts.is_text_present('å¤ä»½ä½ çææºé讯å½ï¼è系人æ°æ®ä¸ä¸¢å¤±'):155 contacts.page_should_contain_text('å¤ä»½ä½ çææºé讯å½ï¼è系人æ°æ®ä¸ä¸¢å¤±')156 time.sleep(2)157 contacts.page_should_contain_text('群è')158 contacts.page_should_contain_text('æ ç¾åç»')159 contacts.page_should_contain_text('å
¬ä¼å·')160 contacts.page_should_contain_text('åé讯å½')161 @staticmethod162 def setUp_test_contacts_0002():163 Preconditions.connect_mobile('Android-移å¨')164 current_mobile().hide_keyboard_if_display()165 Preconditions.reset_and_relaunch_app()166 Preconditions.make_already_in_one_key_login_page()167 Preconditions.login_by_one_key_login()168 MessagePage().wait_for_page_load()169 @tags('All', 'CMCC')170 def test_contacts_0002(self):171 """访é®æ¬å°é讯å½æéæ¡,ç¹å»ç¡®å®"""172 MessagePage().click_contacts()173 ContactsPage().click_always_allowed()174 time.sleep(2)175 @staticmethod176 def setUp_test_contacts_0003():177 Preconditions.connect_mobile('Android-移å¨')178 current_mobile().hide_keyboard_if_display()179 Preconditions.reset_and_relaunch_app()180 Preconditions.make_already_in_one_key_login_page()181 Preconditions.login_by_one_key_login()182 MessagePage().wait_for_page_load()183 @tags('All', 'CMCC')184 def test_contacts_0003(self):185 """å
许访é®æ¬å°é讯å½"""186 MessagePage().click_contacts()187 contact=ContactsPage()188 contact.click_forbidden()189 time.sleep(1)190 @staticmethod191 def setUp_test_contacts_0015():192 Preconditions.connect_mobile('Android-移å¨')193 current_mobile().hide_keyboard_if_display()194 Preconditions.make_already_in_message_page()195 time.sleep(1)196 MessagePage().click_contacts()197 time.sleep(2)198 if ContactsPage().is_text_present('éè¦ä½¿ç¨é讯å½æé'):199 ContactsPage().click_always_allowed()200 # å建è系人 æµè¯1201 ContactsPage().click_add()202 creat_contact = CreateContactPage()203 creat_contact.click_input_name()204 creat_contact.input_name('æµè¯1')205 creat_contact.click_input_number()206 creat_contact.input_number('17324448506')207 creat_contact.save_contact()208 time.sleep(2)209 # å建è系人2210 ContactDetailsPage().click_back_icon()211 ContactsPage().click_add()212 creat_contact.click_input_name()213 creat_contact.input_name('æµè¯2')214 creat_contact.click_input_number()215 creat_contact.input_number('15570670329')216 creat_contact.save_contact()217 time.sleep(2)218 ContactDetailsPage().click_back_icon()219 #å建è系人æµè¯3220 ContactsPage().click_add()221 creat_contact.click_input_name()222 creat_contact.input_name('æµè¯3')223 creat_contact.click_input_number()224 creat_contact.input_number('12554555554')225 creat_contact.save_contact()226 time.sleep(2)227 ContactDetailsPage().click_back_icon()228 #å建è系人æµè¯4229 ContactsPage().click_add()230 creat_contact.click_input_name()231 creat_contact.input_name('æµè¯4')232 creat_contact.click_input_number()233 creat_contact.input_number('12345678912')234 creat_contact.save_contact()235 time.sleep(2)236 ContactDetailsPage().click_back_icon()237 @tags('All', 'CMCC')238 def test_contacts_0015(self):239 """å·²ä¿åå°æ¬å°çRCSç¨æ·çprofile页"""240 ContactsPage().click_search_box()241 # æç´¢è系人:æµè¯1242 ContactListSearchPage().input_search_keyword('æµè¯1')243 ContactListSearchPage().click_contact('æµè¯1')244 time.sleep(3)245 # è¿å
¥ä¸ªäººè¯¦æ
页246 # 页é¢å
å«çå
ç´ 247 detailpage = ContactDetailsPage()248 detailpage.page_should_contain_text('æµè¯1')249 detailpage.page_should_contain_text('173 2444 8506')250 detailpage.page_should_contain_text('C')251 if detailpage.is_text_present("å
¬å¸"):252 detailpage.page_should_contain_text('å
¬å¸')253 if detailpage.is_text_present("èä½"):254 detailpage.page_should_contain_text('èä½')255 if detailpage.is_text_present("é®ç®±"):256 detailpage.page_should_contain_text('é®ç®±')257 detailpage.page_should_contain_text('æ¶æ¯')258 detailpage.page_should_contain_text('çµè¯')259 detailpage.page_should_contain_text('è¯é³éè¯')260 detailpage.page_should_contain_text('è§é¢éè¯')261 detailpage.page_should_contain_text('åé£ä¿¡çµè¯')262 detailpage.page_should_contain_text('å享åç')263 # ç¹å»å¤´åæ¥ç大å¾264 detailpage.click_avatar()265 time.sleep(2)266 detailpage.click_big_avatar()267 # æ¶æ¯æé®å¯ç¹å»268 detailpage.click_message_icon() # è¿å
¥æ¶æ¯é¡µé¢269 time.sleep(2)270 if ChatWindowPage().is_text_present("ç¨æ·é¡»ç¥"):271 # å¦æåå¨ç¨æ·é¡»ç¥,å°±ç¹å»å·²é
读,ç¶åç¹å»è¿å.å¦æä¸åå¨,å°±ç´æ¥ç¹å»è¿å272 ChatWindowPage().click_already_read()273 ChatWindowPage().click_sure_icon()274 ChatWindowPage().click_back()275 else:276 ChatWindowPage().click_back()277 # ç¹å»çµè¯/ç¹å»è¯é³éè¯/ç¹å»è§é¢éè¯å
ä¸å278 # å享åçæé®å¯ç¹å»279 detailpage.click_share_business_card()280 SelectContactsPage().select_local_contacts()281 SelectContactsPage().input_search_keyword('æµè¯2')282 SelectContactsPage().click_cantact_avatar()283 SelectContactsPage().click_share_card()284 #è¿åæ¶æ¯é¡µé¢285 detailpage.click_back_icon()286 ContactListSearchPage().click_back()287 ContactsPage().click_message_icon()288 @staticmethod289 def setUp_test_contacts_0016():290 Preconditions.connect_mobile('Android-移å¨')291 current_mobile().hide_keyboard_if_display()292 Preconditions.make_already_in_message_page()293 MessagePage().click_contacts()294 if ContactsPage().is_text_present('éè¦ä½¿ç¨é讯å½æé'):295 ContactsPage().click_always_allowed()296 @tags('All', 'CMCC')297 def test_contacts_0016(self):298 """å·²ä¿åå°æ¬å°çéRCSç¨æ·çprofile页"""299 ContactsPage().click_search_box()300 #æç´¢è系人:æµè¯2301 ContactListSearchPage().input_search_keyword('æµè¯2')302 ContactListSearchPage().click_contact('æµè¯2')303 time.sleep(2)304 #è¿å
¥ä¸ªäººè¯¦æ
页305 #页é¢å
å«çå
ç´ 306 detailpage=ContactDetailsPage()307 detailpage.page_should_contain_text('æµè¯2')308 detailpage.page_should_contain_text('155 7067 0329')309 detailpage.page_should_contain_text('C')310 if detailpage.is_text_present("å
¬å¸"):311 detailpage.page_should_contain_text('å
¬å¸')312 if detailpage.is_text_present("èä½"):313 detailpage.page_should_contain_text('èä½')314 if detailpage.is_text_present("é®ç®±"):315 detailpage.page_should_contain_text('é®ç®±')316 detailpage.page_should_contain_text('æ¶æ¯')317 detailpage.page_should_contain_text('çµè¯')318 detailpage.page_should_contain_text('è¯é³éè¯')319 detailpage.page_should_contain_text('è§é¢éè¯')320 detailpage.page_should_contain_text('åé£ä¿¡çµè¯')321 detailpage.page_should_contain_text('å享åç')322 detailpage.page_should_contain_text('é请使ç¨')323 time.sleep(2)324 #ç¹å»å¤´åå¯æ¥ç大å¾325 detailpage.click_avatar()326 time.sleep(2)327 detailpage.click_big_avatar()328 #æ¶æ¯æé®å¯ç¹å»329 detailpage.click_message_icon() #è¿å
¥æ¶æ¯é¡µé¢330 time.sleep(2)331 if ChatWindowPage().is_text_present("ç¨æ·é¡»ç¥"):332 #å¦æåå¨ç¨æ·é¡»ç¥,å°±ç¹å»å·²é
读,ç¶åç¹å»è¿å.å¦æä¸åå¨,å°±ç´æ¥ç¹å»è¿å333 ChatWindowPage().click_already_read()334 ChatWindowPage().click_sure_icon()335 ChatWindowPage().click_back()336 else:337 ChatWindowPage().click_back()338 #ç¹å»çµè¯/ç¹å»è¯é³éè¯/ç¹å»è§é¢éè¯å
ä¸å339 #ç¹å»å享åç340 detailpage.click_share_business_card()341 SelectContactsPage().select_local_contacts()342 SelectContactsPage().input_search_keyword('æµè¯1')343 SelectContactsPage().click_cantact_avatar()344 SelectContactsPage().click_share_card()345 #é请使ç¨æé®å¯ç¹å» ææ¶æªå346 #è¿åæ¶æ¯é¡µé¢347 detailpage.click_back_icon()348 ContactListSearchPage().click_back()349 ContactsPage().click_message_icon()350 @staticmethod351 def setUp_test_contacts_0017():352 Preconditions.connect_mobile('Android-移å¨')353 current_mobile().hide_keyboard_if_display()354 Preconditions.make_already_in_message_page()355 MessagePage().click_contacts()356 if ContactsPage().is_text_present('éè¦ä½¿ç¨é讯å½æé'):357 ContactsPage().click_always_allowed()358 time.sleep(2)359 # å建è系人æ¬æº360 ContactsPage().click_add()361 creat_contact2=CreateContactPage()362 creat_contact2.click_input_name()363 creat_contact2.input_name('æ¬æº')364 creat_contact2.click_input_number()365 phone_number = current_mobile().get_cards(CardType.CHINA_MOBILE)366 creat_contact2.input_number(phone_number[0])367 creat_contact2.save_contact()368 time.sleep(2)369 ContactDetailsPage().click_back_icon()370 @tags('All', 'CMCC')371 def test_contacts_0017(self):372 """å·²ä¿åå°æ¬å°çæ¬æºç¨æ·çprofile页"""373 ContactsPage().click_search_box()374 # æç´¢è系人:æ¬æº375 ContactListSearchPage().input_search_keyword('æ¬æº')376 ContactListSearchPage().click_contact('æ¬æº')377 time.sleep(2)378 # è¿å
¥ä¸ªäººè¯¦æ
页379 #å¤æ页é¢å
å«çå
ç´ 380 detailpage = ContactDetailsPage()381 detailpage.page_should_contain_text('æ¬æº')382 phone_number = current_mobile().get_cards(CardType.CHINA_MOBILE)383 detailpage.page_should_contain_text('198 4947 6421')384 detailpage.page_should_contain_text('B')385 if detailpage.is_text_present("å
¬å¸"):386 detailpage.page_should_contain_text('å
¬å¸')387 if detailpage.is_text_present("èä½"):388 detailpage.page_should_contain_text('èä½')389 if detailpage.is_text_present("é®ç®±"):390 detailpage.page_should_contain_text('é®ç®±')391 detailpage.page_should_contain_text('æ¶æ¯')392 detailpage.page_should_contain_text('çµè¯')393 detailpage.page_should_contain_text('è¯é³éè¯')394 detailpage.page_should_contain_text('è§é¢éè¯')395 detailpage.page_should_contain_text('åé£ä¿¡çµè¯')396 detailpage.page_should_contain_text('å享åç')397 #ç¹å»å享åçè¿å
¥éæ©è系人页é¢ï¼å¯ä»¥æåçå享ç»äºº/群398 detailpage.click_share_business_card()399 SelectContactsPage().select_local_contacts()400 SelectContactsPage().input_search_keyword('æµè¯1')401 SelectContactsPage().click_cantact_avatar()402 SelectContactsPage().click_share_card()403 #æ¶æ¯ãçµè¯ãè¯é³è§é¢ãè§é¢çµè¯ãå¯å·æ¨æãåé£ä¿¡çµè¯ç½®ç°ï¼ä¸å¯ç¹å»404 time.sleep(2)405 detailpage.message_btn_is_clickable()406 detailpage.call_btn_is_clickable()407 detailpage.voice_btn_is_clickable()408 detailpage.video_call_btn_is_clickable()409 detailpage.hefeixin_call_btn_is_clickable()410 time.sleep(2)411 #è¿åæ¶æ¯é¡µé¢412 detailpage.click_back_icon()413 ContactListSearchPage().click_back()414 ContactsPage().click_message_icon()415 @staticmethod416 def setUp_test_contacts_0036():417 Preconditions.connect_mobile('Android-移å¨')418 current_mobile().hide_keyboard_if_display()419 Preconditions.make_already_in_message_page()420 MessagePage().click_contacts()421 @tags('All', 'CMCC')422 def test_contacts_0036(self):423 """ç¨æ·æªå å
¥ä»»ä½ä¼ä¸"""424 contact=ContactsPage()425 contact.click_and_address()426 time.sleep(3)427 HeContactsPage().page_should_contain_text('æªå å
¥ä¼ä¸')428 #è¿åæ¶æ¯é¡µé¢429 HeContactsPage().click_back_icon()430 ContactsPage().click_message_icon()431 @staticmethod432 def setUp_test_contacts_0195():433 #è¿å
¥é讯å½é¡µé¢434 Preconditions.connect_mobile('Android-移å¨')435 current_mobile().hide_keyboard_if_display()436 Preconditions.make_already_in_message_page()437 MessagePage().click_contacts()438 if ContactsPage().is_text_present('éè¦ä½¿ç¨é讯å½æé'):439 ContactsPage().click_always_allowed()440 ContactsPage().click_search_box()441 ContactListSearchPage().input_search_keyword('æµè¯1')442 ContactListSearchPage().click_contact('æµè¯1')443 time.sleep(2)444 @tags('All', 'CMCC')445 def test_contacts_0195(self):446 """å享åç,æç´¢éæ©ä¸ä¸ªç¾¤å享åç,å¼¹æ¡ç¡®è®¤æ¯å¦å享"""447 ContactListSearchPage().click_share_card()448 SelectContactsPage().click_select_one_group()449 #æç´¢æ¡ææ¬æ¾ç¤º'æ索群ç»'450 SelectOneGroupPage().is_text_present('æ索群ç»')451 #ä¸åå¨æç´¢ç»ææ¶,æ¾ç¤º"æ æç´¢ç»æ452 SelectOneGroupPage().click_search_group()453 SelectOneGroupPage().input_search_keyword('红å
')454 SelectOneGroupPage().page_should_contain_text('æ æç´¢ç»æ')455 #åå¨æç´¢ç»ææ¶,æç´¢ç»æå
å«å
³é®å456 time.sleep(2)457 SelectOneGroupPage().click_back_icon()458 SelectOneGroupPage().click_search_group()459 SelectOneGroupPage().input_search_keyword('æµè¯ç¾¤1')460 SelectOneGroupPage().is_group_in_list('æµè¯ç¾¤1')461 SelectOneGroupPage().select_one_group_by_name('æµè¯ç¾¤1')462 SelectOneGroupPage().click_share_business_card()463 #è¿åæ¶æ¯é¡µé¢464 ContactDetailsPage().click_back_icon()465 ContactListSearchPage().click_back()466 ContactsPage().click_message_icon()467 @staticmethod468 def setUp_test_contacts_0196():469 Preconditions.connect_mobile('Android-移å¨')470 current_mobile().hide_keyboard_if_display()471 Preconditions.make_already_in_message_page()472 MessagePage().click_contacts()473 if ContactsPage().is_text_present('éè¦ä½¿ç¨é讯å½æé'):474 ContactsPage().click_always_allowed()475 ContactsPage().click_search_box()476 ContactListSearchPage().input_search_keyword('æµè¯1')477 ContactListSearchPage().click_contact('æµè¯1')478 time.sleep(2)479 @tags('All', 'CMCC')480 def test_contacts_0196(self):481 """群èå表å±ç¤ºé¡µé¢éæ©ä¸ä¸ªç¾¤å享"""482 ContactListSearchPage().click_share_card()483 SelectContactsPage().click_select_one_group()484 SelectOneGroupPage().select_one_group_by_name('æµè¯ç¾¤1')485 SelectOneGroupPage().is_text_present('åéåç')486 SelectOneGroupPage().click_share_business_card()487 #è¿åæ¶æ¯é¡µé¢488 ContactDetailsPage().click_back_icon()489 ContactListSearchPage().click_back()490 ContactsPage().click_message_icon()491 @staticmethod492 def setUp_test_contacts_0197():493 Preconditions.connect_mobile('Android-移å¨')494 current_mobile().hide_keyboard_if_display()495 Preconditions.make_already_in_message_page()496 MessagePage().click_contacts()497 if ContactsPage().is_text_present('éè¦ä½¿ç¨é讯å½æé'):498 ContactsPage().click_always_allowed()499 ContactsPage().click_search_box()500 ContactListSearchPage().input_search_keyword('æµè¯1')501 ContactListSearchPage().click_contact('æµè¯1')502 ContactDetailsPage().click_share_business_card()503 @tags('All', 'CMCC')504 def test_contacts_0197(self):505 """群èå表å±ç¤ºé¡µé¢éæ©æ¬å°è系人å享"""506 SelectContactsPage().select_local_contacts()507 SelectContactsPage().page_should_contain_text('éæ©è系人')508 SelectContactsPage().page_should_contain_text('æç´¢æè¾å
¥ææºå·')509 #æ æç´¢ç»ææ¶,ä¸æ¹æ¯å¦å±ç¤ºï¼æ æç´¢ç»æ510 SelectContactsPage().click_search_keyword()511 SelectContactsPage().input_search_keyword('ææ¬')512 SelectContactsPage().is_text_present('æ æç´¢ç»æ')513 time.sleep(2)514 #åå¨æç´¢ç»ææ¶,å¤ææ¾ç¤ºæ¯å¦æ£ç¡®515 SelectContactsPage().click_x_icon()516 time.sleep(1)517 SelectContactsPage().input_search_keyword('æµè¯2')518 SelectContactsPage().select_one_contact_by_name('æµè¯2')519 SelectContactsPage().click_share_card()520 #è¿åæ¶æ¯é¡µé¢521 ContactDetailsPage().click_back_icon()522 ContactListSearchPage().click_back()523 ContactsPage().click_message_icon()524 @staticmethod525 def setUp_test_contacts_0198():526 Preconditions.connect_mobile('Android-移å¨')527 current_mobile().hide_keyboard_if_display()528 Preconditions.make_already_in_message_page()529 MessagePage().click_contacts()530 if ContactsPage().is_text_present('éè¦ä½¿ç¨é讯å½æé'):531 ContactsPage().click_always_allowed()532 ContactsPage().click_search_box()533 ContactListSearchPage().input_search_keyword('æµè¯1')534 ContactListSearchPage().click_contact('æµè¯1')535 ContactDetailsPage().click_share_business_card()536 @tags('All', 'CMCC')537 def test_contacts_0198(self):538 """éæ©æ¬å°è系人å享åç"""539 select_contact=SelectContactsPage()540 select_contact.select_local_contacts()541 select_contact.select_one_contact_by_name('æµè¯2')542 time.sleep(2)543 select_contact.page_should_contain_text('åéåç')544 select_contact.click_share_card()545 #è¿åæ¶æ¯é¡µé¢546 ContactDetailsPage().click_back_icon()547 ContactListSearchPage().click_back()548 ContactsPage().click_message_icon()549 @staticmethod550 def setUp_test_contacts_0201():551 Preconditions.connect_mobile('Android-移å¨')552 current_mobile().hide_keyboard_if_display()553 Preconditions.make_already_in_message_page()554 MessagePage().click_contacts()555 if ContactsPage().is_text_present('éè¦ä½¿ç¨é讯å½æé'):556 ContactsPage().click_always_allowed()557 ContactsPage().click_search_box()558 ContactListSearchPage().input_search_keyword('æµè¯1')559 ContactListSearchPage().click_contact('æµè¯1')560 ContactListSearchPage().click_share_card()561 @tags('All', 'CMCC')562 def test_contacts_0201(self):563 """éæ©åé讯å½è系人è系人å享åç"""564 SelectContactsPage().click_he_contacts()565 time.sleep(2)566 SelectContactsPage().page_should_contain_text('æªå å
¥ä¼ä¸')567 #è¿åæ¶æ¯é¡µé¢568 HeContactsPage().click_back()569 SelectContactsPage().click_back()570 ContactDetailsPage().click_back_icon()571 ContactListSearchPage().click_back()572 ContactsPage().click_message_icon()573 @staticmethod574 #åé£ä¿¡è系人éé¢å·²ç»æè¶
è¿3个已æµè¯å¼å§çè系人,åæ¶æè¶
è¿3个群å称å
å«æµè¯å段ç群ç»575 def setUp_test_contacts_0207():576 Preconditions.connect_mobile('Android-移å¨')577 current_mobile().hide_keyboard_if_display()578 Preconditions.make_already_in_message_page()579 MessagePage().click_contacts()580 if ContactsPage().is_text_present('éè¦ä½¿ç¨é讯å½æé'):581 ContactsPage().click_always_allowed()582 ContactsPage().click_search_box()583 ContactListSearchPage().input_search_keyword('æµè¯1')584 ContactListSearchPage().click_contact('æµè¯1')585 ContactDetailsPage().click_share_business_card()586 @tags('All', 'CMCC')587 def test_contacts_0207(self):588 """å享åçæ¶,æç´¢ç»æå¤äº3人"""589 select_contacts=SelectContactsPage()590 #è¾å
¥'æµè¯'è¿è¡æç´¢,æç´¢ç»ææ¾ç¤ºæ
åµ591 select_contacts.click_search_keyword()592 select_contacts.input_search_keyword('æµè¯')593 select_contacts.hide_keyboard()594 select_contacts.page_should_contain_text('æç´¢åé讯å½è系人')595 select_contacts.page_should_contain_text('æ¬å°è系人')596 select_contacts.page_should_contain_text('æ¥çæ´å¤')597 select_contacts.page_should_contain_text('群è')598 #éæ©æ¬å°è系人æ¯å¦ä¼å¼¹åºå¼¹æ¡ #æ¯å¦å¼¹åºå¼¹æ¡æªæ£æµ599 select_contacts.select_one_contact_by_name('æµè¯1')600 select_contacts.is_text_present('åéåç')601 select_contacts.click_share_card()602 #éæ©ç¾¤è系人æ¯å¦ä¼åºç°å¼¹æ¡ æ¯å¦å¼¹åºå¼¹æ¡æªæ£æµ603 ContactDetailsPage().click_share_business_card()604 select_contacts.click_search_keyword()605 select_contacts.input_search_keyword('æµè¯')606 select_contacts.hide_keyboard()607 select_contacts.select_one_group_by_name('æµè¯ç¾¤1')608 select_contacts.is_text_present('åéåç')609 select_contacts.click_share_card()610 #ç¹å»æ¥çæé®,æ¯å¦ä¼å±ç¤ºæå çæç´¢ç»æ611 ContactDetailsPage().click_share_business_card()612 select_contacts.click_search_keyword()613 select_contacts.input_search_keyword('æµè¯')614 select_contacts.hide_keyboard()615 select_contacts.click_read_more()616 time.sleep(2)617 select_contacts.page_should_contain_text('æµè¯4')618 select_contacts.select_one_contact_by_name('æµè¯4')619 select_contacts.click_share_card()620 #è¿åæ¶æ¯é¡µé¢621 ContactDetailsPage().click_back_icon()622 ContactListSearchPage().click_back()623 ContactsPage().click_message_icon()624 @staticmethod625 def setUp_test_contacts_0208():626 Preconditions.connect_mobile('Android-移å¨')627 current_mobile().hide_keyboard_if_display()628 Preconditions.make_already_in_message_page()629 MessagePage().click_contacts()630 if ContactsPage().is_text_present('éè¦ä½¿ç¨é讯å½æé'):631 ContactsPage().click_always_allowed()632 ContactsPage().click_search_box()633 ContactListSearchPage().input_search_keyword('æµè¯1')634 ContactListSearchPage().click_contact('æµè¯1')635 ContactListSearchPage().click_share_card()636 @tags('All', 'CMCC')637 def test_contacts_0208(self):638 """éæ©æè¿è天ä¸çè系人,å¯å享åç"""639 select_contacts = SelectContactsPage()640 select_contacts.select_one_recently_contact_by_name('æµè¯2')641 time.sleep(1)642 select_contacts.page_should_contain_text('åéåç')643 select_contacts.click_share_card()644 #è¿åæ¶æ¯é¡µé¢645 ContactDetailsPage().click_back_icon()646 ContactListSearchPage().click_back()647 ContactsPage().click_message_icon()648 @staticmethod649 def setUp_test_contacts_0209():650 Preconditions.connect_mobile('Android-移å¨')651 current_mobile().hide_keyboard_if_display()652 Preconditions.make_already_in_message_page()653 MessagePage().click_contacts()654 if ContactsPage().is_text_present('éè¦ä½¿ç¨é讯å½æé'):655 ContactsPage().click_always_allowed()656 ContactsPage().click_search_box()657 ContactListSearchPage().input_search_keyword('æµè¯1')658 ContactListSearchPage().click_contact('æµè¯1')659 ContactListSearchPage().click_share_card()660 @tags('All', 'CMCC')661 def test_contacts_0209(self):662 """éæ©æè¿è天ä¸ç群,å¯å享åç"""663 select_contacts = SelectContactsPage()664 select_contacts.select_one_recently_contact_by_name('æµè¯ç¾¤1')665 time.sleep(1)666 select_contacts.page_should_contain_text('åéåç')667 select_contacts.click_share_card()668 #è¿åæ¶æ¯é¡µé¢669 ContactDetailsPage().click_back_icon()670 ContactListSearchPage().click_back()671 ContactsPage().click_message_icon()672 @staticmethod673 def setUp_test_contacts_0210():674 Preconditions.connect_mobile('Android-移å¨')675 current_mobile().hide_keyboard_if_display()676 Preconditions.make_already_in_message_page()677 MessagePage().click_contacts()678 if ContactsPage().is_text_present('éè¦ä½¿ç¨é讯å½æé'):679 ContactsPage().click_always_allowed()680 ContactsPage().click_search_box()681 ContactListSearchPage().input_search_keyword('æµè¯1')682 ContactListSearchPage().click_contact('æµè¯1')683 ContactListSearchPage().click_share_card()684 @tags('ALL','CMCC')685 def test_contacts_0210(self):686 """è系人éæ©å¨ æç´¢æççµè"""687 time.sleep(1)688 SelectContactsPage().click_search_contact()689 SelectContactsPage().input_search_keyword('æççµè')690 SelectContactsPage().hide_keyboard()691 time.sleep(2)692 #è¿åæ¶æ¯é¡µé¢693 SelectContactsPage().click_back()694 ContactDetailsPage().click_back()695 ContactListSearchPage().click_back()696 ContactsPage().click_message_icon()697 @staticmethod698 def setUp_test_contacts_0211():699 Preconditions.connect_mobile('Android-移å¨')700 current_mobile().hide_keyboard_if_display()701 Preconditions.make_already_in_message_page()702 MessagePage().click_contacts()703 if ContactsPage().is_text_present('éè¦ä½¿ç¨é讯å½æé'):704 ContactsPage().click_always_allowed()705 ContactsPage().click_search_box()706 ContactListSearchPage().input_search_keyword('æµè¯1')707 ContactListSearchPage().click_contact('æµè¯1')708 ContactListSearchPage().click_share_card()709 @tags('ALL','CMCC')710 def test_contacts_0211(self):711 """è系人éæ©å¨ è¾å
¥éçææºå·ç """712 time.sleep(1)713 select_contact=SelectContactsPage()714 select_contact.click_search_contact()715 select_contact.input_search_keyword('15575256658')716 select_contact.hide_keyboard()717 time.sleep(2)718 select_contact.get_element_text_net_name('æªç¥å·ç ')719 select_contact.get_element_text_net_number('tel:+86')720 time.sleep(2)721 #è¿åæ¶æ¯é¡µé¢722 SelectContactsPage().click_back()723 ContactDetailsPage().click_back()724 ContactListSearchPage().click_back()725 ContactsPage().click_message_icon()726 @staticmethod727 def setUp_test_contacts_0321():728 Preconditions.connect_mobile('Android-移å¨')729 current_mobile().hide_keyboard_if_display()730 Preconditions.make_already_in_message_page()731 MessagePage().click_contacts()732 if ContactsPage().is_text_present('éè¦ä½¿ç¨é讯å½æé'):733 ContactsPage().click_always_allowed()734 def test_contacts_0321(self):735 "å
¬ä¼å·é»è®¤å
³æ³¨å
¬ä¼å·æ£æ¥"736 ContactsPage().click_official_account_icon()737 time.sleep(1)738 official_account = OfficialAccountPage()739 official_account.page_should_contain_text('ä¸å½ç§»å¨10086')740 official_account.page_should_contain_text('åé£ä¿¡')741 official_account.page_should_contain_text('åé£ä¿¡å¢é')742 #è¿åæ¶æ¯é¡µé¢743 official_account.click_back()744 ContactsPage().click_message_icon()745 @staticmethod746 def setUp_test_contacts_0322():747 Preconditions.connect_mobile('Android-移å¨')748 current_mobile().hide_keyboard_if_display()749 Preconditions.make_already_in_message_page()750 MessagePage().click_contacts()751 if ContactsPage().is_text_present('éè¦ä½¿ç¨é讯å½æé'):752 ContactsPage().click_always_allowed()753 def test_contacts_0322(self):754 """å
¬ä¼å·å表为空"""755 ContactsPage().click_official_account_icon()756 official_account = OfficialAccountPage()757 official_account.click_tag("ä¼ä¸å·")758 time.sleep(1)759 official_account.page_should_contain_text('æªå
³æ³¨ä»»ä½ä¼ä¸å·')760 official_account.assert_enterprise_account_list_is_empty()761 #è¿åæ¶æ¯é¡µé¢762 official_account.click_back()...
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!