Skip to end of metadata
Go to start of metadata

StresStimulus handles cookie correlation automatically. Every time a server response contains a Set-Cookie header, StresStimulus acts accordingly and sets the request cookie value in all subsequent requests. However, in some rare instances the request cookie value is set by some client side script and can't be automatically correlated. For example, an application can have a client script that after every click, sets a timeout cookie to a few minutes into the future to monitor user inactivity. While load testing such test case, the recorded value of this cookie can't be used because the server will think the VU is inactive. In these cases, you can use the Set-Cookie object to manually parameterize the cookie value.


To use the set-cookie object:

  1. Go to the BuildTest Case node.
  2. Select the object where you want to insert the set-cookie after. The value of the cookie will be set at that time during the test case execution.
  3. Right click and select Insert Set-Cookie then select Insert Before or Insert After.
  4. In the property grid set the following properties:
    1. Set the Name of the cookie.
    2. Set the expression that will be evaluated to determine the value of the cookie. The expressions should be be selected from the variable picker in the property grid.

    3. Set the Domain (host) that the cookie belongs to.
    4. Set the Path that the cookie belongs to. The default is "/" which means all pages in the domain.


  • No labels