def test_300_tns_run_on_specific_device(self): Adb.open_home(device_id=self.emu.id) Adb.open_home(device_id=self.android_device.id) result = Tns.run(app_name=self.app_name, platform=Platform.ANDROID, device=self.android_device.id) # Wait for logs strings = TnsLogs.run_messages(app_name=self.app_name, platform=Platform.ANDROID, run_type=RunType.UNKNOWN) TnsLogs.wait_for_log(log_file=result.log_file, string_list=strings, timeout=300) # Verify it looks properly on device self.android_device.wait_for_text(text=Changes.JSHelloWord.JS.old_text) # Verify not working on emulator assert Changes.JSHelloWord.JS.old_text not in self.emu.get_text() assert self.emu.id not in File.read(result.log_file)
def setUp(self): TnsTest.setUp(self) Adb.open_home(device_id=self.android_device.id)
def setUp(self): TnsTest.setUp(self) Adb.open_home(self.emu.id) Adb.clear_logcat(self.emu.id) if Settings.HOST_OS is OSType.OSX: Simctl.stop_all(self.sim)
def setUp(self): TnsTest.setUp(self) Adb.open_home(self.emu.id) Adb.clear_logcat(self.emu.id)