def test_msg_huangcaizui_B_0039(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_collection() # CheckPoint: 短信成功收藏 self.assertTrue(basepg.is_toast_exist("已收藏")) time.sleep(3) if basepg.is_exist_exit_sms(): basepg.click_exit_sms() time.sleep(1) basepg.click_back_by_android()
def test_msg_huangcaizui_B_0039(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_collection() # CheckPoint: 短信成功收藏 self.assertTrue(basepg.is_toast_exist("已收藏")) time.sleep(3) if basepg.is_exist_exit_sms(): basepg.click_exit_sms() time.sleep(1) basepg.click_back_by_android()