Ejemplo n.º 1
0
 def test_msg_huangcaizui_B_0038(self):
     """复制短信"""
     # 1.网络正常,本网用户
     # 2.客户端已登录
     # 3.本机已发送短信
     Preconditions.make_already_have_used_free_sms2()
     # Step: 1、进入单聊会话页面
     slc = SelectLocalContactsPage()
     slc.selecting_local_contacts_by_name("测试号码")
     basepg = BaseChatPage()
     basepg.input_free_message("测试短信,请勿回复")
     basepg.click_send_sms()
     time.sleep(2)
     # 2、长按短信
     basepg = BaseChatPage()
     basepg.press_mess("测试短信,请勿回复")
     # 3、点击复制按钮
     basepg.click_copy()
     # CheckPoint: 短信成功复制
     self.assertTrue(basepg.is_toast_exist("已复制"))
     time.sleep(2)
     if basepg.is_exist_exit_sms():
         basepg.click_exit_sms()
         time.sleep(1)
     basepg.click_back_by_android()
Ejemplo n.º 2
0
 def test_msg_huangcaizui_B_0038(self):
     """复制短信"""
     # 1.网络正常,本网用户
     # 2.客户端已登录
     # 3.本机已发送短信
     Preconditions.select_contact_send_sms("测试号码")
     # Step: 1、进入单聊会话页面
     Preconditions.enter_single_chat_page("测试号码")
     # 2、长按短信
     basepg = BaseChatPage()
     basepg.press_mess("测试短信,请勿回复")
     # 3、点击复制按钮
     basepg.click_copy()
     # CheckPoint: 短信成功复制
     self.assertTrue(basepg.is_toast_exist("已复制"))
     time.sleep(2)
     if basepg.is_exist_exit_sms():
         basepg.click_exit_sms()
         time.sleep(1)
     basepg.click_back_by_android()