How to fix broken API tests with AI when APIs change | SmartBear ReadyAPI

Nov 23, 2026

In this tutorial, you'll learn how to connect an AI assistant to SmartBear ReadyAPI through the ReadyAPI MCP server and use plain-language prompts to generate and repair functional tests when your API changes. Instead of fixing broken assertions one by one, you'll work through the built-in MCP Sample Project, from setup to a fully passing test suite.

The sample project is a car rental booking sandbox with two API versions. Its v1 test case deliberately includes assertions that break once v2 adds new required fields, renames a field, and introduces a CANCELLED status. You'll watch the AI assistant generate a v2 test case from the v1 baseline, pinpoint exactly which assertions fail and why, and heal them to match the v2 OpenAPI definition. Your original v1 test stays untouched the whole time.

It's a safe place to see application integrity in practice – tests that keep proving your API works as intended, even as it changes – before you point the ReadyAPI MCP server at your own projects.