Instrumentation fails for Android APIDemos sample app

Mobile Testing, Android App Testing.
piotrn
Posts: 16
Joined: Fri Mar 25, 2011 3:04 pm

Instrumentation fails for Android APIDemos sample app

Post by piotrn » 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]
RanorexInstrumentationError.jpg
RanorexInstrumentationError.jpg (42.26 KiB) Viewed 1698 times
[/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

piotrn
Posts: 16
Joined: Fri Mar 25, 2011 3:04 pm

Re: Instrumentation fails for Android APIDemos sample app

Post by piotrn » Thu Sep 12, 2013 3:40 pm

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Instrumentation fails for Android APIDemos sample app

Post by Support Team » Fri Sep 13, 2013 3:32 pm

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)
.
Image

nomibucha
Posts: 1
Joined: Thu Oct 31, 2013 11:39 am

Re: Instrumentation fails for Android APIDemos sample app

Post by nomibucha » Fri Nov 01, 2013 11:11 am

thanks for the sharing