def test_play_url(self): L.i('\n =========> test_play_url, device: ' + self.deviceName, tag=TAG) self.operater.operate(PlayCaseUrl.step_右划侧栏, self.deviceName) self.operater.operate(PlayCaseUrl.step_URL菜单, self.deviceName) self.operater.operate(PlayCaseUrl.step_start, self.deviceName) self.operater.operate(PlayCaseUrl.step_CheckedTextView, self.deviceName) tools.sleep(3) self.operater.base_assert(PlayCaseQiyi.step_PLAYING断言) L.i(' <========= test_play_url\n', tag=TAG)
def get_android_devices(): android_devices_list = Shell.get_devices_list() if len(android_devices_list) == 0: Shell.connect_config_device() tools.sleep(1) android_devices_list = Shell.get_devices_list() L.i('get_android_devices %s ' % str(android_devices_list), tag=TAG) return android_devices_list
"ip": "192.168.1.53", "port": 5555 }) activity = activity.Activity({ "package": "com.jamdeo.tv.vod", "class": "com.hisense.base.MainActivity" }) device.connect() hppium = hppium.Hppium(device, activity) hppium.start_driver() try: tools.sleep(3) # widget = hppium.find_widget({ # "finder": consts.Finder.ID, # "value": "com.jamdeo.tv.vod:id/test_list" # }) # # if widget.find(): # print("find test item list.") # else: # exit(0) # # # FIXME: 以下代码还无法正常工作 # widget = widget.find_child({ # "finder": consts.Finder.XPATH, # "value": "//android.widget.TextView",