Exemplo n.º 1
0
 def test_msg_huangcaizui_B_0036(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_forward()
     # CheckPoint: 选择转发会调起联系人选择器,转发短信成功
     basepg.page_should_contain_text("选择联系人")
     # 4、选择转发联系人
     SelectContactsPage().search("14775970982")
     SelectContactsPage().select_one_contact_by_name('测试号码')
     # 5、点击发送
     SelectLocalContactsPage().click_sure_forward()
     # 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()
Exemplo n.º 2
0
 def test_msg_huangcaizui_B_0040(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_multiple_selection()
     time.sleep(1)
     # CheckPoint: 成功进入多选模式,可批量转发与删除短信
     basepg.page_should_contain_text("删除")
     basepg.page_should_contain_text("转发")
     time.sleep(1)
     basepg.click_back_by_android()
     if basepg.is_exist_exit_sms():
         basepg.click_exit_sms()
         time.sleep(1)
     basepg.click_back_by_android()
Exemplo n.º 3
0
 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()
Exemplo n.º 4
0
 def test_msg_huangcaizui_B_0037(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_delete()
     # 4、确认删除(IOS)
     # SelectLocalContactsPage().click_sure_forward()
     # CheckPoint: 短信成功删除
     basepg.page_should_not_contain_text("测试短信,请勿回复")
     time.sleep(2)
     if basepg.is_exist_exit_sms():
         basepg.click_exit_sms()
     time.sleep(1)
     basepg.click_back_by_android()
Exemplo n.º 5
0
 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()
Exemplo n.º 6
0
 def test_msg_huangcaizui_B_0037(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_delete()
     # 4、确认删除(IOS)
     # SelectLocalContactsPage().click_sure_forward()
     # CheckPoint: 短信成功删除
     basepg.page_should_not_contain_text("测试短信,请勿回复")
     time.sleep(2)
     if basepg.is_exist_exit_sms():
         basepg.click_exit_sms()
     time.sleep(1)
     basepg.click_back_by_android()
Exemplo n.º 7
0
 def test_msg_huangcaizui_B_0040(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_multiple_selection()
     time.sleep(1)
     # CheckPoint: 成功进入多选模式,可批量转发与删除短信
     basepg.page_should_contain_text("删除")
     basepg.page_should_contain_text("转发")
     time.sleep(1)
     basepg.click_back_by_android()
     if basepg.is_exist_exit_sms():
         basepg.click_exit_sms()
         time.sleep(1)
     basepg.click_back_by_android()