Mediloop
TEST YOUR CONNECTOR5 of 8

Test your Connector

Verify your connector works correctly, handles errors and meets Mediloop requirements.

Create
Project structure
Configure
Build
5
Test
6
Go live
Thorough testing ensures reliability and a smooth go-live. Use the Mediloop Sandbox to safely test against realistic data.

1. Test strategy

Unit tests — test handlers and utilities in isolation
Integration tests — test end-to-end workflows
Sandbox testing — test with Mediloop Sandbox environment
Negative & resilience testing — validate error handling and retries
Performance & load testing — ensure your connector scales

2. Run automated tests

Using CLIUsing npm scripts
bashCopy
# Run unit tests
npm run test:unit

# Run integration tests
npm run test:integration

# Run all tests
npm test
All tests passed!
128 passed, 0 failed, 0 skipped

3. Test in Mediloop Sandbox

Base URLhttps://sandbox.api.mediloop.com
Tenant IDsandbox-tenant-123
EnvironmentSandbox
Generate sandbox credentials →
4
Validate mappings & FHIR
Validate resources against FHIR schemas
Send mapped payloads to Sandbox endpoints
5
Simulate failures
Network failures
Rate limiting (429)
Server errors (5xx)
Invalid data
6
Test data
Patient data
Clinical data
Operational data
Files & documents
7
Readiness report
Unit tests — 128 passed
Integration tests — 42 passed
Sandbox scenarios — 18 passed
FHIR validation — No errors
Performance — Good
Great job!
Your connector passed all tests in the Sandbox. You're ready to go live when you are.