|
How do I get to the Parameterization Screen?
Suite Manager >> Continue with Web Performance Testing >> Select load test from left-side tree view >> Click 'Edit' link under HTTP Parameters from the right panel.
Steps to Parameterize Session Data using Variable
From the left side panel of the HTTP Parameters screen, select the URL to be parameterized.
Choose Store Variables tab from the HTTP Parameters screen. In this screen, in the Name column, enter the variable name as "testVar".
To fill the Value column, from the Fetch Data From column, choose the list component which provides options such as Dataset, Cookie, Text, Element, Javascript, Constant, URL, Variable and Random Data.
From this list, assume you want to fetch value from a hidden element, then choose the option as Element from the list component and configure the element attribute values.
Click Apply. This will fill the Value column.
Click Save in the HTTP Parameters screen to save the changes.
From the left side panel of the HTTP Parameters screen, select the URL to be parameterized. For the example said above, select the 10th URL.
Identify the session data parameter in which you want to substitute the variable value.
From the Fetch Data From column, choose the list component which lists options such as Dataset, Cookie, Text, Element, Javascript, Constant, URL, Variable and Random Data.
From this list component, choose the option as Variable. This will display the Response Variable screen. Enter the Variable Name as "testVar".
Click Apply. This will fill the value column.
Click Save in the HTTP Parameters screen to save the changes. During playback, the value stored in variable "testVar" will be fetched and substituted for the configured session identifier in the 10th URL.
|