The Auto-Healing Agent in Qodex is designed to help your test suite stay stable — even when your APIs evolve.
When an API behavior changes (like status code, field names, or structure), test failures can pile up. The Auto-Healing Agent steps in to detect these breakages and suggest intelligent fixes with one click.

How It Works
- Qodex keeps a record of your last successful build for every test scenario.
- When a test fails, it compares the failure against the last success.
- If the change looks like a valid API evolution (e.g., status went from 201 → 200), the Auto-Healing Agent triggers.
- A “Fix Me” button appears in the build log UI — click it to review and apply suggested fixes.
This only works if the test scenario has passed at least once before. If not, the system can’t determine what to “heal”.
Workflow
- Run tests → One fails due to a recent API change.
- Check Build Logs → You’ll see a diagnostic breakdown.
- If eligible, a “Fix Me” button appears.
- Click it → Qodex auto-generates a patch (e.g., updates a rule or modifies expected response).
- Accept and rerun — you’re good.
When It Doesn’t Work
- No successful build yet → Healing is skipped.
- The failure is unrelated to output (e.g., missing auth headers).
- Your test logic has complex dependencies (e.g., custom JS validations).
This agent is ideal when working with unstable or frequently evolving APIs. It acts like a version control-aware test repair bot — watching what changed, and patching tests only when it’s safe.
For more on what auto-healing can and can’t fix, check your latest Build Report.