API Steps & Smart Verification
Review an HTTP request inside a UI test, inspect the recorded response and see how the next verification uses its result.
Transcript and chapters
Combine interface checks and API calls in the same test. This sample checkout test includes a request that reads the shopping cart directly from the API.
Open the test details and review the HTTP request. Its method and endpoint are visible alongside the other steps, so the complete flow stays in one place.
Expand the recorded response to inspect the status, response time and returned data. Here, the sample cart shows the subtotal, delivery fee and final total.
The next verification checks the response from that request. Keeping API results beside interface actions makes it easier to see what the test checked and why it passed.
What you’ll see
- Combine API requests and UI actions in one test
- Chain responses between steps with {{steps.N…}} variables
- Inspect a captured status, response time and body