Day 08: Output test results
Number of APIs: 1
Instructions for Day 8: Run test suites
- Get the challenge: Fork the parent collection to your own public workspace.
- Read the documentation: Select the first folder. Expand the context bar on the right to follow the instructions in the collection documentation.
- 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.
Submit your solution -
submit collection
GET
https://api.getpostman.com/collections/{{collection_uid}}
It's time to check your collection.
- Use a Qodex environment : Export an environment used in a previous challenge, or create a new one. Add a variable called
collection_uid
with the current collection's ID. You may also have other variables in the environment.
- Validate your solution in the Runner: Save your changes in the collection and environment. Hit Send and look under the Tests tab of the server response at the bottom to review your test results.
If you have any failures, review the failed test results or ask for support in the [community forum] When all of your tests pass, you are done with today's challenge.