Failed to start app '#AppName#'

Mobile Testing, Android App Testing.
alan722
Posts: 25
Joined: Mon Jan 12, 2015 1:34 pm

Failed to start app '#AppName#'

Post by alan722 » Mon Feb 08, 2016 2:13 pm

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

tvu
Posts: 195
Joined: Tue Apr 07, 2015 10:47 pm

Re: Failed to start app '#AppName#'

Post by tvu » Mon Feb 08, 2016 6:35 pm

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.

alan722
Posts: 25
Joined: Mon Jan 12, 2015 1:34 pm

Re: Failed to start app '#AppName#'

Post by alan722 » Tue Feb 09, 2016 8:48 am

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.

alan722
Posts: 25
Joined: Mon Jan 12, 2015 1:34 pm

Re: Failed to start app '#AppName#'

Post by alan722 » Tue Feb 09, 2016 9:04 am

One thing I forgot to mention is that I'm not using a debug build of the application.

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

Re: Failed to start app '#AppName#'

Post by Support Team » Thu Feb 11, 2016 1:43 pm

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
You do not have the required permissions to view the files attached to this post.