Dataset using query parameter is used where the user wants to fetch response from a database using query and use the value using this parameter.

Adding The Parameter

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

Once all the above fields are filled, click the Test DB Connection button to test the connectivity with database.

Advanced

Click the icon  to see the fields in the advanced option.

Save To File :There can be situations when the user might want to save this data in the file. For such situations, this checkbox comes into the picture.

Once you check this box following fields appear :

Selection Mode

Any data file can contain various numbers of rows. How Load Test know which row to pick from these rows? For this, users can have various methods for Row Selection :

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 ‘+’.

Copy File to Test Run : Check this box if you want to copy the file in the Test Run.

Notes :

  1. 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 (:/).