Skip to main content
Thorough testing is essential before high-stakes product launches. This guide covers testing approaches from development through production readiness.

Testing Environments

Development Mode

Use test API keys during development.
Test mode provides:
  • Isolated data from production
  • Faster rate limits for testing
  • Debug logging enabled
  • No real transactions

Staging Environment

Test with production-like data and configuration.

Unit Testing

Testing SDK Integration

Mock the Fanfare SDK for isolated component tests.

Component Test Example

Testing Event Handlers

Integration Testing

End-to-End Flow Tests

Test complete user journeys using test mode.

API Integration Tests

Test direct API interactions.

Load Testing

Pre-Launch Load Tests

Validate your integration handles expected traffic.

Metrics to Monitor

Functional Testing Checklist

Experience Entry

  • User can enter an active experience
  • Entry is rejected for inactive experiences
  • Entry is rejected when at capacity
  • Re-entry returns existing session
  • Guest users can enter (if allowed) - Authenticated users can enter - Session persists across page refreshes - Session survives temporary network issues
  • VIP users routed to priority sequence
  • Access codes grant correct sequence access
  • Users without access see appropriate messaging

Queue Behavior

  • Initial position is displayed
  • Position updates in real-time
  • Position never goes backward unexpectedly
  • Estimated wait time updates
  • Access notification is immediate - Handoff token is valid - Checkout redirect works - Access expires after timeout
  • User leaving and rejoining
  • Browser refresh during wait
  • Multiple tabs handling
  • Network disconnection and reconnection

Draw Behavior

  • Registration confirmation is shown
  • Entry number is assigned
  • Duplicate registration is prevented
  • Registration closes at scheduled time
  • Winners are notified promptly
  • Non-winners receive appropriate message
  • Winner checkout flow works
  • Waitlist option is available

Error Scenario Testing

Test how your integration handles errors.

Pre-Launch Checklist

Before going live with a high-stakes launch:
1

Environment verification

  • Production API keys configured
  • Debug mode disabled
  • Error tracking enabled
  • Analytics configured
2

Functional validation

  • All user flows tested - Error scenarios handled - Mobile experience verified - Accessibility checked
3

Performance validation

  • Load tested at expected scale - Response times acceptable - No memory leaks - CDN caching configured
4

Monitoring setup

- Dashboards created - Alerts configured - On-call team ready - Runbooks prepared
5

Rollback plan

  • Rollback procedure documented
  • Previous version accessible
  • Database state reversible
  • Communication plan ready

Next Steps