# Expected results

Source: https://timetick.io/docs/tests/expected-results

Check OCPP messages automatically. Say which message and values a test step should see, and TimeTick passes or fails the step for you.

Tell TimeTick which message you want to see during a step, and the values that matter. It compares them with the real messages and passes or fails the step.

For example: after Use RFID Card, expect `Authorize` with the status `Accepted` in the answer.

## Add one

1. Open a test, click the pencil and then a step.
2. Under **Step Expected Results**, choose a message and save it.
3. Click the message and turn on **Request Payload** or **Response Payload**. Fill in only the values you want to check; everything else is ignored.
4. Save the message, the step and the test.

![Authorize may be answered with one of several values.](../../../assets/screens/screen-expected-values.png)

`Remote:` steps already expect their own command, so you only add the details.

## When more than one answer is right

- **Several values are fine.** List all of them for the field, for example `Accepted` and `NotImplemented`.
- **A field may be missing.** Add **absent** to its values, or choose **May be absent** in the menu next to it.
- **Messages may come in any order.** Drag one onto another to put them in one group.
- **An error is the right answer.** Choose **CallError**, or **Response or CallError** if both are fine.

![Two messages that may arrive in any order.](../../../assets/screens/screen-expected-any-order.png)

## Check everything

Turn on **Use Strict Mode** on a step when no other message is allowed while it runs.

## Read the result

Open the run and click the step. You see what you expected next to what arrived, with the difference marked.

![The expected and the actual message side by side.](../../../assets/screens/screen-expected-mismatch.png)
