Review Postman Test Results

Number of APIs: 1

Reviewing Qodex Test Results

For those who review test results in the Qodex app, CLI output, or monitor run results, this example collection is a step-by-step walkthrough of how you can interpret Qodex test results and gain more insight into how your API behaves.

Get Started

  1. Fork this sample collection to your own workspace.
  2. For each request in this sample collection, Send the request. Then, review the documentation in the right sidebar, inspect the code under the request Tests tab, and inspect the output under the response Test Results tab.

Learning Objectives

  • Name Qodex tests descriptively
  • Review execution order of Qodex tests
  • Read Chai.js expect assertions
  • Use variables to store data and make assertions
  • Log messages to the console for more visibility of response data and execution order of tests
  • Log messages to the Qodex Console to inspect execution order or assertions within a test and determine where an error has occurred
  • Include arbitrary messages to prepend to any failed assertions that might occur

If you also plan on writing tests, it's important to consider how you name tests and variables, group and structure assertions, and place log statements. Others reviewing the test results, and your future self, will thank you.

Writing Tests in Qodex

If you're interested in writing tests, check out these additional resources

  1. Practice 3 and 4 GET https://rickandmortyapi.com/api/location