Skip to content
Ameen Abozaid
Planned lessonJNR-022-L05

Demo: a chained Postman collection with environments

  • 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

build a collection that runs end to end. Prepares JNR-022-LAB1.

Draft outline details

Step by step

  1. Create the Shop collection with folders and the local and deployed environments.
  2. Add create category, create product, get product, update, and delete requests using {{baseUrl}}.
  3. Add post-response scripts that store categoryId and productId.
  4. Planned mistake: the host is typed into every request. Fix: replace it with {{baseUrl}}; any shared token becomes an environment variable.
  5. Run the collection with the runner and show all tests passing.
  6. Export it and review the file for secrets before sharing.

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.