Page 1 of 1

Unable instrument and deploy my app

Posted: Tue Jul 07, 2015 3:28 am
by phoenix.law
I'm trying instrument two apk files on Samsung Galaxy S3(Android 4.3), one is ok, the ohter is failed.
I get the following errors:
Error Occurred

Instrumentation failed...

Please make sure that
- The APK is not obfuscated.
- You are using API level 8 or above.
- No uninstrumented APK version is installed on the device.
And details are:
System.TimeoutException: Process did not finish within the specified timeout of '00:02:00'.
at Ranorex.Core.ProcessRunner.RunShortProcess(Boolean showWindow, TimeSpan timeout, IList`1 appendToPath)
at Ranorex.Plugin.Mobile.Tools.Android.Instrumentation.ApkFileInstrumenter.DecompileApkFile(String apkFilePath, Boolean showProcessWindows, IPathService pathService, InstrumentApkOptions deployOptions)
at Ranorex.Plugin.Mobile.Tools.Android.Instrumentation.ApkFileInstrumenter.Instrument(String apkFilePath, Int32 port, InstrumentApkOptions deployOptions, BackgroundWorker bgw)
at Ranorex.Controls.Instrumentation.Workers.AndroidWorker.Run()
at Ranorex.Controls.AndroidInstrumentProgressPage
I followed all the points described in user guide.
My Ranorex version is: 5.3.2.23378
Java version is : 1.7.0-ea

Can you help me to solve this problem, I will quite appriciate for this. Thanks!

Re: Unable instrument and deploy my app

Posted: Wed Jul 08, 2015 10:34 am
by Support Team
Hello phoenix.law,

could you please try to instrument your apps with our latest version 5.4, which was released this week and can be found in the download archive.

The timeout for instrumentation is initially set up to two minutes. For large applications the instrumentation process could take a little longer depending on the processing power of your machine. Therefore, you are able to adjust this timeout value in the Global Settings of Ranorex Studio (Global Settings -> Plugins -> Mobile -> Instrument timeout).

Please try to increase the timeout value and let us know if this solves your issue.

Regards,
Johannes