LogoLogo
  • About SimplifyQA
  • Get Started with SimplifyQA
    • Agile & Non-Agile Framework
    • OS Support
    • SimplifyQA Hosting
      • On-premise Installation Guide
        • Pre-requisites
        • Installation Guide
      • Support and Resources
      • Training and Onboarding
    • Explore SimplifyQA for your Application Lifecycle Management
  • SimplifyQA Installation & Setup
    • Setup QAWizard
    • Register QAWizard
    • Setup Android Device
      • How to enable settings in android device?
      • How to register android device?
      • Setup emulators on Android Studio for automation in SimplifyQA
    • Setup iOS Device
      • How to setup iOS device in Apple Developer Account?
      • How to register iOS device?
  • Get to know your Workspace
    • Blueprint of SimplifyQA
    • Key Terminologies
    • Search/Global Search
      • How to use global search?
      • How to use advance search?
      • How to use column sort?
      • How to use column filters?
      • Add or remove columns
    • Rich Text Editor
    • Import & Export
    • Add Attachments
    • Add Linkages
    • Add Comments
    • Manage Cards in board view
    • Configure Watchlist
    • Track Edit History
    • Hierarchy Tree
  • Admin Controls & Configurations
    • Manage Projects & Users
      • Create Project and Invite Users
      • Project Settings
        • Create and Manage Custom Fields
      • Grant Admin Privilege to User
      • Invite/Add Users to Team
      • User Directory and Access Control
      • Configure Page Layout
      • Manage Roles and Privileges
      • Configure Auto-logging of Defects
    • Configure your clients
    • Password settings
  • Release & Sprints
    • Introduction to Releases
    • Create & Manage Release & Sprint
    • Start & Close a Sprint
  • Create and Manage your Requirements
    • Introduction to Requirement Management
    • Create & Manage Epic
    • Create & Manage Features
    • Create & Manage User Stories
  • Introduction to Test Management in SimplifyQA
    • Create a Manual Test Case in SimplifyQA
    • Create an Automation Test Case in SimplifyQA
    • Learn API Testing in SimplifyQA
      • Create an API Test Case in SimplifyQA
      • Quick Test the API
      • Validating API Responses
      • Understanding API Parameterisation
      • Save API Response Data
      • Achieve Data flow for E2E Testing
    • Create Hybrid Test Case in SimplifyQA
    • Leverage Re-usability in your Tests
    • Organise your Test Cases
    • Linking a Test Case to User Story
    • Linking a Test Case to Defect
    • Version Control your Test Case
    • Create a Copy of your Test Case
    • Copy Test Case to different Project
    • Conditional Statements
      • Decision Making Statement
      • Looping Statement
      • BREAK & CONTINUE Statement
    • Supported Actions
    • Utilising Mobile Inspector in SimplifyQA
  • Introduction to Script-less Recording of Test Case
    • Record a Web Test Case in SimplifyQA
    • Record an Android Test Case in SimplifyQA
      • Record an Android Test Case
    • Record Functions in SimplifyQA
    • Understand Object Recognition Mechanism & Self Healing in SimplifyQA
  • Test Data Management
    • Work with the Formulas to Optimise Test Data
    • Import and Export Test Data Sets
  • Introduction to Object Repository
    • Capture Objects for your Tests
    • Organise your Test Objects
    • Parameterise your Test Object Properties
  • Introduction to Parameters
    • Various Types of Parameters
    • Create and Utilise Parameters in your Test Case
    • Understanding Runtime Parameters
  • Defect Management
  • Marketplace
    • Integration with Project Management Tools
      • Integrating SimplifyQA with Jira
        • Configure Web-hooks
        • SimplifyQA Setup for Integration
          • Setup your Account for Jira Integration
          • Configuration in SimplifyQA Admin
          • Steps to Generate a Jira API Token
          • Steps to create SimplifyQA token
          • Steps to get Jira Account ID
          • Synchronisation Functionality Between SimplifyQA and Jira
          • Analyse Logs for Data Synchronisation
        • Mapping Fields for Issue Types
        • Viewing SimplifyQA Test Cases in Jira
  • Legal Documents
    • End-User License Agreement
Powered by GitBook
On this page
  1. Introduction to Test Management in SimplifyQA
  2. Learn API Testing in SimplifyQA

Validating API Responses

PreviousQuick Test the APINextUnderstanding API Parameterisation

Last updated 9 months ago

Assertions are used to validate the response from the API and ensure that it meets the expected criteria. This section will guide you through the process of adding assertions to your API test cases.

  • Navigate to the Test Case:

    • Navigate to the API test case you have created or .

  • Quick Test the API:

    • Click on 'Send' button to run the API call and wait for the response.

  • Open Assertions Section:

    • Once you have the API response. Click on the "Assertions" tab within the test case.

  • Define Assertion:

    • Select the assertion type from the dropdown (e.g., Received Response). To add assertion on response header. Select 'Received Headers' from the assertion type dropdown.

    • Choose the condition for the assertion (e.g., Equals, Contains, Greater Than).

    • Actual Value will be auto-captured from the received response. Enter the expected value for the assertion. You can also the actual value to validate the dynamic values.

    • Select the checkboxes to add assertions.

  • Review and Save:

    • Review all assertions for accuracy and completeness.

    • Click the "Save" button to finalise the test case.

  • View Assertions

    • To review the added assertions, navigate to 'View Assertions'.

    • History of all the added assertions would be captured in 'View Assertions' section. For example, if there are keys in response which dynamically appears in specific scenarios, you can view those added assertions in this section.

    • Delete Assertions: You can choose the added assertions and delete the assertions which are not required.

Example:

Here's an example of an assertion. It is important to add assertion on status code irrespective of positive or negative scenario, as it helps to identify immediately if the API fails.

  • Assertion Name: Status Code

  • Condition: Equals

  • Expected Value: 200

  • Actual Value: Value from the API response

Additional Tips

  • Add multiple assertions to verify different aspects of the API response.

  • Parameterise to validate dynamic values in the API reponse.

create a new API test case
parameterise