Basic HTTP Examples
Basic Template
This template requests /
path of URL and match string in the response.
Multiple matchers
This template requests /
path of URL and run multiple OR based matchers against response.
Matchers with conditions
This template requests /
path of URL and runs two matchers, one with AND conditions with string match in header and another matcher against response body.
Multiple matcher conditions
This template requests /
path of URL and runs two matchers with AND conditions, one with OR conditions with string match in header and another matcher against response body, both condition has to be true in order to match this template.
Custom headers
This template requests /
path of the URL as GET request with additional custom headers defined in the template.
POST requests
This template makes POST request to /admin
endpoint with defined data as body parameter in the template.
Time based Matcher
This template is example of DSL based duration matcher that returns true
when the response time matched the defined duration, in this case 6 or more than 6 seconds.
Was this page helpful?