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
Instrumentation fails for Android APIDemos sample app
Instrumentation fails for Android APIDemos sample app
You do not have the required permissions to view the files attached to this post.
Re: Instrumentation fails for Android APIDemos sample app
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
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
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Instrumentation fails for Android APIDemos sample app
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)
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
thanks for the sharing