Executing different steps of same test case on different platforms.

In QMetry Automation Studio, a user can execute the same feature file on different platforms like Web, MobileWeb, Andriod using CI/CD. Here is how you can set up your QAS project to achieve it:

Pre-requisites:

  1. The project should be created by selecting the desired platforms as shown in the below screenshot:

  2. The platform environments should be set up correctly. For detailed steps, refer to QAS help.

Follow the below-recommended steps to execute the same feature file on different platforms. We are using a Web and Android hybrid project for our demonstration.

Step 1: Once you create your project, record the test case for the required platforms.

Step 2: Make sure that the proper driver capabilities with correct formatting are set in the properties file. In this scenario, we have set up the Android and Web capabilities for their respective ‘env.properties’ files with the default driver is set to chrome driver as shown in the below screenshot:

Step 3: The "Switch to" command is used to change the platform for specific test steps of a current execution. To switch the driver in a feature file, use the "switch to" command as shown in the screenshot:

Step 4: Find attached sample executable QAF project with one feature file that has 3 steps to be executed on - Web > Mobile App > Web platforms. Make changes to your project by referring to the Config, Properties, loc, and feature file from the attached project.

For any further queries, please contact QMetry Support.