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:
-
Configure a test variable of type DataTable. To learn more, see Configure test variables.
Steps
-
In the open test, expand the loop and select a command.
-
In the command panel below the text editor, for any parameter, select the Usage value as DataTable.
-
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.
-
Click APPLY.