Use a DataTable as a parameter value

The command parameter of a test can use a DataTable as its value. In this case, an existing DataTable acts as the command's parameter value. Adding a DataTable to a command involves creating a loop, selecting the DataTable, and specifying the relevant DataTable column for the command parameter.

Requirements

To use a DataTable as a test command parameter in a loop, you must first:

Steps

  1. In the open test, expand the loop and select a command.

  2. In the command panel below the text editor, for any parameter, select the Usage value as DataTable.

  3. In the Value column, select the relevant DataTable name and Column from the available list.

    The Datatable name is the name of a variable of type DataTable.

    Scriptless Mobile provides a list of columns with a data type that matches the parameter data type. The column data type must always match the parameter data type.

  4. Click APPLY.