Validating API Response Code

Modified on Wed, 8 Oct at 12:24 PM

TABLE OF CONTENTS

1. Overview

2. Validating API Response

1. Overview

This article helps in validating API response code.


2. Validating API Response

You can validate an API Response code in the Output tab.

Perform the following to access Output tab. 

  1. Navigate to the collections after selecting a API project.
  2. In the API screen, enter the URL and click on output button.
  3. You can add API response Key and Value and click on send. 
  4. You'll get the response code and you validate seeing that.
  5. You can also validate API response code using schema verification.
  6. Response schema verification is added to ensure that the API responses adhere to the expected structure and data types.
  7. In output you can add schema as per your requirement.
  8. After execution, you can see that the schema is available for verification in the report.


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article