SMS testing

How to test SMS messages with Mailosaur

Learn how to use Mailosaur phone numbers to create end-to-end tests that cover identity verification, alerting, promotional messages and more.

Using the Mailosaur API you can write SMS tests using common frameworks like Cypress, Playwright, Selenium, and Robot Framework, as well as in popular languages, using our SDKs for SMS testing.

How it works

Testing SMS messages is as simple as:

  1. Assigning a phone number to one of your servers.
  2. Send SMS messages to that number, just as you normally would.
  3. Use the Mailosaur API to create end-to-end tests using the extracted content.

Testing SMS messages

Using Mailosaur’s client libraries you can fetch SMS messages with just a few lines of code.

The code for testing SMS messages is almost identical to testing emails, so you can follow our guides and common test cases to learn more.