|Project items / Data sets|
Data sets are used to provide values for a sequence of action lines. To start such a sequence from within a test, use the use data set action.
At the end of the sequence of action lines, use the action repeat for data set. During the test run, this action causes execution to loop back to the use data set line for as long as there are more vectors from the data set available to be used.
The following example demonstrates how a data set can be used to enter a series of reservations for rental cars. In this example, the various steps in the registration process are followed for each vector supplied from the data set. In this case the values are only used as input, but a data set can also contain expected values, for comparison with actual results.
To apply the long filter (a filter named long, as specified in the data set from the earlier example), place it as a value in the filter argument of use data set. Now only those vectors matching this filter's criteria are used for the test.
Instead of using a filter by name, as defined in the data set file, you can also specify a filter expression directly within the filter argument.