app launch timeout

Mobile Testing, Android App Testing.
prajakta
Posts: 2
Joined: Mon Mar 09, 2015 3:42 pm

app launch timeout

Post by prajakta » Tue Mar 10, 2015 8:56 am

Hi Ranorex team,

I am using Ranorex 5.3 studio. With Samsung s5 on windows 8. Device is connected successfully on which instrumented app is deployed successfully. When i try to record it shows cannot launch app, "Failed to start the app as app started event was not received within timeout 00:01:00" but on device the app is launched.
I have changed the settings for connect timeout and remote call timeout to 1m each.

I see "no app running" in front of the device selected too.

Please help to proceed further.

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

Re: app launch timeout

Post by Support Team » Thu Mar 12, 2015 3:02 pm

Hi prajakta,

May I also ask you which Android version you are using and if you instrumented the app with Ranorex 5.3?
How is your device connected to your machine, with WiFi or USB?
Can you see your instrumented app listed in the Ranorex service app?
By the way, which Java version is installed on your machine?

Thanks,
Markus

LedzuppasS
Posts: 1
Joined: Sat Mar 14, 2015 1:21 pm

Re: app launch timeout

Post by LedzuppasS » Sat Mar 14, 2015 1:22 pm

Hi there, Did you manage to fix your problem in the end?

gilbar16
Posts: 109
Joined: Wed Mar 26, 2014 6:23 pm

Re: app launch timeout

Post by gilbar16 » Mon Mar 16, 2015 11:29 pm

Hello,

I am also having the same issue.
Looks like it tries to launch app 2x then the same error.

If I use the sample app, MiniKeepass, Ranorex launces it successfully and I was able to record things from the iPad.
At Runtime though, you get the same timeout error.

How do you take care of this issue? Is this happening only on Evaluation Copy of Ranorex 5.3?

Thanks.
Gilbert

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

Re: app launch timeout

Post by Support Team » Wed Mar 18, 2015 4:17 pm

Hi,

We unfortunately haven't gotten a response from prajakta about the issue or if he was able to solve it.

That the app launches twice on iOS is intended as described here: App launching twice.

Have you tried increasing the timeouts for Mobile in the Plugins tab of the Ranorex Settings window?
The original post was about Android, so may I ask you to send us an email with the information requested in my first post to [email protected]?

Thanks,
Markus

piotrb
Posts: 5
Joined: Fri May 08, 2015 12:41 pm

Re: app launch timeout

Post by piotrb » Tue May 19, 2015 11:40 am

I have the same issue with iOS application. When I try run application I get fail for test case because of timeout but application is correctly run on mobile device. And the message from ranorex report is following:

"Failed to start app 'com.---.service.dev' because the app started event was not received within the specified timeout of '00:00:30 (+00:00:13)'.
Upłynął limit czasu operacji.
Show/Hide Stacktrace
w Ranorex.Plugin.Mobile.Device.MobileDevice.WaitForAppStartedEvent(AppInformation appInfo, TimeSpan timeout, TimeSpan waitTimeCorrection) w VitosoftAppTestSuite.Tests.ConnectivityTests.RunApplication.Ranorex.Core.Testing.ITestModule.Run() w z:\---vitosoftapp-ranorex\Source\VitosoftAppTestSuite\VitosoftAppTestSuite\Tests\ConnectivityTests\RunApplication.cs:wiersz 33 w Ranorex.Core.Testing.TestSuiteModule.RunInternal(DataContext parentDataContext)"

It doesn't matter what time is set for connection timeout (in this case 30 s). In 33 row is executed this part of code: "Host.Local.RunMobileApp(deviceName, _bundleId.BundleId);". I also attached screenshot from ranorex services log.

I work with Ranorex Studio 5.3.2.
iOS version 8.2.
Windows 7 64 bit.
Last edited by piotrb on Fri May 22, 2015 12:29 pm, edited 1 time in total.

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

Re: app launch timeout

Post by Support Team » Wed May 20, 2015 4:22 pm

Hi piotrb,

Is you device connected via USB or WiFi?
And you have already tried to set the timeout to a higher value, like 1 minute? If not, please give it a try.
Do you just have this problem on a specific machine or on others as well?

Regards,
Markus

piotrb
Posts: 5
Joined: Fri May 08, 2015 12:41 pm

Re: app launch timeout

Post by piotrb » Fri May 22, 2015 12:25 pm

Hi Markus,

of course I have tried to set timeout to a higher value, even up to 3 minutes, but it didn't work. Finally I set higher time values in Ranorex Services installed on iPad and now everything works fine.

Thanks for your answer,

Piotr B.

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

Re: app launch timeout

Post by Support Team » Tue May 26, 2015 7:12 pm

Hi Piotr,

I am glad it works now :).
May I ask you to share which timeout you changed? This may also be useful for others as well :).

Thanks,
Markus

piotrb
Posts: 5
Joined: Fri May 08, 2015 12:41 pm

Re: app launch timeout

Post by piotrb » Wed Jul 22, 2015 8:18 am

Sorry for my absence and delayed answer but temporarily I am involved in two project.
So I set times as following:

Launch App Delay (ms): 100 - it works fine also with value - 0
Close App Callback Delay (ms): 100 - it works fine also with value - 0
Send App Command Timeout (ms): 30000
Message display duration (ms): 1000 - but it can be default value
Maximum disable Events Duration (ms): 5000
Maximum Log File Size (kB): 500
Log Level: Debug

Service version: 2.0.2
iOS: 8.3

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

Re: app launch timeout

Post by Support Team » Thu Jul 23, 2015 2:06 pm

Hi Piotr,

Thanks for sharing.

Regards,
Markus

User avatar
sandamal
Posts: 28
Joined: Wed Jul 08, 2015 7:50 am

Re: app launch timeout

Post by sandamal » Thu Jan 05, 2017 10:02 am

piotrb wrote:Sorry for my absence and delayed answer but temporarily I am involved in two project.
So I set times as following:

Launch App Delay (ms): 100 - it works fine also with value - 0
Close App Callback Delay (ms): 100 - it works fine also with value - 0
Send App Command Timeout (ms): 30000
Message display duration (ms): 1000 - but it can be default value
Maximum disable Events Duration (ms): 5000
Maximum Log File Size (kB): 500
Log Level: Debug

Service version: 2.0.2
iOS: 8.3
hi from where I can change these settings ??

User avatar
N612
Posts: 135
Joined: Mon Jul 11, 2016 4:01 pm

Re: app launch timeout

Post by N612 » Fri Jan 06, 2017 9:10 pm

sandamal wrote:hi from where I can change these settings ??
These settings can be found in the Ranorex Service App on the device itself (Info Tab)

moutasem
Posts: 4
Joined: Thu Mar 16, 2017 11:34 am

Re: app launch timeout

Post by moutasem » Thu Mar 16, 2017 11:41 am

i have the same issue on Android device version 6.0.0 and the application is instrumented successfully, using the latest version of ranorex.
my devise is connected via WiFi.
and i see my instrumented app listed in the Ranorex service app.
and using java version 7

moutasem
Posts: 4
Joined: Thu Mar 16, 2017 11:34 am

Re: app launch timeout

Post by moutasem » Thu Mar 16, 2017 2:10 pm

These settings can be found in the Ranorex Service App on the device itself (Info Tab)

already see the post, but there is no any tab on the Ranorex Service App on my device