def test_contacts_quxinli_0017(self): mess = MessagePage() mess.open_contacts_page() # 1、点击通讯录,点击搜索输入框 cp = ContactsPage() cp.click_search_box() # 断开网络 lcontact = localContactPage() lcontact.set_network_status(0) # 查询页面输入'大佬1' search_page = SearchPage() search_page.input_search_keyword("大佬1") sccp = SelectCompanyContactsPage() self.assertEquals(sccp.is_toast_exist("当前网络不可用,请检查网络设置"), True)
def tearDown_test_contacts_quxinli_0017(): lcontact = localContactPage() lcontact.set_network_status(6)
def default_tearDown(self): lcontact = localContactPage() lcontact.set_network_status(6) pass