How to execute a test case on multiple mobile platforms?

This article is intended for QAS users who want to execute test cases on multiple mobile platforms through the CI/CD mode. Refer to the below steps:

Step 1: Create a resource directory for separate emulators/platforms in the directory: project_root > resources > {platform}. Set platform capabilities in the env.properties as per your requirement. (Sample example - android1, android2).

Android 1 - sample env.properties file:

Android 2 - sample env.properties file:

Step 2: Make the following changes in the android_config.xml file -

  • Add a new test tag under the Android test suite with similar classes. (Make sure the test names are different. Sample example - Android Test(BDD), Android Test(BDD2)).

  • Add the test resources parameter that directs to the reference resource path for each emulator/platform.

sample android_config.xml file:

Step 3: Perform the CI/CD execution from the terminal.

For any further queries, please contact QMetry Support.