Page 1 of 1

[iOS] Stop and Start Ranorex service from computer

Posted: Mon Nov 30, 2015 4:37 am
by phoenixnghi
Hi everyone,

Sometimes the computer cannot communicate with the phones, although Ranorex service is still running in foreground (Android)
And on iOS, sometimes while executing the test cases, the phone goes back to homescreen suddently, then.. connection lost

For Android, I created a cronjob to restart Ranorex service by adb (without root)
But on iOS, I don't know how to do that (without jb)

Please help me

Ranorex: 5.4.4
iPod gen 5 (iOS 8.2)
SS Note 2 (Android 4.4.2)
Service:
- Android: 1.8.3
- iOS: 2.1.1

Re: [iOS] Stop and Start Ranorex service from computer

Posted: Mon Nov 30, 2015 12:15 pm
by phoenixnghi
It seems my problem is similar to this topic
ranorex.com/forum/runmobileapp-and-closeapplication-not-working-on-ios-9-t8656.html
Close Application:
My app gets removed from the foreground when I call the Host.Local.CloseApplication(), but it doesn't return to the Ranorex Service App. It goes back to the iPhone home screen. At this point, I can't relaunch my app since the Ranorex Service App is not in the foreground.
But in my case, it goes back to homescreen in the middle of the test case

Re: [iOS] Stop and Start Ranorex service from computer

Posted: Tue Dec 01, 2015 3:16 pm
by Support Team
Hiphoenixnghi,

May I ask you if you could provide additional information?
Concerning Android:
Generally, I’d recommend using WiFi as connection type because it is more reliable than USB. May I ask you if the problem also occurs when using WiFi?
Concerning iOS:
Does this problem occur on a specific action with your application or does it happen randomly?
Basically, if an application is closed unexpected and expected, the device should return to the Ranorex Service app.
Thank you in advance.

Regards,
Markus (S)

Re: [iOS] Stop and Start Ranorex service from computer

Posted: Wed Dec 02, 2015 11:57 am
by phoenixnghi
Android:
It's weird that Wifi is more stable than USB cable :?
Yes, I use WiFi all the time, the cable connection is nearly useless, thank God that Android support adb over WiFi, I restart Ranorex service every 2 hours, it seems stable day by day..

iOS:
It seems it occurs when I set value (text) for a search text box, then it returns to home screen

Thank you.

Re: [iOS] Stop and Start Ranorex service from computer

Posted: Fri Dec 04, 2015 11:25 am
by Support Team
Hi Hiphoenixnghi,

WiFi is more stable because USB uses ADB for connection the device to your computer. Unfortunately, ADB consumes quite a lot of resources which causes the unstable behavior.
Concerning the iOS issue
May I ask you if you could send us the application under test? This would allow us to reproduce the problem directly in our environment.
Thank you in advance.

Regards,
Markus (S)

Re: [iOS] Stop and Start Ranorex service from computer

Posted: Wed Dec 09, 2015 11:11 am
by phoenixnghi
Hello Markus (S),

Thanks for replying.
For Android app, it's really easy, just go to PlayStore and download the apk but unfortunately we cannot do the same for iOS, I cannot send you the ipa file because of our policy

Re: [iOS] Stop and Start Ranorex service from computer

Posted: Mon Dec 14, 2015 11:22 am
by Support Team
Hi Hiphoenixnghi,

Maybe we should continue the analysis of your problems directly by communicating via email.
Therefore, please send an email to [email protected]

Regards,
Markus (S)

Re: [iOS] Stop and Start Ranorex service from computer

Posted: Tue Dec 15, 2015 7:56 am
by phoenixnghi
Hi Markus,

Finally, I had to j/b the iPhones and run command

Code: Select all

open ranorex.RxServiceApp
via ssh to bring it foreground before running each build

Regards,

Re: [iOS] Stop and Start Ranorex service from computer

Posted: Wed Dec 16, 2015 1:10 pm
by Support Team
Hi Hiphoenixnghi,

Since we do not recommend jail breaking your devices I’d like you to get in touch directly. So we can analyze the problem directly with you.
Thank you for your understanding.

Regards,
Markus (S)

Re: [iOS] Stop and Start Ranorex service from computer

Posted: Tue Feb 09, 2016 5:46 pm
by tvu
Hi Phoenixnghi,
And on iOS, sometimes while executing the test cases, the phone goes back to homescreen suddently, then.. connection lost
Did you ever solve your iOS issue? I have been experiencing the same issue for months now.

Thanks.

Re: [iOS] Stop and Start Ranorex service from computer

Posted: Thu Feb 11, 2016 1:45 pm
by phoenixnghi
tvu wrote:Hi Phoenixnghi,
And on iOS, sometimes while executing the test cases, the phone goes back to homescreen suddently, then.. connection lost
Did you ever solve your iOS issue? I have been experiencing the same issue for months now.

Thanks.

Hi tvu,

Not yet, I had to use a workaround for this problem (pls see my post above)
Perhaps you need to cooperate with Support Team to analyze this issue, good luck :P
Due to my boss want a quick win for the smoke tests, then maybe Ranorex could be a strong software but I didn't have enough time to investigate more.