|
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.
Understanding Parameterization UI
The Parameterization screen displays the following details:
The left side panel displays the list of URLs for the selected transaction.
The right panel of the Parameterize screen displays the following tabs:
Parameters - Displays the list of parameters passed in get/post data.
Mime - Displays the list of filePath (File upload and download parameters) passed in get/post data.
URL Rewriting - Displays the URL to parameterize the session identifiers.
Store Variables - To fetch values from dataset, text, hidden elements, cookies, javascript or constant and store it in a variable.
Cookies - Displays the list of cookies passed in get/post data.
Header - Displays info such as Client Request and Server Response.
Clicking the URL Rewriting tab displays the selected URL in the URL text area. You can select the session identifiers passed in URL to parameterize the session identifiers (url-rewriting) where you can fetch values from dataset, cookie, text, element, javascript, constant, URL, or variable or Select Complete URL check box to replace the Complete URL with the value fetched from text, element or javascript.
Clicking the Cookies or Parameters or MIME tab displays a table showing the name of the selected cookie or parameter or MIME type in the Name column. The Value column shows the value of the selected cookie or parameter or MIME type or the parameterizated information (if it has been already parameterized). The Fetch Data From column shows the options to parameterize in a list button such as dataset, cookie, text, element, javascript, constant, URL or variable. The Apply to all Urls column displays the checkbox to reuse the configured parameterization for similar cookies or parameters in the selected transaction. To know the details of parameterizing cookies or parameters in get/post data, please refer to the topic Parameterizing Get/Post Data. To know the details of parameterizing MIME types, please refer to the topic Parameterizing MIME Types in Get/Post Data.
Two Ways to Handle Session Data
Following are the two ways to handle Session Data:
Select a URL from the left side panel of the HTTP Parameters screen and choose the URL Rewriting tab.
A check box named "Select Complete URL" is displayed. Based on the configured values (if any) such as Complete URL or Session Data in URL, the check box will be selected or unselected. Select this checkbox to substitute Complete URL.
The URL field will display the selected URL.
The table below the URL field will display the URL to be configured in the URL column. To fill the Value column, click the list button in the Configure column which displays the options to fetch the URL value from a previous response body of a HTML page, from an element attribute of a HTML page or by executing a JavaScript.
Replace Session Data Embedded in URL/Path
Select a URL from the left side panel of the HTTP Parameters screen and choose the URL Rewriting tab.
A check box named "Select Complete URL" is displayed. Based on the configured values (if any such as Complete URL or Session Data in URL) the check box will be selected or unselected. Unselect this checkbox to substitute the session parameters in URL.
The URL field will display the selected URL.
In the URL field, select a portion of the URL which contains the session identifier and click the Parameterize button.
A table is displayed which shows the selected session identifier in the Name column. To fill the Value column, click the list button in the Fetch Data From column. This will display a dropdown list with the various options to parameterize such as Dataset, Cookie, Text, Element, JavaScript, URL, Constant, Variable and Random Data.
The description and the steps to configure the various types of parameterization are explained below:
Understanding Parameterization Types
| Supported Parameterization Type |
Description |
|---|---|
|
Dataset |
When you select the type as dataset, parameterization is done by importing values from Database or FLAT file or XLS file. The detailed steps are explained below. |
|
Cookie |
Parameterization is done by substituting the value from the specified Cookie. The detailed steps are explained below. |
|
Text |
In this type, Parameterization is done by substituting the value from Text (Response Body of a HTML page). The detailed steps are explained below. |
|
Element |
In this type, the value is fetched from the specified element attribute of a HTML page. The detailed steps are explained below. |
|
Javascript |
In this type, the value is fetched by executing the specified Javascript. The detailed steps are explained below. |
|
URL |
In this type, the value is fetched from the URL of the previous response obtained during playback of the load script. The detailed steps are explained below |
|
Constant Value |
This type do not change values between a recorded session and a replay session. The values recorded can be used as it is for replay. The constant value can be specified in the Value field. Click Apply to dynamically substitute the constant value for the selected parameter or cookie. |
|
Variable |
In this type, you can fetch values from a dataset, cookie, text, element, javascript, url or a constant and store it in a global variable say in URL1. This variable can then be used in some other URL say URL5 in the same transaction to fetch the value from the variable and substitute it for the session identifier in URL5. The detailed steps are explained below. |
|
Random Data |
In this type, you can fetch values from any random data source such as Alphabets, Integers, etc. For more details, refer this link. |
|