Skip to content
Ameen Abozaid
Planned lessonJNR-046-L05

Demo: the checkout journey with REST Assured

  • Lesson 5 of 5
  • Junior
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

  1. Write the scenario matrix for the five steps.
  2. Register and log in; extract the token.
  3. Add a product to the cart, checkout, and assert the order body and Location header.
  4. Add failure rows: empty cart, no token, unknown product.
  5. Planned mistake: assert the whole JSON as a string; add a field and watch the test break; fix with field-level assertions.
  6. Run the test against the Testcontainers-backed app.

Practice

Apply this lesson with the module's lab, exercises and quiz.

Lab and exercises Quiz

Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.

Type to search levels, phases, modules and lessons.