Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Sometimes the same variable should be used across multiple GET or POST requests. For example, in the application where the session ID is marshaled as a query parameter, this parameter will be included in every request.

In some applications, a parameter's value submitted multiple times can have a different name in different requests.

If such a parameter has to be parameterized, searching by the parameter name will not find all instances of the parameter. In this case, instead of the Parameterization Grid, use the Parameterization Editor.

StresStimulus allows you to parameterize quickly multiple similar parameters and search by name and value using the Find and Replace feature in Parameterization Editor and Free-format Request Editor.

To parameterize multiple requests:

  1. After creating a parameter, the below dialog will appear, giving the option to bulk replace more parameters. 


2. Alternatively, select a value to parameterize and click Global Find and Replace

3. The searched value will appear in the Find What box

4. Right-click in the Replace with box and the appeared Variable Picker, select a variable. Alternatively, you can type your value, wildcard or regular expression.

5. Select Search Scope as This request, All requests in the current test case, or All requests in all test cases 

Info
titleBulk replace

Select All requests in the current test case to replace all instances of the search text with a parameter in the current test case.

Select All requests in all test cases to replace all instances of the search text with a parameter in all test cases in the test.

6. Check other applicable options

7. Click Replace, Replace All or Bulk Replace



You can also create multiple parameters from an existing parameter. Right-click on an existing parameter (a) and select Create More Like This (b). The find and replace dialog will appear with the find and replace criteria pre-filled. Click the Bulk Replace button (c) to create all possible similar parameters.



Image RemovedImage Added



Note

When performing an expression search across all requests initiated from either Url and Query  or Body request parts, then bulk replaces will occur in all requests' Url and body where the expression is found.

When performing an expression search across all requests initiated from the header request part, then bulk replace will occur only in all requests' headers where the expression is found.

...