Loadmill
Learn moreSchedule a demo
  • Introduction
    • Loadmill - AI - Powered Solution
    • Deviceless mobile testing
      • Capturing traffic with Loadmill MITM Proxy
      • Loadmill desktop recorder
        • Generating test flows
      • Installing certificate on mobile devices
        • iOS certificate installation
        • Android certificate installation
      • Configuring proxy on mobile devices
        • iOS Wi-Fi settings
        • Android Wi-Fi settings
      • Troubleshooting
    • What is an API
      • API - Data Fetching
      • Quick examples of API requests
      • What is an API endpoint?
    • API Server Testing
      • Contract testing
      • Regression Testing
  • Quick Guide
    • Create Account
    • Download Test Composer
    • Register your first API flow
    • Running Your API Test
  • Loadmill Test Composer
    • Quickstart
    • Composer Layout
    • Filter Settings
  • Test Editor
    • Layout
    • Flows
      • Generated Flow Code
      • Test Flow editor
      • Flow Controls
      • Add CSV to Flow
      • Flow Execution
    • Steps
      • Request step
      • Code step
      • Extraction & Assertion step
      • Web Socket step
    • Extractions - Set Parameters
    • Assertions - Verify Response
    • Parameters
      • Parameter Execution Order
      • Test Suite Parameters
      • Parameters Sets
    • ⨍(⨯) FUNCTIONS
    • Postscript
      • Running Postscript
      • Accessing w/ Postscript
      • Validating Postscript
    • Login/Authentication Flow
    • Before & After Hooks
  • Load Testing
    • Load Test Editor
    • Load Testing Guide
    • Analyzing Load Test Results
    • Parameterized Load Test
    • Domain Verification
    • Configuration Files
    • Load Testing FAQs
    • Load Testing Troubleshooting
  • User Behavior Testing
    • Overview
    • Setup
    • Recording troubleshooting
    • Additional recording methods
    • Recording settings
    • How to work with Recordings
  • Auth
    • Okta SSO integration
    • API Tokens
    • Testing with CORS
    • REST API
  • Integrations
    • Loadmill Agent
    • CI integration
    • GitHub
      • CI integration
      • Data sync
    • GitLab
    • Bitbucket
    • Jira
    • New Relic
    • Slack integration
    • TestRail integration
    • Database Testing
    • Kafka Testing
    • Datadog Integration
    • ✉️Email Testing
    • Webhook Testing
    • Integrations FAQs
    • XRay
    • TestRail
    • gRPC Support
  • Collaboration
    • Collaboration
    • Teams
    • Groups & Reports
    • Test Suite Collaboration
    • Reviews
    • Shared Flows
    • Labels
  • Reporting
    • API Catalog & Coverage
      • API Catalog
        • Unique Entity ID's Mapping
        • Domain Mapping and grouping
        • Endpoints grouping
        • OpenAPI upload
      • Test Coverage
        • Generating API test coverage report
  • General
    • Billing
      • Usage report
    • Settings
      • 📈Analytics
        • Flow Run History
      • 🧳Import & Export
    • General FAQs
    • General troubleshooting
    • Comparisons
      • Loadmill vs. SoapUI
      • Loadmill vs. JMeter
      • Loadmill vs. Blazemeter
      • Loadmill vs. WebdriverIO
      • Loadmill vs. Potato
    • Miscellaneous
      • Running a Test Suite
      • Test Plan
      • API Testing troubleshooting
      • API Testing FAQs
      • Test Editor
        • API Tests - Data from CSV files
Powered by GitBook
On this page
  • Key Concepts
  • User Registration Flow Example
  • Suggested workflow
  1. Integrations

Email Testing

PreviousDatadog IntegrationNextWebhook Testing

Last updated 1 year ago

Automated emails are a common component in many web applications. Since they serve an important role in many critical user-flows such as registration, authentication, and system notifications, they should be tested carefully for any breaking changes.

Using Loadmill's ephemeral inbox and dedicated email API, you can include email workflows in your automated tests.

Key Concepts

The Loadmill ephemeral inbox receives emails at ${domain}+${UUID}@test.loadmill.com where ${domain} is your Loadmill team's email domain and ${UUID} is a random UUID generated by the built-in function in your Loadmill tests.

The Loadmill open email API is available at this URL:https://www.loadmill.com/open-api/emails/${UUID}. Use it to review the latest email sent to that UUID. The API will respond with the content of the last email sent to that address and can be used to extract and validate it.

User Registration Flow Example

Create a dynamic UUID parameter in the parameters section. Set its value to be the built-in __random_uuid function:

Use the UUID parameter to construct a dynamic email address and use it as the user registration email address:

In the following request, use the open email API and the UUID parameter to retrieve the signup verification email:

Use the jQuery extractor to extract values from the email content. This extractor example will extract the link from the "Verify Address" button:

Note: when using the extracted ${link}parameter as the base URL for the following request, give it a default value in the parameters section, in case that no valid URL will be extracted from the email.

Suggested workflow

The last email sent to a specific UUID address will be available in text/html format and stored for 24-48 hours. ()

✉️
example
__random_uuid()