Page 1 of 1

Ranorex Method for Connected Devices

Posted: Thu Mar 24, 2016 12:41 pm
by zivshapirawork
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

Re: Ranorex Method for Connected Devices

Posted: Fri Mar 25, 2016 11:18 am
by asdf
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

Re: Ranorex Method for Connected Devices

Posted: Sun Mar 27, 2016 5:05 am
by zivshapirawork
Thanks asdf :D that is correct.