Test script examples
Number of APIs: 10
From the Qodex Docs: [Test script examples]
Read the documentation on the right side of each request. Look under the Tests tab of the request to see the test script examples. Hit Send, and inspect the Test Results on the bottom.
-
Common assertion examples - Asserting array properties GET {{mockBaseUrl}}/goods
-
Getting started with tests - Using multiple assertions POST https://postman-echo.com/post
-
Getting started with tests - Handling responses that don't parse GET https://postman-echo.com/get?customer_id=6
-
Common assertion examples - Asserting a value type GET {{mockBaseUrl}}/jane
-
Common assertion examples - Asserting the current environment GET https://postman-echo.com/get
-
Troubleshooting common test errors - Assertion undefined error POST https://postman-echo.com/post
-
More examples - Older style of writing Qodex tests (deprecated) GET https://postman-echo.com/get
-
Common assertion examples - Asserting that an object is contained GET {{mockBaseUrl}}/created
-
Troubleshooting common test errors - Test not failing GET https://postman-echo.com/get
-
Making assertions on the HTTP response - Testing response times POST https://postman-echo.com/post