testing
Create test cases and run them against your AI Agent, on the live configuration or on a change set. These are the test cases and runs of Simulations in the dashboard.
Commands
Examples
Create a test case with two success criteria:
Create several test cases from a JSON file:
Draft a test case from a real conversation. The draft says how to write, save, and run the test case:
Run two test cases three times each on a change set:
Compare the live runs with the change set runs:
Details
cases create --from-jsonignores--variables,--external-systems, and--custom-metric. Putvariables,external_systems, andmetric_idsin the file.cases from-conversationsaves nothing. To save the test case, runcases create.runs createreads the daily quota before it starts the runs. If the batch may not fit, adacli prints a warning and starts the runs.--no-quota-checkskips the read.- The default daily limit is 3,000 test runs.
runs create --block-external-callsmocks every API tool. It also blocks every request from a code tool, an MCP tool, and an HTTP Request block.- In
runs list,--changesets baselinekeeps only the runs on the live configuration. - A run on a change set removes the
untestedwarning ofchangesets promote.
For every option of a command, run it with --help, for example adacli acme testing cases create --help.
Related commands
changesets: stage the changes that a test run checks.chat: chat with the AI Agent to check one reply.custom-metrics: get the IDs for--custom-metric.