Page 1 of 1

Instrumentation failed and Failed to start the app

Posted: Wed Oct 23, 2013 10:35 am
by superyl
I am new at Ranorex and not such familiar with this tool rigth now. I'm testing an android app which our company developed.Ronorex version is 4.1.0.25227. I have two issues:

1)At first,I install the 410.apk on emulator(android 4.0.3), then I instrument the app on the emulator.But it always says:
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 the details:
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)

How can I solve it?

2)I instrument the app on the mobile(android 4.0.4).When upgrade the app(uninstall the old app and install the new app manually),the script which I recorded before can not identify the UI object.It always says:
Failed to start because no app started event was received. Maybe there was an error while launching the application on the device.
Show/Hide Stacktrace
at Ranorex.Plugin.Mobile.MobileDevice.StartAndInitDeviceApplication (AppInformation app) at Ranorex.Plugin.Mobile.MobileDevice.StartApplication (AppInformation app) at Ranorex.Host.RunMobileApp(String deviceDisplayName, String appName) at dlvwork.Recording1.Ranorex.Core.Testing.ITestModule.Run()
location c:\Users\Administrator\Documents\Ranorex\RanorexStudio Projects\dlvwork\dlvwork\Recording1.cs:line 93 at Ranorex.Core.Testing.TestSuiteModule.RunInternal(DataContext parentDataContext)

How can I solve it?

Thanks.

Re: Instrumentation failed and Failed to start the app

Posted: Thu Oct 24, 2013 2:27 pm
by Support Team
Hello superyl,

Welcome to Ranorex :-)

1) Could you please try to instrument your app with our current version (4.1.1)?
You may download it from our download archive. Is it possible to instrument other APK files (e.g. KeePass) on your emulated device? Is it possible to test it with a physical device?

2) Please note that if you uninstall your app and install an updated version of your app on your device, you would need to instrument this updated version as well. You will find more information about Android Testing in our User Guide.

Thanks in advance.

Regards,
Markus (T)