Use data tables in script automation

This article covers how data tables in Perfecto can be used in automation scripts. When you create data tables and add devices to them, you can use them in a Test Suite with the following:

  1. Under Script Variables, for Devices, select Type as DataTable and specify the location of the data table that you want to use for the scripts in this suite (as shown in the following images).

     

  2. Double-click a script in the Suite.

  3. For each device parameter of type Handset and usage datatable, for the value, select the variable name for the suite ('Devices' here) and the value as the column name in the data table.

    Notice lines 2 and 3 in the pop-up window. The two devices used in this script are defined from a data table. 

  4. Click OK and File > Save for this suite.

    Now these scripts use the data table mentioned above for any devices it runs the test on.