Test Data Type: Data Generator


Testsigma allows you to automatically generate test data during test execution through its Data Generators. Data Generators eliminate the need for manual data input and help you create dynamic and robust tests. They can generate various data types such as names, emails, dates, numbers, etc.


Prerequisites

Before you begin, ensure that you have referred to:

  1. Documentation on creating test cases.
  2. Documentation on creating projects.
  3. Documentation on creating test steps.
  4. Documentation on creating test data types.
  5. Documentation on managing default test data generators.
  6. Documentation on creating custom test data generators using Java.

Add Data Generators in Test Steps

  1. Use NLP to create a new step in the Test Case and include a placeholder for test data. Test Data
  2. Click the test data placeholder to replace it, and then select the ! Data Generator from the Test Data Types dropdown menu. Data Generator
  3. Select Type as Default in the Data Generators overlay screen to use a collection of built-in test data generators. Type

    NOTE:

    You can create a data generator add-on and select the Type to use your custom data generator.

  4. Select Function Type from the dropdown list. Function Type
  5. Select Function from the dropdown list, and the system will display a built-in function list corresponding to the selected function type. Function
  6. Click the right arrow before Show Examples. Each function has examples; you can find descriptions of the functions and examples of inputs and outputs. Example
  7. Use the example as a reference, enter inputs in the function fields and click Save to add a data generator in the test step. Inputs