Skip to content
Testsigma DOCS

Test Data

DomainFunctions Function Type


Domain Functions design email addresses with specific domains. They create email addresses that align with a particular organization or domain name, ensuring that the generated emails are correctly formatted for that domain.


Prerequisites

Before you begin, ensure that you have referred to:


Selecting DomainFunctions as a Function Type for Data Generator

Section titled “Selecting DomainFunctions as a Function Type for Data Generator”
  1. From the left navigation bar, go to Create Tests > Test Cases and create a new test case. Test Cases

  2. Use NLP to create a new step in the test case and include a placeholder for test data. NLP

  3. Click on the test data placeholder. From the Test Data Types dropdown menu, select the ! Data Generator option. Data Generator

  4. 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. Default

  5. Select DomainFunctions from the Function Type dropdown list. DomainFunctions


  • Allows you to generate an email address with a specified domain, ensuring the email format adheres to your inputs.
  • It is useful when you create realistic email addresses with domains for testing or in any scenario that requires domain-specific email addresses.
ℹ️Examples:
Inputs Outputs
domain: example.com john.doe@example.com
domain: mycompany.org jane.smith@mycompany.org
domain: school.edu robert.brown@school.edu
domain: organization.net emily.jones@organization.net