Set up parallel execution

Learn how to set up parallel execution in Scriptless Mobile. Running a test simultaneously on multiple devices is helpful in complex testing scenarios.

Before setting up parallel execution, make sure to create the following:

  • An embeddable test that covers your use case, including all steps required to perform the task. This test will be embedded in the main test.

  • A DataTable that lists all devices on which you want to execute the test simultaneously. Create a column that includes all devices on which you want to execute the test.

  • The main test that will include the other test as an embedded test.

To learn how to run a test on multiple devices, watch this video or review the instructions following the video.

To run a test simultaneously on multiple devices:

  1. In the test editor, open the main test you created.

  2. On the top toolbar, click the Configure test variables button

  3. In the Configure test variables dialog box, do the following:

    1. Click Add New Variable.

    2. Select the type of the variable as DataTable.

    3. (Optional) Enter a name for the variable.

    4. As the value for the variable, click Select DataTable.

    5. In the Load DataTable from repository dialog box, do the following:

      1. Browse to the DataTable you created and select it.

      2. Click LOAD.

    6. Click APPLY.

  4. In the left pane, click Embeddable Tests and navigate to the location of the embeddable test you created.

  5. Double-click the test to add it to the main test.

  6. In the test editor, if needed, drag the embedded test to the appropriate location in the main test.

  7. Select the embedded test and, on the top toolbar, click the Create a loop button .

  8. Double-click the loop created in your test.

  9. In the Configure Loop dialog box, do the following:

    1. Select the DataTable option.

    2. Select the DataTable to be added to the loop.

    3. Click APPLY.

  10. Double-click the embedded test to set the parameters.

  11. In the parameters dialog box, do the following:

    1. For the DUT parameter, select the Usage as DataTable

    2. Select your datatable as Value.

    3. Select the name and column for the datatable.

    4. To enable the Script execution mode parameter, select the checkbox to the left of the parameter name.

    5. Select the Value as Async (seperate).

    6. Click APPLY.

  12. On the top toolbar, click the Execute test button .

  13. In the Enter runtime values dialog box, verify that your datatable is selected as the value for the DUT variable. Then click RUN.