# OCPP testing from code

Source: https://timetick.io/docs/developers

Automate OCPP tests with the TimeTick CI action, JavaScript SDK, GraphQL API or an AI agent. Pick the one that fits your job.

Choose by what you want to do:

| You want to | Use |
| --- | --- |
| Run a test on every pull request or release | [CI action](https://timetick.io/docs/developers/ci) for GitHub, GitLab and others |
| Write scripts or build tools | [JavaScript SDK](https://timetick.io/docs/developers/sdk-javascript) |
| Describe a test in plain words | [AI agent](https://timetick.io/docs/ai) |
| Work in another language | The GraphQL API |

All of them need an [API key](https://timetick.io/docs/developers/api-keys).

## GraphQL API

Send a `POST` request with your key:

```bash
curl https://app.timetick.io/graphql \
  -H "content-type: application/json" \
  -H "x-api-key: $TIMETICK_API_TOKEN" \
  -d '{"query":"{ projects { id name } }"}'
```

For JavaScript and TypeScript, use the SDK.
