> ## Documentation Index
> Fetch the complete documentation index at: https://docs.base44.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Testing

> Create browser tests for an app, run them, and read the reports with the Base44 Apps API

> [!NOTE]
>
> The Apps API is in beta. Its endpoints and responses may change.

These endpoints work with the testing agent. A test is a goal written in plain language, such as signing up and creating a record. When you run it, the testing agent tries to reach that goal in a real browser. See [Testing your app's flows](https://docs.base44.com/documentation/managing-app-data/testing-agent.md) for the same feature in the Base44 online app editor.

## Tests and runs

A test is the saved goal. A run is one attempt at it. Creating a test is free, and running it costs credits. An app can have up to 250 tests.

**To run a test and read the result:**

1. Create a test with [Create test](https://docs.base44.com/api-reference/create-test.md).
2. Start a run with [Run test](https://docs.base44.com/api-reference/run-test.md). It runs against the app's current preview unless you send a `url`, and it works against the app's test data, not its live data.
3. Poll [Get test run](https://docs.base44.com/api-reference/get-test-run.md) until `status` is no longer `pending`, `running`, or `analyzing`.
4. Read the verdict and the problems found with [Get test run report](https://docs.base44.com/api-reference/get-test-run-report.md). It returns a `404` until the report is written, so wait for `analysis_status` to be `completed`.

A test runs one at a time. Starting it again while a run is going returns a `409`. [Cancel test run](https://docs.base44.com/api-reference/cancel-test-run.md) stops a run that's still going.

## Endpoints

### Tests

* [Create test](https://docs.base44.com/api-reference/create-test.md): Add a test to the app.
* [List tests](https://docs.base44.com/api-reference/list-tests.md): List every test in the app.
* [Get test](https://docs.base44.com/api-reference/get-test.md): Read one test.

### Runs

* [Run test](https://docs.base44.com/api-reference/run-test.md): Start a run of a test.
* [List test runs](https://docs.base44.com/api-reference/list-test-runs.md): List the app's 100 most recent runs.
* [Get test run](https://docs.base44.com/api-reference/get-test-run.md): Read one run and follow its status.
* [Cancel test run](https://docs.base44.com/api-reference/cancel-test-run.md): Stop a run that's still going.
* [Get test run report](https://docs.base44.com/api-reference/get-test-run-report.md): Read a run's verdict, summary, and problems found.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.