Logo
QuinceDiasJaviteran API Documentation

Day 08: Output test results

Number of APIs: 3


Instructions for Day 7: 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 - get Canadian user

GET https://randomuser.me/api?nat=CA



2. Submit your solution - submit collection

GET https://api.getpostman.com/collections/20019195-e1d97e50-8559-4740-ad9a-503f640bf409



3. Output test results-Variables and scripts - echo the user

POST https://postman-echo.com/post



ENDPOINTS