Instrumentation failed and Failed to start the app
Posted: Wed Oct 23, 2013 10:35 am
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.
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.