ES EN
How it works

Executing the tests

How the chatbot connects, how Test Plans are built, and how runs work. Everything that happens when you click Run.

Mental model

To execute, you need 3 pieces:

  1. An Agent Connection — the chatbot you'll test against.
  2. A Test Suite — the cases you want to run.
  3. A Test Plan — the recipe combining the previous two.

Once you have the Test Plan, you can run it as many times as you want. Each run is recorded as an immutable Run.

1. Configure the Agent Connection

Go to Configuration → AI Agents → + New Connection.

Browser connection (Playwright)

For chatbots embedded in a webpage. ArtificialQA runs headless Chromium on its cloud workers and operates it as a user would.

HTTP/API connection (Pro or Enterprise plan)

For chatbots exposing their own endpoint.

Test Connection

Once the connection is saved, use the Test Connection button to validate it. It sends a test message and shows what was sent and received. If it fails, you'll see the exact error (timeout, 401, selector not found, etc.).

🔁 Retries. Each connection has its retry policy. By default, if a question fails due to a transient error (timeout, 5xx) it's retried before marking the case as failed.

2. Build a Test Plan

Go to Test Design → Test Plans → New Plan. Configure:

3. Run the Test Plan

From the Test Plans list, click Run. The platform executes each case from the suite against the configured connection.

Real-time view

While running you'll see:

Run detail screen with metrics and case list
Detail of a completed Run — Total / Passed / Failed / Avg Time metrics on top, list of test cases below with S (Simple) and C (Conversational) badges.

Run states

Conversational cases

When a case is multi-turn, ArtificialQA keeps the session with the chatbot across all turns of the case. Each turn's response is saved and evaluated in the context of the conversation.

Tokens consumed during execution

It depends on the connection protocol:

Other phases that consume tokens, regardless of protocol:

Import results from runs executed outside ArtificialQA

Sometimes ArtificialQA cannot reach your agent: it sits behind a corporate firewall, your own CI/CD pipeline already runs the tests, or the channel cannot be scripted (WhatsApp, for example). In those cases you can run the tests on your side and import the results, so they go through the same evaluation and reporting as any other Run.

Runs screen with the Import run button
The Import run button on the Runs screen opens the import dialog.
  1. Open Runs and click Import run.
  2. Pick a Test plan if it already exists in ArtificialQA. Leave it empty to create a new plan, suite and test cases from your file (give the plan a name; the suite name is optional).
  3. Need a starting point? Download a JSON or Excel template for single-turn or multi-turn (conversational) cases, and replace the example rows with your data.
  4. Select your .json or .xlsx file, click Validate to check it, then Import.
Import execution results dialog
The import dialog: optional plan selector, new plan details, downloadable templates and file picker.

Imported Runs show an Imported badge in the list. When creating a new plan from a file, the organization's test-case quota applies (Free and Pro limits). Tool-calling tests are supported too: expected and actual tool calls travel in the same file. The same import is available via MCP and the REST API.

Immutable snapshots

Each Run stores a complete snapshot: input sent, headers, raw response, timings, and logs. Even if you later modify the Test Case, the Connection, or the Suite, the Run preserves exactly what happened that time.

That's what allows auditing and reproducing results months later.

Common errors and how to fix them

Next step

You now have the Run with all responses. The next step is activating the evaluators on that run.