# Build a test

Source: https://timetick.io/docs/tests/build-a-test

Build an OCPP test in TimeTick from ready steps, start from a ready-made test, or describe it and let AI draft the steps for you.

The quickest way to a test is a ready-made one. You can also build your own or let AI draft it.

## Start from a ready-made test

1. Open **Test Scenarios** and click **Add Test Scenario**.
2. Click the cloud icon next to the save button and search, for example for `TC_003_CSMS`.
3. Click **Load from template**, enter a name and save.

The copy is yours to change. Ids that end with `_CSMS` test a CSMS, and `_CS` tests a charger.

## Build your own

1. Open **Test Scenarios**, click **Add Test Scenario** and enter a name.
2. Under **Requirements**, click **Add item** and choose the OCPP version. You choose the real simulator or charger when you run the test.
3. Add steps and fill in their settings, such as the connector, the card and the charging time.
4. Click a step to add the [messages you expect](https://timetick.io/docs/tests/expected-results).
5. Click **Save Test Scenario**.

For a first test, use these steps: Power On Charger, Plug In Connector, Use RFID Card, Charge a Vehicle, Plug Out Connector, Power Off Charger.

## Let AI draft it

In the test editor, click the sparkle button at the bottom right and describe the test to the **AI Assistant**:

```text
Charge for 10 minutes with card 04A2B9C1, then stop the session
remotely from the CSMS.
```

Check the steps, then apply them.

## Two things at once

Drag a step to the right to start a second column. Columns run in parallel, so you can charge two cars on one charger, or reset the charger in the middle of a session. To start a column later, put a Wait step first.

## Two chargers in one test

Add a second charger under **Requirements** and give it its own steps. Use it when chargers affect each other, such as sharing a power limit.
