Demo: the checkout journey with REST Assured
On This Lesson 3 topics
This lesson is planned. The outline below lists the topics it will cover. The full lesson has not been published yet.
In this lesson
automate register, login, cart, checkout, and view order. Prepares JNR-046-LAB1.
Draft outline details
Step by step
- Write the scenario matrix for the five steps.
- Register and log in; extract the token.
- Add a product to the cart, checkout, and assert the order body and
Locationheader. - Add failure rows: empty cart, no token, unknown product.
- Planned mistake: assert the whole JSON as a string; add a field and watch the test break; fix with field-level assertions.
- Run the test against the Testcontainers-backed app.
Practice
Apply this lesson with the module's lab, exercises and quiz.
Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.