#Regression testing
Number of APIs: 2
🧪 Get started here
This template helps ensure your API continues to work as expected after updates or changes. It contains sample requests for a series of tests that validate different aspects of an API, including:
- Status code verification: We'll check if the API returns the expected status codes for various requests, ensuring reliability and proper error handling.
- JSON schema verification: We'll make sure the JSON response conforms to a specified JSON Schema, ensuring API contracts are honored.
- Response time verification: We'll verify that the API's response time is within the acceptable range, providing a smooth user experience and optimizing performance.
- Response body verification: We'll validate the structure and content of the response body for accuracy, ensuring the integrity of the data and preventing potential issues downstream.
- Header verification: We'll confirm the presence and correct values of specific headers in the response, enabling secure and well-structured communication between your app and its users.
🔖 How to use this template
Step 1: Send the sample requests and view the response and test results.
Step 2: Replace the sample request URLs with your desired API endpoints.
Step 3:
Customize the tests in the
Tests
tab if needed. Don't forget to save your changes.
Step 4:
Run the collection by selecting
Run
.
ℹ️ Resources
[Scripting in Qodex]
[Test script examples]
[Qodex Sandbox API reference]
[Using the Collection Runner]
-
Response body verification POST {{baseUrl}}/post
-
Header verification GET {{baseUrl}}/get