Ranorex Method for Connected Devices

Mobile Testing, Android App Testing.
zivshapirawork
Posts: 65
Joined: Wed Sep 24, 2014 7:47 am
Location: Israel

Ranorex Method for Connected Devices

Post by zivshapirawork » Thu Mar 24, 2016 12:41 pm

Hi

I have several Jenkins slaves, each with a different Number of devices connected to them via "Ranorex Devices"(both iOS and android).

I would like to write code that can run on any device (example openApp) and it should work by first identifying the connected devices dynamically, and then work on each device on the list.

Is there a method in the Ranorex API to return the list of connected devices? (I could not find one)

thanks
Ziv

asdf
Posts: 174
Joined: Mon Mar 21, 2016 3:16 pm

Re: Ranorex Method for Connected Devices

Post by asdf » Fri Mar 25, 2016 11:18 am

Hey zivshapirawork,

To receive a list of all enabled devices, simply insert the following line in a usercode method.
var DeviceList = RemoteServiceLocator.Service.AllKnownEndpoints;
I hope i could help you.

Regards,
asdf

zivshapirawork
Posts: 65
Joined: Wed Sep 24, 2014 7:47 am
Location: Israel

Re: Ranorex Method for Connected Devices

Post by zivshapirawork » Sun Mar 27, 2016 5:05 am

Thanks asdf :D that is correct.