Random device selection when selecting devices from a pool

Idea ID 2700463

Random device selection when selecting devices from a pool

Hi!

While selecting devices by DeviceInfo (MobileLab.lockDeviceByInfo(DeviceInfo deviceInfo)) we ran into an issue of MC only choosing one specific device for the tests everytime. My assumption is that when presented with several devices it chooses the first one alphabetically by device IDs. This may cause one of the devices to be overused while others being rarely used at all.

Would it make sense to add some randomness in this selection or is there a specific reason to make it alphabetically?

4 Comments
Micro Focus Frequent Contributor
Micro Focus Frequent Contributor
Status changed to: Waiting for Votes
 
Micro Focus Expert
Micro Focus Expert
Status changed to: Needs Clarification

Did you tried to use Device Capability instead?

Gadzhi Respected Contributor.
Respected Contributor.

@evgenyk 

I couldnt find any info on the Leanft java sdk reference page, do you maybe have some infos on how to use "deviceCapabilities"?

Thank you!

Micro Focus Expert
Micro Focus Expert
Status changed to: Needs Clarification

lockDevice(DeviceDescription description, DeviceSessionOptions sessionOptions)

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.