Day 06: API tests
Number of APIs: 5
Instructions for Day 6: API tests
- 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
- Parse a response object
- Insert a test via snippet
- Write a custom Qodex test
- Use API calls to replicate a user scenario
- Add multiple assertions to a test
- Explain how Chai.js BDD syntax is used in Qodex
Concepts covered
- [Writing tests]
- [Test snippets]
- [Collection Runner]
- [Qodex sandbox] docs
Additional resources
POST
{{baseUrl}}/user
POST
{{baseUrl}}/user/login
GET
{{baseUrl}}/user/logout
GET
{{baseUrl}}/account/:user_id/summary
GET
https://api.getpostman.com/collections/20019195-2cc959c0-d1d8-4dbf-8529-843dbbd2cad5