MailSlurp logo

Testing email and SMS with Robot Framework in Python

Use Robot Framework to create throwaway mailboxes and send and receive email and SMS.

View Markdown Agent setup
Robot Framework and MailSlurp integration banner
  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