Gartner Research

A Guidance Framework for Testing Web APIs

Published: 21 March 2017

ID: G00320726

Analyst(s): Sean Kenefick


Digital business applications depend on highly reliable web APIs that perform to their specified potential. Technical professionals responsible for developing and testing web APIs must acquire the skills to validate interface contracts, entitlements and service levels.

Table Of Contents

Problem Statement

The Gartner Approach

The Guidance Framework

  • Creating and Validating Testable RESTful APIs
    • Step 1. Prioritize Contract Enforcement
    • Step 2. Support API Testing Through Architecture
    • Step 3. Complete Full-Spectrum Testing on Highly Dependent Functionality
    • Step 4. Monitor Your APIs After Publishing

Risks and Pitfalls

  • API Producers Won't Know How an API Will Be Consumed Until After It Publishes
  • Different APIs Depend on the Same Upstream Components
  • Testers Must Test APIs Cobbled Together From Disparate Sets of Services
  • Developers Provide Testers With Constantly Evolving Interfaces

Gartner Recommended Reading

©2021 Gartner, Inc. and/or its affiliates. All rights reserved. Gartner is a registered trademark of Gartner, Inc. and its affiliates. This publication may not be reproduced or distributed in any form without Gartner’s prior written permission. It consists of the opinions of Gartner’s research organization, which should not be construed as statements of fact. While the information contained in this publication has been obtained from sources believed to be reliable, Gartner disclaims all warranties as to the accuracy, completeness or adequacy of such information. Although Gartner research may address legal and financial issues, Gartner does not provide legal or investment advice and its research should not be construed or used as such. Your access and use of this publication are governed by Gartner’s Usage Policy. Gartner prides itself on its reputation for independence and objectivity. Its research is produced independently by its research organization without input or influence from any third party. For further information, see Guiding Principles on Independence and Objectivity.

Already have a Gartner Account?

Become a client

Learn how to access this content as a Gartner client.