[iOS] Stop and Start Ranorex service from computer

Ask general questions here.
phoenixnghi
Posts: 11
Joined: Thu Nov 26, 2015 10:34 am

[iOS] Stop and Start Ranorex service from computer

Post by phoenixnghi » Mon Nov 30, 2015 4:37 am

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
Last edited by phoenixnghi on Mon Nov 30, 2015 12:23 pm, edited 1 time in total.

phoenixnghi
Posts: 11
Joined: Thu Nov 26, 2015 10:34 am

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

Post by phoenixnghi » Mon Nov 30, 2015 12:15 pm

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

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

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

Post by Support Team » Tue Dec 01, 2015 3:16 pm

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)
.
Image

phoenixnghi
Posts: 11
Joined: Thu Nov 26, 2015 10:34 am

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

Post by phoenixnghi » Wed Dec 02, 2015 11:57 am

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.

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

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

Post by Support Team » Fri Dec 04, 2015 11:25 am

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)
.
Image

phoenixnghi
Posts: 11
Joined: Thu Nov 26, 2015 10:34 am

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

Post by phoenixnghi » Wed Dec 09, 2015 11:11 am

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

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

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

Post by Support Team » Mon Dec 14, 2015 11:22 am

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)
.
Image

phoenixnghi
Posts: 11
Joined: Thu Nov 26, 2015 10:34 am

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

Post by phoenixnghi » Tue Dec 15, 2015 7:56 am

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,

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

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

Post by Support Team » Wed Dec 16, 2015 1:10 pm

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)
.
Image

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

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

Post by tvu » Tue Feb 09, 2016 5:46 pm

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.

phoenixnghi
Posts: 11
Joined: Thu Nov 26, 2015 10:34 am

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

Post by phoenixnghi » Thu Feb 11, 2016 1:45 pm

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.