Search Parameter is used to search for a particular string in the response message of the server. Users can send this searched string in the subsequent request messages. To search the desired string, provide the left boundary and right boundary. The pattern which lies in between these defined boundaries is searched and is stored in a Search Parameter variable.

Adding the Search Parameter

The following fields need to fill to add the Search Parameter in the script:

Parameter Name: This field is used to set the name of the Parameter, which is used in the parameterization of the script with curly braces {}.

  1. Boundary
    • Left Boundary(LB): Left Boundary is the starting pattern that is provided to search any particular string. To search any string, the left pattern is searched first. When its existence is verified only then the right pattern is searched. It is an optional field.
    • Right Boundary(RB): Right Boundary searches for the ending pattern i.e. occurrence of this pattern terminates the search and the data lying between Left Boundary and Right Boundary is the value of the Search Parameter. It is an optional field.
    • Ignore Case: If you check this box then the string to be searched in LB and RB becomes non-case-sensitive.
  2. Regex
    • Regular Expression: A regular expression is a sequence of characters that specifies a match pattern in any particular string.
    • Group: In regular expressions, a group is a portion of the pattern enclosed in parentheses. Groups are used to capture and match specific sub-patterns within the larger pattern. They allow you to extract or manipulate specific parts of the matched text. Group value can lie in the range 0-100.
  3. Advanced Boundary:/ It is similar to a boundary field. The only difference is that you can also use the binary number, regular expression, and parameter as left boundary and right boundary to search any particular string.

Search Text in page response: The user can specify on which response page he/she wants to search the string.

Occurrence Count

When the data to be searched is present more than once on the response page(s), then the user can specify which occurrence should be picked by the Load Test. By default, it is set to 1. This means it picks the first occurrence. There are the following options:

Advanced

You have to click the Icon to view all the options in the Advanced section. You will get the following option in Advanced:

Encode Parameter for Request URL/Body

Encoding is used to encode special characters to their ASCII value. Users can encode any number of special characters i.e. all, specific or none. User can have the following options: