Highlighted
New Member.
459 views

How to change the mobile devices in UFT programmatically

I have scripted 100 scripts using one mobile device.  Also i did batch run all the scripts with that device.  Now i want to change the device with new one and do the batch run.  Please assist on how to change the mobile device in UFT programmatically and dynamically.

0 Likes
1 Reply
Highlighted
Trusted Contributor.
Trusted Contributor.

Re: How to change the mobile devices in UFT programmatically

HI Hasan Mohammed

Why you don't use device capability instead of using a specific device?  If you open Record and Run settings in UFT, there will be 2 different options to select device - Device capabilities and Specific Device.

Select Device by capabilites will allow you to pick up any device that match your criteria.  For example, set OS as Android and OS version is Later than 8.0.  The first device that match criteria will be used for your test.

Regards,

Chomchalida

0 Likes
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.