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:
- 
                                                    In the test editor, open the main test you created. 
- 
                                                    On the top toolbar, click the Configure test variables button  
- 
                                                    In the Configure test variables dialog box, do the following: - 
                                                            Click Add New Variable. 
- 
                                                            Select the type of the variable as DataTable. 
- 
                                                            (Optional) Enter a name for the variable. 
- 
                                                            As the value for the variable, click Select DataTable. 
- 
                                                            In the Load DataTable from repository dialog box, do the following: - 
                                                                    Browse to the DataTable you created and select it. 
- 
                                                                    Click LOAD. 
 
- 
                                                                    
- 
                                                            Click APPLY. 
 
- 
                                                            
- 
                                                    In the left pane, click Embeddable Tests and navigate to the location of the embeddable test you created. 
- 
                                                    Double-click the test to add it to the main test. 
- 
                                                    In the test editor, if needed, drag the embedded test to the appropriate location in the main test. 
- 
                                                    Select the embedded test and, on the top toolbar, click the Create a loop button  . .
- 
                                                    Double-click the loop created in your test. 
- 
                                                    In the Configure Loop dialog box, do the following: - 
                                                            Select the DataTable option. 
- 
                                                            Select the DataTable to be added to the loop. 
- 
                                                            Click APPLY. 
 
- 
                                                            
- 
                                                    Double-click the embedded test to set the parameters. 
- 
                                                    In the parameters dialog box, do the following: - 
                                                            For the DUT parameter, select the Usage as DataTable 
- 
                                                            Select your datatable as Value. 
- 
                                                            Select the name and column for the datatable. 
- 
                                                            To enable the Script execution mode parameter, select the checkbox to the left of the parameter name. 
- 
                                                            Select the Value as Async (seperate). 
- 
                                                            Click APPLY. 
 
- 
                                                            
- 
                                                    On the top toolbar, click the Execute test button  . .
- 
                                                    In the Enter runtime values dialog box, verify that your datatable is selected as the value for the DUT variable. Then click RUN.