EmailFunctions Function Type


The EmailFunctions function type enables users to generate various types of email addresses with ease. It provides multiple functions to create email addresses with different configurations, allowing users to meet specific needs for different scenarios.


Prerequisites

Before utilising the different data generator functions, it's essential to understand basic concepts such as creating Test Cases and Test Steps and adding data generators in test steps.


Selecting EmailFunctions as a Function Type for Data Generator

  1. Use NLP to create a new step in the test case and include a placeholder for test data.
  2. Click on the test data placeholder. From the Test Data Types dropdown menu, select the ! Data Generator option.
  3. On the ! Data Generators overlay screen, select the Type to Default. This will enable you to use a collection of built-in test data generators.
  4. Select EmailFunctions from the Function Type dropdown list. select emailfunctions function type from data generators
NOTE:

This action will display a list of built-in functions associated with the EmailFunctions function type, enabling you to select the appropriate function based on your requirements.


Username

  • Allows you to generate a username with a specified length. This is useful for creating usernames for registration forms or login systems.
ℹ️Example:
Input Output
username length: 10 johnsmith1
username length: 6 sarah5
username length: 10 sarahglenn
username length: 6 robert

Random Apha Numeric Email

  • Enables you to generate a random alphanumeric email address with a specified username length. This is ideal for generating unique email addresses for temporary registrations or testing environments.
ℹ️ Example:
Input Output
username length: 8 abc12345@example.com
username length: 12 xyz67890abcd@example.com
username length: 10 pqrs9876@example.com
username length: 6 mno345@example.com

Random Apha Numeric Email with Domain

  • Allows you to generate a random alphanumeric email address with a specified username length and domain. This is suitable for creating email addresses with specific domains for internal systems or controlled environments.
ℹ️ Example:
Input Output
username length: 10
Domain: mydomain.com
user1234ab@mydomain.com
username length: 8
Domain: example.org
test5678@example.org
username length: 12
Domain: mail.com
alpha890beta@mail.com
username length: 6
Domain: customdomain.com
abc456@customdomain.com

Random Email with Domain

  • Enables you to generate a random email address with a specified username length and domain. This is useful for generating realistic email addresses for customer databases or user profiles with specified domains.
ℹ️ Example:
Input Output
username length: 6
Domain: sample.com
user12@sample.com
username length: 8
Domain: example.com
test4567@example.com
username length: 10
Domain: domain.org
randomuser@domain.org
username length: 7
Domain: mail.net
abc1234@mail.net

Random Email

  • Allows you to generate a random email address with a specified username length. This is useful for general purposes, ensuring uniqueness and randomness in email addresses.
ℹ️ Example:
Input Output
username length: 12 randomuser@domain.com
username length: 10 sampleuser@domain.com
username length: 8 testuser@domain.com
username length: 6 user01@domain.com