App launching twice

Mobile Testing, Android App Testing.
Aswini
Posts: 13
Joined: Tue Jun 03, 2014 2:49 pm

App launching twice

Post by Aswini » Thu Feb 26, 2015 2:13 pm

Hi,

Recently I've updated Ranorex version to 5.3 to use start and stop application feature for iOS apps. But app is launching twice always. Is this expected?
Even if we instrument the app using Ranorex studio, We are not able to see the running app in the device as Android.

Please reply and suggest the solution as we are in immediate need of it.

Thanks & regards,
Aswini

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: App launching twice

Post by Support Team » Fri Feb 27, 2015 4:43 pm

Hi Aswini,

Your observed behavior is normal since the app under test will be launched multiple times, because it needs to be reseted into initial state.

Regarding your second problem
I’m unfortunately not sure if I got your question correctly. May I ask you to describe in more detail what you mean with
Even if we instrument the app using Ranorex studio, We are not able to see the running app in the device as Android.
Thank you in advance.

Regards,
Markus (S)
.
Image

lstauffer
Posts: 9
Joined: Fri Jan 23, 2015 2:31 pm

Re: App launching twice

Post by lstauffer » Thu Mar 05, 2015 5:16 pm

I am also seeing odd behavior with our iOS app.

I instrumented the .ipa via Ranorex Instrumentation Wizard, and had success. I am able to manually open the app on the iPhone I'm testing (iPhone 6) with success.

But when I try to record a test, the app either doesn't open, or opens twice.

I have just recently upgraded from Ranorex 5.2 to 5.3 in the last 2 days.

Any suggestiosn?

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: App launching twice

Post by Support Team » Fri Mar 06, 2015 9:52 am

Hi lstauffer,

As mentioned in the previous posting, the multiple start of your application is an expected behavior. It is necessary to reset the application into initial state.

Regarding the other issue
Please ensure that the Ranorex Service application is running and visible when starting your application under test with Ranorex Studio.

Regards,
Markus (S)
.
Image

lstauffer
Posts: 9
Joined: Fri Jan 23, 2015 2:31 pm

Re: App launching twice

Post by lstauffer » Fri Mar 06, 2015 2:25 pm

Ahhh . . I wasn't keeping the Ranorex service app visible. Since doing that, the app does start as expected.

Thanks!!

adrouechi
Posts: 1
Joined: Mon Aug 04, 2014 12:49 pm

Re: App launching twice

Post by adrouechi » Tue Mar 10, 2015 3:11 pm

Hello,

I'm folowing this topic because I need more precision to understand the issues :

- You said it necessary to reset the application into initial state but it doesn't explain why the reset process can't be done within one step only. Could you give more precision about the aims of both steps when the app under test is restarted.

- concerning the App servie it's seem to be a huge diffenre with Android platform where Ranorex service app just need to be open in Android. it could be a blocking issue in a IC processes thtat launching a test suite , what about crashs issues with the app under test? The device wont display the Service app in this kind of pb and no other test can be executed then.
Is there any alternative ?

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: App launching twice

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

Hi adrouechi,

Add1
Unfortunately it is necessary to start the application and close the application once before the application can be started again. Therefore, two start events are needed. This also ensures that the application was reset to its initial state correctly.

Add2
iOS is a very restrictive system and it is unfortunately not possible to run this service application in the background. As already stated here our service needs to be running and visible to establish a connection to Ranorex.

I hope this information helps you to understand our new iOS service application.

Regards,
Markus (S)
.
Image