Name Function Type


The Name Function within data generators offers a variety of functions designed to generate random names. These functions include first names, middle names, last names, prefixes, suffixes, titles, and usernames. The Name Function in data generators is invaluable for generating realistic names for testing scenarios, simulations, or database populations. This document outlines the various functions available within the Name Function type of data generators.


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 Name 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 Name from the Function Type dropdown list. select name function type from data generators
NOTE:

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


Name

  • Enables you to generate random first and last names. Use it to create user profiles or generate names for forms.
ℹ️Example:
  • Input: None (This function does not require any specific input)
  • Output:
    • Neha Grant
    • Vern Sanford
    • Michael Johnson
    • Sarah Davis

Name with Middle

  • Allows you to generate more detailed name data including middle names for forms that require middle name fields.
ℹ️Example:
  • Input: None (This function does not require any specific input)
  • Output:
    • Roel Roel Ziemann
    • Alysa Alysa Williamson
    • John John Michael
    • Emily Emily Brown

Full Name

  • Enables you to generate complete random names including first, middle, and last names. This is useful for detailed entries where all name parts are required.
ℹ️Example:
  • Input: None (This function does not require any specific input)
  • Output:
    • John Michael Doe
    • Eden Gaylord Jr.
    • Emily Anne Brown
    • Michael Lee Johnson

First Name

  • Allows you to generate random first names using it for filling out fields where only the first name is required.
ℹ️Example:
  • Input: None (This function does not require any specific input)
  • Output:
    • John
    • Daron
    • Emily
    • Sarah

Last Name

  • Enables you to generate random last names, which are useful for scenarios requiring surnames.
ℹ️Example:
  • Input: None (This function does not require any specific input)
  • Output:
    • Smith
    • Hilpert
    • Brown
    • Johnson

Prefix

  • Enables you to generate random name prefixes, add titles, and other formal honorifics. Prefixes denote titles, honorifics, or social standing. They provide a formal data to the name, showing respect, profession, or marital status.
ℹ️Example:
  • Input: None (This function does not require any specific input)
  • Output:
    • Mr.
    • Mrs.
    • Dr.
    • Ms.

Suffix

  • Allows you to generate a random suffix for a name. Suffixes indicate generational ties, professional qualifications, or honorifics. They frequently signify a person's rank, lineage, or achievements.
ℹ️Example:
  • Input: None (This function does not require any specific input)
  • Output:
    • Jr.
    • MD
    • Sr.
    • PhD

Title

  • Allows you to generate a random title, such as a job title or an honorific, to simulate professional scenarios requiring job titles, such as HR systems or organizational charts.
ℹ️Example:
  • Input: None (This function does not require any specific input)
  • Output:
    • Engineer
    • Chief Assurance Engineer
    • Professor
    • Doctor

Username

  • Enables you to generate a random username, typically based on the first and last names or random alphanumeric characters, for testing login systems, user registration processes, and other scenarios requiring unique usernames.
ℹ️Example:
  • Input: None (This function does not require any specific input)
  • Output:
    • johnsmith
    • edmond.heller
    • emily.brown
    • sarah.davis