Page 1 of 1

Failed to start app '#AppName#'

Posted: Mon Feb 08, 2016 2:13 pm
by alan722
Hi Guys,

Mobile automation is new to me. My current situation is this.

Starting an app through ranorex will work sometimes and sometimes it own't work.

It throws this error "Failed to start app '#app name#' because the app started event was not received within the specified timeout of '00:00:10 (+00:00:16)"

Any idea why this will happen time to time?

Below are the specifications:

IOS Mobile Automation
Iphone 5s
IOS version 9.2
Ranorex version 5.4.5

Re: Failed to start app '#AppName#'

Posted: Mon Feb 08, 2016 6:35 pm
by tvu
I have a few questions:
  • How are you starting the app?
  • Is '#AppName#' supposed to be a variable for your app? Variables in Ranorex repository items must be preceed with a $ symbol. So it should be $AppName without the quotes.
  • Do you have multiple devices attached to your machine? If so, you need at add a variable to identify the device name. The device name is the exact display name of your device listed under Manage Devices. This includes leading and trailing white spaces.
Here's an example of the base repository item for a mobile device given an app id of "com.myCompany.appName" and a variable to specify the mobile device.

/mobileapp[@title='come.myCompany.appName' and @devicename=$mobileDevice]

How this helps.

Re: Failed to start app '#AppName#'

Posted: Tue Feb 09, 2016 8:48 am
by alan722
Hi there,

Sorry should've been more specific. I do have the actual application name in there. I just used #AppName# to make it generic for this post.

I only have one device attached. The current issue is that now and then ranorex will throw the error I mentioned above which I have no idea why.

What I'm going to do for now is to try another IOS device using a different OS version to see if it's happening as well.

Re: Failed to start app '#AppName#'

Posted: Tue Feb 09, 2016 9:04 am
by alan722
One thing I forgot to mention is that I'm not using a debug build of the application.

Re: Failed to start app '#AppName#'

Posted: Thu Feb 11, 2016 1:43 pm
by Support Team
Hello alan722,

First, I would suggest trying to increase the Connect timeout in the Global Settings.

For example, please try to set the timeout to 30s.
mobile_settings.png
If this doesn't solve the issue, I would suggest using the WiFi connection, which is generally more reliable.

For further investigation, it would be great if you could send the corresponding IPA file to [email protected].

I look forward to hearing from you.

Sincerely,
Johannes