Parameterization is a rule of replacing the recorded value in requests with a different dynamic or static value that will be used on test replay. Dynamic values are derived from Variables.


All variable types, including extractors, datasets, data generators, and functions, are used in parameterization in a very similar way. Any part of the request, including the header, URL, query-string, and body, can be parameterized in a very similar way as well. The steps for parameterizing a header using an extractor, for example, are the same as the steps for parameterizing a body using a function.


Dynamic values replacing recorded values are not limited to just a variable. You can use expressions that combine several variables, text strings, or a combination of thereof. Variables or text strings should appear one after another in the expression without delimiters. During the test run, StresStimulus will resolve variables into strings and concatenate all dynamic and static strings to create an expression that will be inserted in the request.


Test Integrity Safeguard

A parameter can operate correctly only if it uses a correct existing variable. StresStimulus has built-in verification that preserves the test case integrity.

  • If a variable is renamed, all parameters using it will be automatically adjusted to use the new name.
  • If a variable is deleted, then all dependent parameters will be deleted as well.

Such validation helps to avoid sending incorrect requests during the test and thus helps to prevent test errors.

 

  • No labels