Challenge

# Test mode

Verify with the secret key `test` to try your integration without solving a challenge in a browser. The solution you send decides the result.

## Forcing a result

The solution `ok` passes. Any other solution fails.

JavaScript

```javascript
// The solution "ok" passes
const OK_REQUEST_DATA = { secretKey: "test", solution: "ok" }
const OK_RESPONSE = { ok: true, message: "Test key" }

// Any other solution fails
const NOT_OK_DATA = { secretKey: "test", solution: "nok" }
const NOT_OK_RESPONSE = { ok: false, message: "Test key" }
```

`message` is always `Test key`, so a test result cannot be mistaken for a real one in your logs.

## What test calls skip

The test key belongs to no configuration. Test calls are not recorded, do not appear in the dashboard and never count toward your plan.

Switch to your configuration's secret key before you deploy. See [Challenge keys](https://botpoison.com/documentation/challenge/keys/).
