Data Set

Datasets are used to source the parameter values from data files. This is a very common method for getting data from an external file.

Parameter Details

Advanced Settings

e.g. (Fn=<value> or<filename>)

Where n specifies the index number to refer the parameter name, default value for parameter values is value.

Example: If dataset contents are:

/home/cavisson/user1,LA
/home/cavisson /user2,CA
/home/cavisson /user3,NY
In parameter value, user provides F1=file,F2=value

It means first parameter value comes from file which is specified in first field and second parameter value is as specified in the second field. File can have any data (one or many lines) and the whole file content is the value of the first field. It is useful when parameter value can have multiple data lines or its data can have the file separator for example address.

Notes

  1. You cannot save a blank file or provide blank dataset contents. While doing so, an error message "Please enter dataset content" is displayed.

    FILE is a mandatory argument and data-file-name specifies the file name containing the list of values for the variable(s) being declared. Format of the value file is as follows:

    • If there is only one variable being defined in the declaration, the file contains list of values with one value on a single line.
    • If multiple variables are being defined, a value of all variables would be defined on a single line and the values would be separated by ",". Effectively, each row contains a set of values for each variable declared. The order of values in a row should correspond to order of variable names in the declaration.
    • f the file name is a relative path (not starting with /), it is assumed relative to service directory of the test script to which these variables belong.