Page 1 of 1

Instrumentation fails for Android APIDemos sample app

Posted: Thu Sep 12, 2013 9:59 am
by piotrn
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]
RanorexInstrumentationError.jpg
[/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

Re: Instrumentation fails for Android APIDemos sample app

Posted: Thu Sep 12, 2013 3:40 pm
by piotrn
The problem is the deployment timeout setting.

The Instrumentation Wizard wants to run as an administrator user but the deployment timeout setting is updated in the Ranorex Spy Settings Plugins that is run as another user.
So basically the Ranorex Spy Settings Plugins deployment timeout does not propagate properly to the Instrumentation Wizard.

Cheers

Re: Instrumentation fails for Android APIDemos sample app

Posted: Fri Sep 13, 2013 3:32 pm
by Support Team
Hello,

Which setting for deploying do you mean exactly?

Have you tried to deploy your app using the action 'Deploy Android App' in a Recording module?
You could change the 'Value' for 'Timeout' in the properties of this action.

Have you tried to deploy a different app (e.g. Android sample) to your emulated device?
Could you please try it out with a new emulated or physical device?

Thanks in advance.

Regards,
Markus (T)

Re: Instrumentation fails for Android APIDemos sample app

Posted: Fri Nov 01, 2013 11:11 am
by nomibucha
thanks for the sharing