Phone Number Function Type

Phone Number Function Type


Phone Number Function Type allows you to generate random, realistic phone numbers for. It includes functions that generate cell numbers and phone numbers for both landline and mobile use. This function type ensures that your applications have varied and random phone number data.


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 Phone Number 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 Phone Number from the Function Type dropdown list. select phone number function type from data generators
NOTE:

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


Cell Phone

  • Enables you to generate random cell phone numbers.
  • It formats the generated phone numbers to match typical cell phone number patterns, ensuring they appear realistic.
ℹ️Example:
  • Input: None (This function does not require any specific input)
  • Output:
    • (820) 332-7751
    • +1 555-123-4567
    • +61 412 345 678
    • +1-909-047-5395

Phone Number

  • Allows you to generate random phone numbers.
  • It is helpful for testing contact forms, databases, and user profiles with random phone number data.
ℹ️Example:
  • Input: None (This function does not require any specific input)
  • Output:
    • 483.497.7780
    • +1 212-555-7890
    • 1-677-575-0974 x4290
    • 1-106-694-1031 x4038