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.

  1. Navigate to Test Development Section

  1. Select and Click on a Test Case

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

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

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

  1. Select the required API Method

  1. Enter the API URL Path

  1. Click on Send Button to view the Response Preview below

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

  1. Click on Next Button to proceed with Storing Response

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

  1. lick on Next Button to proceed with Validation of Response

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

  1. Select the suitable Verification Method for validation of the Response

  1. Select the expected Data Type of the response

  1. Enter the Expected Value to compare with the Response Value

  1. Click on Status tab

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

  1. Click on Create Button to create the API Test Step

  1. Click on Run to execute the Test Case

  1. Click on Run History

  1. The API Test Case has been executed and passed successfully

Need Help?

Check the detailed user guide or contact our support team through email or live chat if you run into any issues during setup.


Congratulations! You're now ready to start using ContextQA to streamline your testing process. Explore the platform and take advantage of our advanced testing automation features.

Last updated