Sanity checks
Check a journey from start to finish
Combine API calls, browser tests and database checks to verify the outcome of an operation.
Verify that an accepted order reaches the database
- Start from the user journey
- Reuse an existing browser test or add an HTTP request. In staging, start by creating an order with test data. The response status tells you whether the API accepted the request.
- Follow that same order
- Save the returned order ID in a scenario variable. Reuse it in the SQL read step. This checks the order from this run even when other orders are being placed at the same time.
- Define success
- Add a condition on the result, such as finding a row for that ID. Schedule the scenario or run it with staging parameters. The step results show whether the request, the database read or the business condition failed.
How you might use it
The API accepts an order. The next step checks that the order ID appears in the staging database.
What you get
The run shows which step failed and which condition it was expected to satisfy.