Day 08: Output test results

Number of APIs: 3

Instructions for Day 8: Run test suites

  1. Get the challenge: Fork the parent collection to your own public workspace.

  2. Read the documentation: Select the first folder. Expand the context bar on the right to follow the instructions in the collection documentation.

  3. Submit your solution: Select the second folder and follow the instructions in the documentation to validate your solution.

Learning objectives

  • Write dynamic log statements

  • Run collections from the command line

  • Explain additional methods to output test results

  • Set up and tear down state in tests

Concepts covered

  • [Write tests]

  • [Collection Runner]

  • [Schedule collection runs]

  • [Run collections on the command line with Newman] docs

Additional resources

  • [Use custom reporters with Newman] docs

  • Manage CLI environment variables video

  • [Newman with Docker] docs

  • [Write to your local file system] blog

  • [Visualizing responses] docs

  1. Output test results-Variables and scripts Copy - get Canadian user GET https://randomuser.me/api?nat=CA

  2. Output test results-Variables and scripts Copy - echo the user POST https://postman-echo.com/post

  3. Submit your solution - submit collection GET https://api.getpostman.com/collections/25941648-81f3153c-5226-4f58-86d3-01c7c85d4842