Versions Compared

Key

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

Most test cases are created as a result of recording a test case. However, in some instances, one, several requests, or entire test cases can't be recorded and must be created manually.  This This is especially helpful for performance testing of a restful API. For these cases, you can use the web API, and test builder.


To open the web API test builder, right-click on the Sessions Grid and select the Web API Test Builder option.

...

  1. Select the request method.
  2. Type the absolute request URL, including the query string.
  3. Select the HTTP Version number (1.1 is the default).
  4. If you want to add more request headers (e.g., User-Agent or Accept), do not add the Content-Length header, as it will be added automatically.
  5. If you selected select the POST, PUT, or PATCH method, then you can add a request body.
    1. If you have a webform web form body, then you can add name/value names.
    2. Check the Url-Encode names/values checkbox to URL-encode the names and values and adds the Content-Type: application/x-www-form-urlencoded header.
    3. If you have any other body,

      then

      select the Raw body radio button and type the request body. 

      Info
      titleLarge request body

      In v5.7, the request body field was expanded to allow for bodies up to 2GB. 


Creating a test case

Once the API requests have been executed to create a test case, select the sessions from the session grid > right-click > Create Test Case. For more information on creating test cases, see here.

Note
titleNote

Request Builder is only available in the Standalone version of StresStimulus. If you are using Using StresStimulus from Fiddler-Addon, use Fiddler's Composer feature to create requests.

...