World Congress 2023 • Sep 27, 2023

Contract Testing - How do you tame an external API that constantly breaks your tests

Vincent Hennig , Anupam Krishnamurthy

Are unpredictable external APIs constantly turning your integration pipelines red? Discover a three-tier contract testing strategy that completely decouples your frontend development from backend chaos.

Pause
Mute Enter Fullscreen
#1 about 5 min

Impact of external API changes on frontend tests

How unpredictable backend updates break frontend tests and cause severe development delays.

#2 about 2 min

Validating API contracts at three different levels

Building robust API validation requires checking endpoint status, response schema, and specific data formats.

#3 about 3 min

Implementing API validation tests using the Karate framework

Writing cumulative API tests ensures validation of schemas and specific data using external JSON files.

#4 about 1 min

Mapping frontend dependencies to API contract tests

Linking frontend tests to corresponding API data contracts speeds up failure analysis and debugging.

#5 about 4 min

Enforcing API contracts by sharing tests with partners

Replacing static API documentation with executable code tests allows partner teams to debug independently.

#6 about 6 min

Simulating API contracts using a mock server

Placing a mock server between the dev system and external APIs increases development stability.

#7 about 4 min

Building and syncing a mock server with Karate

Creating a local mock server guarantees that test data stays synchronized with actual external APIs.

#8 about 5 min

Contract testing summary and audience Q&A session

Implementing contract testing techniques prevents flaky tests and simplifies cross-team API integrations.

Matching moments

2:20 min

Discovering risk models and implementing contract testing tools

Sarah Hutchins · World Congress 2022

3:50 min

Applying test-driven principles to APIs

Sascha Depold +1 · World Congress 2021

2:41 min

Managing distributed API endpoints using consumer-driven contract testing

Bartosz Pietrucha · World Congress 2022

2:51 min

Clarifying the purpose of mock integration coding sessions

Anil Kumar Krishnashetty · World Congress 2022

2:01 min

Limiting API mocking boundaries in software integration tests

Tal Joffe · World Congress 2022

2:16 min

Preventing integration failures using contract and load testing

Julian Richter Julian Richter · World Congress 2025