How to run XCUITest natively on Mobile Center hosted devices?

How to run XCUITest natively on Mobile Center hosted devices?

With Xcode 8, Apple has deprecated UIAutomation in favour of the XCUITest framework.

As XCTest and UI test recorder is an integral part of Xcode, setting up and implementing UI tests with it is pretty straightforward - this what drives the popularity of this framework in the iOS development/testing community. 

However, the question of managing the test bed of real mobile devices still remains valid. Also, the question is how those devices can be leveraged when XCUITest framework is used for test automation?

There are many articles of how to implement XCUITest execution on cloud or hosted devices, however Micro Focus Mobile Center is taking it to the next level with simplicity of the solution! This can be achieved thanks to DevAccess feature of Mobile Center, that virtually connects Mobile Center hosted device to the local workstation. 

Here is simple 2 steps "how to":

1. Use DevAccess feature to connect the device to your Mac machine, where the tests are exists: https://admhelp.microfocus.com/mobilecenter/en/3.1/Content/Dev-access.htm

2. Using XCode, use the virtually connected device from MC to execute the tests

Please check the attached video that demonstrates this capability.

 

Mobile Center also provides a capability to execute XCUITests in command-line mode, using Mac or even Windows or Linux! But this is another subject for the blog.

 

Labels (1)
Attachments

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
3 of 3
Last update:
‎2020-02-03 21:38
Updated by:
 
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.