# Test your integrations

Every integration has a **Send a test** button, so you can check it works without waiting for a real submission or filling in your own form.

## How a test works

- It uses **what is on the screen**, even before you save or switch the integration on. Paste an address or token and test it straight away.
- It sends **made-up answers** ("Test Patient", `test.patient@example.com`). No patient information is sent, so no acknowledgment is needed to run a test.
- The result appears **next to the button**: what was sent and where to look, or the reason it failed.
- Nothing is saved, and tests do not appear in the delivery log. Each test is recorded in your audit log.

## What each test sends

| Integration | Where | What arrives |
|---|---|---|
| Email notification | Integrations tab | The notification, labelled "Test:", to the addresses you entered |
| Slack, Teams or Google Chat alert | Integrations tab | A test line in the channel. Never answers |
| Webhook | Integrations tab | A signed sample payload with `"test": true` |
| Google Sheets | Integrations tab | One sample row |
| HubSpot | Integrations tab | A contact for `test.patient@example.com` |
| Salesforce | Integrations tab | A lead named Test Patient |
| EHR (FHIR) | Integrations tab | A sample `QuestionnaireResponse` |
| Confirmation email to the respondent | Settings tab | The message as written, sent to you only |
| API subscription | REST API | `POST /api/v1/hooks/{hook_id}/test` |

Tests to Google Sheets, HubSpot, Salesforce and a FHIR server create a real row, contact, lead or resource in that system. Delete it when you are done.

## If a test fails

**"Outbound email is not configured on this server yet."** Email cannot be sent from this installation yet. Contact support.

**"… responded with HTTP 4xx or 5xx."** The other system refused the request. Check the address, and that the endpoint accepts `POST` requests from the internet.

**"HubSpot did not accept the access token."** Create a private app with the `crm.objects.contacts.write` scope and paste its token again.

**"Google could not open the spreadsheet."** Share the spreadsheet with the service account address shown on the page, as an Editor, and check the link.

**Salesforce says it worked but no lead appears.** Web-to-Lead does not confirm. Check that Web-to-Lead is enabled and that the organization ID starts with `00D`; a lead can take a minute.

**The test worked but real submissions do not arrive.** A test does not switch the integration on. Turn it on, tick the confirmation where one is shown, and select **Save integrations**. Then look at the **Delivery log** at the bottom of the Integrations tab.

Developers: payloads, signatures and retries are described in [Webhooks](https://app.hipaaform.ai/docs/webhooks) and [Automations and integrations](https://app.hipaaform.ai/docs/automations).
