In-test suite loop through devices in a table

Before reading this article, consider reading the articles about setting up data tables and using them in test suites for more information.

In a Perfecto Test Suite, a Loop can be used for 'Repeat' OR 'DataTable' for a certain variable for iterative and other functions. This is the format of the Test Suite:

Copy
<SuiteName>
    Some Script Execution(s) [OPTIONAL]
    Loop (<PARAMETER>)
        Samsung_Device1_......
        Samsung_Device2_......
        IPhone_Device3_.........

In a Test Suite, add a Loop, and under the loop, add all the Test Scripts that you want to run within that Loop, as shown in the following image.

Double-click the Loop. You will notice that under Parameter, there is a option to select the Datatable and its Variable name (screen shots below). 

           

Click OK and then File > Save. Now it uses a Loop and devices defined in the data table. Each script in the Loop can use a device or multiple devices from the data table for testing.