Dataset Using File Parameter is formerly called File Parameter. The Dataset Using File Parameter is used to read data values from a file that the user has created or uploaded and can be used in the URL, Header, and Body.

Adding The Parameter

The following fields need to be filled to add the Dataset Using File Parameter :

Advanced

Selection Mode

Any data file can contain various numbers of rows. Value selection mode specifies how a variable value is initialized from the list of values. Possible options are :

Updated Value on

This field is used to specify when to pick a new data value, i.e., generate once and use this value for the entire session, or pick a new data value every time File Parameter is used. Users can have two options :

Encoding Options

This option is used to encode special characters to their ASCII value. This option contains 3 fields :

Encode : In Load Test, the user can encode any number of special characters i.e. all, specific, or none. Users can have the following options :

Characters to encode : If the user selects Encode only specified characters option in Encode, then this field becomes active. Here user can specify which special characters should be encoded.

Encode Space By : This option specifies to Load Test how to encode space. Users can have two options : ‘+’ and ‘%20’. If ‘+’ is chosen, Load Test encodes space by ‘+’ and if ‘%20’ is chosen, Load Test encodes space by ‘%20. The default value is ‘+’.

Ignore Invalid Data Lines : To ignore the invalid data lines, check the respective available check box.

Copy to run : This option is available only when you are using the data directory other than the script. It will copy the data directory on the test run at the below path :

Notes :

  1. Data directory can be overridden from the scenario only if you are using a data directory other than the script.
  2. You can edit data files upto 10 MB. For more than 10 mb it will open as Read Only mode.
  3. If your values contain special characters that you prefer not to encode, you have the choice of using either "Do not encode special characters" or "Encode only specified characters." A practical illustration of this situation can be found in the domain name https://www.cavisson.com, which includes special characters such as (:/).