API Testing
This guide outlines step-by-step instructions for performing API testing using ContextQA. You'll learn how to:
Create an API test step
Send API requests and preview the response
Store the API response in a variable
Verify response
Verify by response value
Verify by status code
By following this guide, you can effectively validate the functionality and reliability of your APIs
Interactive Demo
Here’s an interactive demo to quickly guide you through the process. Use it to explore the steps in an engaging, hands-on way.
Step-by-Step Guide
Prefer detailed instructions? Here’s a comprehensive step-by-step guide to walk you through the process at your own pace.
Navigate to Test Development Section

Select and Click on a Test Case

Click on a Test Step, enter 'API' and choose the 'REST_API' template

Click on the Three-Dot Button of the Test Step to View More Details

Click on the Title Field and Enter a suitable Title for the API

Select the required API Method

Enter the API URL Path

Click on Send Button to view the Response Preview below

Enter Header Name and Header Value in the respective fields if required

Click on Next Button to proceed with Storing Response

11. Enter a Variable Name to store the API's Response

lick on Next Button to proceed with Validation of Response

Enter the variable name, followed by a '.' and the JSON path of the response you want to validate

Select the suitable Verification Method for validation of the Response

Select the expected Data Type of the response

Enter the Expected Value to compare with the Response Value

Click on Status tab

Enter the Expected Response 'Status Code' and Click on Create

Click on Create Button to create the API Test Step

Click on Run to execute the Test Case

Click on Run History

The API Test Case has been executed and passed successfully

Last updated