Instrumentation fails for Android APIDemos sample app
Posted: Thu Sep 12, 2013 9:59 am
Ranorex 4.1 installed on Windows 7
Android SDK installed: adt-bundle-windows-x86-20130729 (Android 4.3 API 18)
Android emulator device is running and there is an activated Ranorex Service on the device.
Instrumenting APIDemos.apk (with the Ranorex Instrumentation Wizard) fails with the provided stack trace:
System.TimeoutException: Process did not finish within the specified timeout of '00:01:00'.
at Ranorex.Core.ProcessRunner.RunShortProcess(Boolean showWindow, TimeSpan timeout, IList`1 appendToPath)
at Ranorex.Plugin.Mobile.DeploymentService.UsbDeploymentService.Deploy(String apkFilePath, String deviceInstance)
at Ranorex.Controls.Instrumentation.Workers.AndroidWorker.Run()
at Ranorex.Controls.AndroidInstrumentProgressPage.bgw_DoWork(Object sender, DoWorkEventArgs e)
[img] [/img]
Note that the APIDemos is initially removed from the Android device.
After the failed instrumentation the APIDemos app is available on the device again and it can be started. But Ranorex Spy cannot show the apps object structure.
The instrumentation procedure for the same APIDemos.apk worked fine with Ranorex 4.0.5
Regards
Android SDK installed: adt-bundle-windows-x86-20130729 (Android 4.3 API 18)
Android emulator device is running and there is an activated Ranorex Service on the device.
Instrumenting APIDemos.apk (with the Ranorex Instrumentation Wizard) fails with the provided stack trace:
System.TimeoutException: Process did not finish within the specified timeout of '00:01:00'.
at Ranorex.Core.ProcessRunner.RunShortProcess(Boolean showWindow, TimeSpan timeout, IList`1 appendToPath)
at Ranorex.Plugin.Mobile.DeploymentService.UsbDeploymentService.Deploy(String apkFilePath, String deviceInstance)
at Ranorex.Controls.Instrumentation.Workers.AndroidWorker.Run()
at Ranorex.Controls.AndroidInstrumentProgressPage.bgw_DoWork(Object sender, DoWorkEventArgs e)
[img] [/img]
Note that the APIDemos is initially removed from the Android device.
After the failed instrumentation the APIDemos app is available on the device again and it can be started. But Ranorex Spy cannot show the apps object structure.
The instrumentation procedure for the same APIDemos.apk worked fine with Ranorex 4.0.5
Regards