Link the CSV variable for form based authentication
- To link the CSV variable for form-based authentication
- Select the Design section.
- Select the HTTP request in which the login takes place: In the Virtual Users tab, choose the Virtual User, HTML page and HTTP request where the actual login and Form based authentication takes place.
For example:
- the record is "VirtualUser",
- the HTTP page is /jpetstore/shop/signon.shtml
- and the HTTP request is /jpetstore/shop/signon.shtml
- Link the account variable to the Login configuration element: The HTTP request, in the example, defines several request parameters. In this case, the two of interest are the username and password request parameters. In your case, these request parameters are probably named differently.
- In the Definition panel, click twice on the Value column for the username request parameter.
- Select the picker button to access the Variable Picker dialog box.
- Choose the ${account.col_0} expression. The first column of the "account" variable contains login values. Rather than using the Variable Picker, a faster alternative, once you have selected the Value column, is to delete the value and start typing ${. NeoLoad displays a pop up listing all available variable values:
- Using the down and up arrow keys and the ENTER key, you can select the appropriate variable value.
- Link the account variable to the password configuration element: This involves the same steps as linking to the username request parameter element: Selecting the Value column and, for the password request parameter, changing the value to the ${account.col_1} expression.
Home