> For the complete documentation index, see [llms.txt](https://developer.openactive.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.openactive.io/open-booking-api/test-suite/implementing-the-test-interface.md).

# Implementing the Test Interface

Some subset of the [Test Interface](https://openactive.io/test-interface/) needs to be implemented in order to finally [test your booking system](/open-booking-api/test-suite/running-test-suite.md).

Which parts ot the Test Interface need to be implemented depends on [your choice of Controlled mode or Random mode](/open-booking-api/key-decisions.md#controlled-mode-or-random-mode).

### Controlled Mode

{% hint style="info" %}
In order to use Controlled mode, more of the Test Interface needs to be implemented. But the trade off is that testing is much easier and more reliable. **This is the recommended choice**.
{% endhint %}

When using Controlled mode, the following parts of Test Interface need to be implemented in your booking system:

* **Datasets Endpoints** ([spec](https://openactive.io/test-interface/#datasets-endpoints) — see for more details):
  * These endpoints are called by [Test Suite](/open-booking-api/test-suite.md) to create test opportunity data in your booking system, and – later – to clean up that test opportunity data.
  * See the
* **Actions Endpoints** ([spec](https://openactive.io/test-interface/#actions-endpoint)):
  * This endpoint is called by [Test Suite](/open-booking-api/test-suite.md) to simulate different kinds of booking actions, like an update to a booking's access pass.
  * See the [**Actions** page for details on what to implement](/open-booking-api/test-suite/implementing-the-test-interface/test-interface-actions.md).

### Random Mode

{% hint style="info" %}
In order to use Random mode, less of the Test Interface needs to be implemented. But the trade off is that it is more difficult to do reliable and consistent testing. Therefore, **the recommended choice is to use** [**Controlled mode**](#controlled-mode).
{% endhint %}

When using Random mode, the following parts of Test Interface need to be implemented in your booking system:

* **Actions Endpoints** ([spec](https://openactive.io/test-interface/#actions-endpoint)):
  * This endpoint is called by [Test Suite](/open-booking-api/test-suite.md) to simulate different kinds of booking actions, like an update to a booking's access pass.
  * See the [**Actions** page for details on what to implement](/open-booking-api/test-suite/implementing-the-test-interface/test-interface-actions.md).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://developer.openactive.io/open-booking-api/test-suite/implementing-the-test-interface.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
