Page 1 of 1

Instrumentation Failure.

Posted: Wed Apr 28, 2021 11:59 am
by theraviz
I have a new mobile app to automate, but when I try to instrument that I am getting the below error.

The developers has confirmed that the apk is Non obfuscated and the API version is 21.
Capture.JPG
What to do next?

Re: Instrumentation Failure.

Posted: Wed Apr 28, 2021 12:26 pm
by odklizec
Hi,

I'm afraid, it's impossible to tell what's wrong without seeing the app. I would suggest to start with instrumentation wizard settings...
Instrumentation.png
Enable for example "Debug" option and see, if there is something interesting in instrumentation log. Also, you may try to enable Multidex, Static and Redistribute smali options.

If nothing, helps, you will have to contact Ranorex support. But they may need access to the apk in question. Without analyzing it, there is almost no chance to help with this kind of error.

Re: Instrumentation Failure.

Posted: Thu Apr 29, 2021 9:26 am
by theraviz
Hello Pavel,

Than you for the reply. I have already contacted the support and waiting reply.

By the way I have tried the advance setting (Different combination) but of no luck. I am getting the below error message.


Error Message :

System.InvalidOperationException: Failed to deploy the application via USB. adb: failed to install C:\Users\sd242\Documents\Ranorex\InstrumentedApk\NBK-IBG-instrumented.apk: Failure [INSTALL_FAILED_VERSION_DOWNGRADE]

at Ranorex.Plugin.Mobile.Tools.Android.AndroidUsbDeploymentService.Deploy(String apkFilePath, String deviceInstance, IToolConfig config)
at Ranorex.Plugin.Mobile.RxIntegration.Instrumentation.AndroidWorker.Deploy(String packageName, String toDeploy)
at Ranorex.Plugin.Mobile.RxIntegration.Instrumentation.AndroidWorker.Run()
at Ranorex.Controls.AndroidInstrumentProgressPage.bgw_DoWork(Object sender, DoWorkEventArgs e)

Re: Instrumentation Failure.

Posted: Thu Apr 29, 2021 9:36 am
by odklizec
Hi,

Try to uninstall the existing app from Android device, before instrumenting and installing this new one. Check this post about INSTALL_FAILED_VERSION_DOWNGRADE error...
https://stackoverflow.com/questions/138 ... -downgrade

Re: Instrumentation Failure.

Posted: Thu Apr 29, 2021 10:13 am
by theraviz
Thank you :) It helped!