Day 10: Test coverage
Number of APIs: 3
Instructions for Day 10: Test coverage
- 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
- Use external data files to pass Qodex values
- Generate sample data dynamically
- Increase test scenarios
Concepts covered
- [Using dynamic variables]
- [Working with data files]
- [Running a collection]
Additional resources
- [Looping through a data file with the Qodex collection runner] blog
- Loop through a data file video
- How to break an API stream
- [Unbreakable API] code samples
- Big List of Naughty Strings
- Fuzz testing with Big List of Naughty Strings video
- Negative testing for more resilient APIs blog
-
Test coverage - httpbin with faker POST httpbin.org/anything?testData={{$randomCatchPhrase}}
-
Test coverage - httpbin with file POST httpbin.org/{{path}}?testData={{value}}
-
Submit your solution - submit collection GET https://api.getpostman.com/collections/25941648-f5f36437-e14b-4d18-91de-ca5ff11a8d37