Unable instrument and deploy my app

Mobile Testing, Android App Testing.
Posts: 1
Joined: Tue Jul 07, 2015 3:02 am

Unable instrument and deploy my app

Post by phoenix.law » Tue Jul 07, 2015 3:28 am

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:
Java version is : 1.7.0-ea

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

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA

Re: Unable instrument and deploy my app

Post by Support Team » Wed Jul 08, 2015 10:34 am

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.