Saving a Data definition by adding basic generators with their default settings

After you create a Data definition in HCL DevOps Test Hub (Test Hub), you must add the basic generators with their default settings and save the Data definition before you can generate test data.

Before you begin

You must have completed the following tasks:

Procedure

  1. Drag a basic generator from the Catalog panel to the Data definition.

    The basic generator is added as a field in the Data definition.

  2. Drag other basic generators from the Catalog panel to the Data definition to complete the data structure that you want in the fabricated data.

    Do not change any of the fields in the Data definition or the configuration of the basic generators.

    For example, if you want to fabricate data about persons with their name, address, phone number, and a unique ID for each name or record, you can drag the Name, Address, Phone, and UUID generators to the Data definition, without making any changes to any of the fields in the Data definition or in the basic generators.Image of the data definition with basic generators
  3. Click the Save icon Image of the save icon. to save the changes made to the Data definition or the Save All icon Image of the Save all icon to save all changes made to different Data definitions by using the same Edit branch.
    Note: When you edit different files that include datasets or Data definitions simultaneously, you can select your action from the following options:
    To... Do this...

    Keep your current file open and close the open files on the right.

    Right-click, and then click the Close Tabs to right option.

    Keep your current file open and close the open files on the left.

    Right-click, and then click the Close Tabs to left option.

    Keep your current file open and close all the other open files.

    Right-click, and then click the Close Others option.

    Close all open file tabs.

    Right-click, and then click the Close All Tabs option.

    Note: The changes you made are only visible and available to you in the Edit branch. You must publish the changes in the Edit branch to the branch in the project repository for the changes to be visible to the other members of the project.
  4. Click the Publish icon publish_icon to publish the changes made to the Data definition to the branch in the project repository.

Results

You edited and saved a Data definition after adding basic generators with their default settings.

What to do next

You can perform any of the following tasks:
  • Preview the test data generated by using the generators added as fields in the Data definition by clicking the Preview icon Image of the preview icon..
  • Generate the test data by using the generators added as fields in the Data definition by clicking the Generate icon Image of the preview icon..