GET
Command value: requestGET
Sends an HTTP GET request and asserts on the response status or body.
Fields
| Field | JSON property | Description |
|---|---|---|
| Target | target | URL of the endpoint to call. Variables are supported, for example {{API_URL}}/users. |
| Assertion Type | assertion_value | Status equals (status_equals) compares the HTTP status code. Body equals (body_equals) compares the response body. If no type is selected, the response is not checked. |
| Expected Value | value | Required. The expected status code, for example 201, or the expected body. An empty status value is treated as 200. |
| Description (Optional) | notes | A comment shown in the step list and in Gherkin and Playwright exports. |
Usage
- Runs outside the browser page, so it does not change what is on screen.
- Use it to seed data before a UI flow or to confirm a backend effect after one.
- Body equals compares the bodies as JSON (key order does not matter) when both parse as JSON. Otherwise it compares the raw response text.
- No request body is sent.
Example step (JSON)
{
"command": "requestGET",
"target": "https://api.example.com/items",
"assertion_value": "status_equals",
"value": "200"
}Playwright equivalent
const res = await page.request.get('https://api.example.com/items');
expect(res.status()).toBe(200);Common options
- Make this step optional (Continue on failure): when checked, a failure in this step is recorded and the test continues with the next step.
- Execute step when JavaScript returns true: not available for request actions.
See conditional steps and variables for details.