Skip to main content

Testing email and SMS with Robot Framework in Python

  1. Install Robot Framework and your Python dependencies.
  2. Configure the MailSlurp API key as an environment variable.
  3. Use helper keywords to create inboxes and wait for messages.
  4. Isolate test data by creating new inboxes per scenario or test run.

Common test flow

  • Create inbox
  • Trigger app action that sends email/SMS
  • Wait for message with bounded timeout
  • Assert message content and links/codes
  • Cleanup resources where needed

Resources