Logo
30 Day Challange API Documentation

Day 06: Tests

Number of APIs: 2


Instructions for Day 6: Tests

  1. Get the challenge: Fork [the parent collection Day 06: Tests] to your own public workspace.
  2. Read the documentation: In your fork, 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 Submit your solution and follow the instructions in the documentation to validate your solution.

Concepts covered

  • [Writing tests]
  • [Test snippets]

Additional resources

  • [Test script examples] in the docs
  • [Intro to writing tests - with examples] sample collection
  • Chai.js docs
  • Tests tiktok

Next challenge

  • [Debugging]


1. Tests - jokes

GET https://api.chucknorris.io/jokes/random



2. Submit your solution - submit

GET https://api.getpostman.com/collections/{{collectionUid}}

It's time to submit your solution.

  1. Get the collection ID: Get the collection ID in any way that you prefer.
  2. Update the request URL: Update the collectionUid in the request URL with the ID you got from the previous step, again using any method you prefer.
  3. Add your Qodex API key: Add your Qodex API key to your environment so that Qodex can authorize your request as shown under the Headers tab. > ⚠ Remember to only use CURRENT VALUE for sensitive tokens like your API key
  4. Validate your solution: 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. Remember to save your changes as you'll need to pass all the challenges to claim a 30 days of Qodex badge.



ENDPOINTS