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
Sylus,..
Ranorex Method for Connected Devices
Re: Ranorex Method for Connected Devices
Hey Sylus,
I don't know if this is the solution, but I think you could use the following code:
Kr,
Bart
I don't know if this is the solution, but I think you could use the following code:
Code: Select all
foreach(var endpoint in Ranorex.Core.Remoting.RemoteServiceLocator.Service.AllKnownEndpoints)
{
Host.Local.RunMobileApp(endpoint.RemoteInfo.DisplayName, "YOURAPPNAME");
}
Bart
Re: Ranorex Method for Connected Devices
Hi,Sylus wrote:
I want to dynamically check the number of connected devices to later work with each custom writing app on my list. Need help here.
You may also try this, if you need to get a list of all enabled devices: insert this line in the usercode method
Code: Select all
var DeviceList = RemoteServiceLocator.Service.AllKnownEndpoints;