def test_02_of_103(self): u'''用例test_02_of_103的操作步骤''' #每个函数里分别实例poco,否则容易出现pocoserver无限重启的情况 print("我是TC102的test_02_of_103方法") poco = UnityPoco() Screencap.GetScreen(time.time(), devices, "test_02_of_103的描述") t = 1 self.assertEquals(2, t)
def test_02_of_102(self): u'''用例test_02_of_102的操作步骤''' #每个函数里分别实例poco,否则容易出现pocoserver无限重启的情况 print("我是TC102的test_02_of_102方法") poco = AndroidUiautomationPoco() Screencap.GetScreen(time.time(), devices, "test_02_of_102的描述") t = 1 self.assertEquals(2, t)
def test_01_SP001(self): u'''验证顶通健康面''' # 每个函数里分别实例poco,否则容易出现pocoserver无限重启的情况 print("验证顶通健康面") # if(Common.waitForTemplateVisibleOrNot(heathHomePageBoothMaterial["顶通健康面"])): touch(heathHomePageBoothMaterial["顶通健康面"], 5) # if(Common.waitForTemplateVisibleOrNot(heathHomePageBoothMaterial["顶通健康面"])): # Common.clickTemplate(heathHomePageBoothMaterial["顶通健康面"]) sleep(2) Screencap.GetScreen(time.time(), devices, "顶通健康面落地页") Common.assertTemplateExist( LandingPageMaterial["baiduLandingPageMaterial"], "验证落地页") # el=Common.waitFor("name","com.pingan.papd:id/native_title_bar_iv_left",1) el = Common.waitFor("name", "com.pingan.papd:id/title_back_icon", 1) el.click()
def test_02_of_102(self): u'''用例test_02_of_102的操作步骤''' Screencap.GetScreen(time.time(), devices, "test_02_of_102的描述") t = 1 self.assertEquals(2, t)