- Home
- AI agent testing
AI agent testing
AI agent testing is checking what an AI agent actually does in the systems it works in: the records it creates, changes or leaves untouched, not only the text it returns. It covers the agent's tasks, failure paths and new versions, and it is done before a release.
This is different from scoring answers on a dataset (evals), from watching an agent in production (observability), and from agentic testing, a phrase also used for using an AI agent to test an application. Those topics have their own pages below.
What is AI agent testing?
When an agent can write data — a purchase order, a ledger entry, a customer record — the result that matters is in the connected system. Testing reads that result back and grades it against an expected end state.
AI agent testing is not the same as:
- Evals, which score outputs on a dataset, often with mocked tools. See AI agent evals vs testing.
- Observability, which records what the agent did after a version is already in production. See AI agent release gates vs observability and evals.
- Agentic testing, which, on this site, means using an AI agent to test an application. See What is Agentic Testing?.
How do you test AI agents?
- List every action the agent can take in other systems.
- Write down the correct end state for each critical action.
- Run those tasks end to end against a test copy of the real systems, and read the saved records back.
- Repeat the runs with errors and timeouts, with misleading inputs, and several times in a row. One passing run proves little.
- Re-run the same set before every release.
The full walkthrough is in How to Test an AI Agent Before Production: 8 Steps. For agents that write into customer systems, start with how to test AI agents that write to your CRM or ERP. For tool use, see how to test AI agent tool calls.
Error types the tests need to cover
These checks do not cover every possible failure. They are built around these types:
- Wrong data. The right record, with wrong values: a truncated ID, pieces instead of meters, two swapped fields. See wrong data and AI agent wrote wrong data to your CRM or ERP.
- A false "done". The agent says the task is finished, but the call failed or nothing changed. See hallucinated success and AI agent hallucinated success.
- Duplicate writes. A retry after a timeout creates a second order or a second refund. See duplicate writes and duplicate writes and idempotency testing.
- Partial writes. Some steps complete and then the run stops, leaving a half-finished change. See partial writes and AI agent partial failures.
- Prompt injection and misuse. Instructions hidden in a document, or a user asking the agent to skip an approval. See prompt injection testing and misuse and prompt injection testing.
- Server errors, timeouts and retries. These are injected on purpose during a test. A correct agent ends with one correct result or a clearly reported failure, never half a record. See fault injection for AI agents.
A longer catalogue is in what errors AI agents make. After each task, verify what the agent changed in the connected system.
Evals, observability, guardrails and release gates
| Evals | Observability | Guardrails | Release gates | |
|---|---|---|---|---|
| Question | Is this model or prompt good? | What did the agent do? | What should be filtered right now? | Should this version go to production? |
| When | During development | In production | In production, on each request | Before each release |
| Looks at | Outputs and transcripts | Traces and metrics | Inputs and outputs as they happen | Records in the connected system |
A release gate is a set of pass/fail checks that a new version of an AI agent has to pass before it goes to production. It runs the agent's critical tasks end to end and checks the records in the connected system. The short definition is in What Is an AI Agent Release Gate?. Agentiqa also uses "quality gate" for the same idea; see what is a quality gate for AI agents.
Guardrails run in production and filter inputs or outputs as they happen. A release gate runs before a version ships. You may need both; the difference is in AI agent guardrails vs testing. What dataset evals miss when an agent writes data is in what AI agent evaluation tools miss. A longer side-by-side of evals, observability and release gates is in AI agent release gates vs observability and evals and on Compare.
Before a release
Before a new version goes out — a prompt edit, a model change, a new tool or a configuration change — these checks are useful:
- A release gate on the critical tasks, with examples by domain.
- Smoke tests for a short first pass.
- Regression testing of the same tasks against the previous version. The term is defined in the regression testing glossary entry.
- An AI agent production-readiness checklist.
- Shadow mode testing before the agent gets write access. See the shadow mode glossary entry and from shadow mode to write access.
By domain and agent type
| If the agent… | Start here |
|---|---|
| Works in a vertical domain (procurement, legal, finance, supply chain) | Use cases and how to test vertical AI agents |
| Writes purchase orders | Procurement agents and testing AI procurement agents |
| Files documents or manages matters | Legal agents and testing legal AI agents |
| Posts invoices, refunds or ledger entries | Finance agents and testing AI finance agents |
| Places replenishment orders or changes stock | Supply chain agents and testing supply chain AI agents |
| Is about to get ERP write access | How to test AI agents before they get ERP write access |
| Uses tools | How to test AI agent tool calls and how to test AI agents that use MCP tools |
| Acts in a computer-use setup | How to test computer-use AI agents |
| Hands work to another agent before a write | How to test multi-agent handoffs |
| Sends emails or payments | How to test AI agents that send emails and payments |
| Waits for a person's approval | Testing human-in-the-loop AI agents and approval steps |
| Runs under limited permissions | AI agent permission testing |
Guides and tools
- AI Agent Test Cases: 12 Examples for Agents That Write Data
- AI Agent Test Environment: Sandbox, Seed Data, Reset
- AI Agent Testing Tools in 2026: 7 Tools Compared
- What AI Agent Evaluation Tools Miss When Agents Write Data
Agentic testing is a different topic
"Agentic testing" on this site means an AI agent that explores and checks a running application, instead of executing pre-written scripts. That is explained in What is Agentic Testing?. It is not the same as testing an AI agent before a release, which is what this page covers.
How Agentiqa fits
Agentiqa is an AI Quality System for teams shipping AI agents that write data. Release gates run the agent's key tasks before each release and check what changed in the connected system. AI Quality Manager compares each release with the previous one and proposes test updates and new tests, which a person approves. First release gates live within 7 minutes. For Enterprise, an Agentiqa engineer sets up the gates on the riskiest tasks over a 3-day rollout. Agentiqa is not designed for agents that only answer questions or generate text.
Try it on your own agent
Describe a task in plain words. Agentiqa does it step by step and tells you if it worked. Every failure comes with step-by-step reproduction.
20 runs a month, no credit card.
Vertical Agents Safety Review
For teams whose agents write into business systems. Free, 20 minutes.
FAQ
AI agent testing is checking what an AI agent actually does in the systems it works in: the records it creates, changes or leaves untouched, not only the text it returns. It is done on the agent's tasks, failure paths and new versions, before a release.
List the actions the agent can take, define the correct end state for each critical one, run those tasks end to end against test copies of the real systems and read the records back. Repeat with failures, misleading inputs and several runs per task, and re-run the set before every release. The full method is in How to Test an AI Agent Before Production: 8 Steps.
The same way: run the critical tasks end to end against test copies of the real systems, read the records back, include failure and misuse cases, and re-run the set before every new version — a prompt edit, a model change, a new tool or a configuration change. See the 8-step guide above.
Evals score an agent's outputs on a dataset, often with mocked tools. AI agent testing, as used here, checks the records in the connected system after the agent has run the task. The two can be used together. See AI agent evals vs testing and what AI agent evaluation tools miss.
Agentic testing, on this site, means using an AI agent to test an application. This page is about testing an AI agent itself. See What is Agentic Testing?.
A release gate is a set of pass/fail checks that a new version of an AI agent has to pass before it goes to production. It runs the agent's critical tasks end to end and checks the records in the connected system. See What Is an AI Agent Release Gate?.
Yes. Community Edition is free, with 20 runs a month and no credit card. The 20-Minute Vertical Agents Safety Review is free; teams whose agents write into business systems can book a 20-Minute Vertical Agents Safety Review.