Verify device connection before continue on testing

Mobile Testing, Android App Testing.
User avatar
Posts: 28
Joined: Wed Jul 08, 2015 7:50 am

Verify device connection before continue on testing

Post by sandamal » Tue Feb 21, 2017 1:42 pm

below questions are in the context of android device connection (via USB) with Ranorex

1) Is there a method in ranorex to verify a given device is connected with ranorex using device id or name

Like Ranorex.checkdevice_connect('mytestdevice')

2) if device is not connected is there a method to retry the device , equivalent to pressing retry button in ranorex studio devices window. ?

3) if a device got disconnected what is the default retry duration in Ranorex ? (when test suit is running )


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

Re: Verify device connection before continue on testing

Post by Support Team » Fri Feb 24, 2017 2:54 pm

Hi Sandamal,

You can use the following lines to accomplish your intention
3. The interval, which is used to retry the connection is the KeepAliveInterval, which is defined in the OS itself.

I hope this information helps?.

Markus (S)