Creating an AFT suite for mobile tests
When you want to run a single mobile test on multiple devices that are hosted on a local computer or remote agent computer, you can create an Accelerated Functional Test suite (AFT) suite for mobile tests. If you have multiple mobile tests, then you can create a group for each test to run on a different set of devices in an AFT suite.
- Connected the devices through a USB cable and configured the emulators or simulators on the computer that runs IBM® DevOps Test UI (Test UI) or the remote agent computer.
- Been aware of the following details:
- The IP address of the UI Test Agent.
- The port number of the UI Test Agent.Tip:You can hover the cursor over the System Tray to verify that the UI Test Agent is running and also view the port it uses.
To run the tests as an AFT suite, you must create an XML file where you can specify the test details. You can use this XML file to run these tests anytime later and you can also add more tests, and devices to extend the tests.
| Device name | Device id format |
|---|---|
| Android emulator | Emulator:<Name of Android emulator with the space replaced
with underscore> For example, if the emulator name is Pixel 2 API 30, then device id is Emulator:Pixel_2_API_30 |
| Android real device | Android:<Name of Android real device with the space replaced
with underscore> For example, if the real device name is Pixel 4, then device is Android:Pixel_4 |
| iOS simulator | Simulator:<Name of iOS simulator_iOS version> For example, if the iOS simulator name is iPhone 11 Pro and iOS version is 14.4, then device id is Simulator:iPhone 11 Pro_14.4 |
| iOS real device | iOS:<Name of iOS device_iOS version_UUID> For example, if the iOS real device name is My iPhone, iOS version is 14.4, and device UUID is 445f47e79c803c95cd8ef4f2429c61e0b032abdc, then device id is iOS:My iPhone_14.4_445f47e79c803c95cd8ef4f2429c61e0b032abdc |
- The AFT suite must contain either Android tests or iOS tests.
- The AFT suite must contain only mobile tests or a compound test that contains only mobile tests.
- You cannot run an AFT suite that contains one or more mobile tests with a compound test if that compound test contains a mix of mobile and web UI tests.
- Each group can contain only one location. You can use multiple groups to run tests on multiple locations. You cannot have multiple groups for the same location.
- Each group can contain either mobile test scripts only or a compound test that contains mobile test scripts.
You have created an AFT suite to run mobile tests.