You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This project shows you how to use the [MailSlurp REST API](https://swagger.mailslurp.com/) to create email accounts and receive OTP codes within ReadyAPI test cases.
4
+
5
+
## Setup
6
+
- Get a free [API Key](https://app.mailslurp.com) and set it as the `apiKey` Authorization JWT Bearer token.
7
+
- Import the MailSlurp API from our [definitions endpoint](https://api.mailslurp.com/v2/api-docs/).
8
+
- Run the test and inspect the steps.
9
+
10
+
## How it works
11
+
This demo runs a test against a demo app with a sign-up and confirmation user flow. We can sign up with an email address and the app sends us a confirmation code that we must submit to confirm the user account. The steps are as follows:
12
+
13
+
- Call MailSlurp createInbox endpoint
14
+
- Store the emailAddress and id as variables/properties
15
+
- Submit emailAddress to the test app signUp endpoint
16
+
- Call MailSlurps waitForLatestEmail endpoint with the id
17
+
- Receive email and store emailId
18
+
- Use MailSlurp contentMatch feature to extract the OTP code
19
+
- Store OTP code as variable and submit it to test application confirm endpoint
20
+
- Assert 200,201 status code for user confirmation
0 commit comments