Videos
Check out our tutorial video series.
Streamline end-to-end testing with real email addresses using MailSlurp's API. Easily create and verify test email accounts in automated tests.
If you are a software developer you know how hard it can be to test user sign-up on websites or mobile apps. Many applications rely on unique email addresses. Additionally, most user sign up processes rely on email verification. How do we test this in automated tests?
With MailSlurp (a free email API) you can create real email accounts on demand in code or tests. Then you can send and receive emails to imitate user sign up.
Create an account at app.mailslurp.com. Next copy the and use it to initialize a MailSlurp Javascript client.
You can create email addresses for testing user sign-up easily with the asynchronous command. This returns an inbox that has an addresses and an ID.
The resulting inbox will look something like this:
Once you have created a new email address use that to sign-up a user in your tests. We recommend using a browser testing suite like JestPuppetteer or CypressJS or WDIO for this.
If you sign-up process send a confirmation email to the user then you can use your MailSlurp inbox to receive the email in your tests.
MailSlurp is a free email API for testing email related processes like user sign-up and email password reset. Check out the documentation for more.
Check out our tutorial video series.
Email and SMS guides for automation and testing.
View github project code for multiple languages.
Latest posts from the MailSlurp team.
Test, build, and automate messaging with a free MailSlurp account.