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

After you create an empty Data definition in HCL DevOps Test Hub (Test Hub), you must add the basic generators with their modified 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.
  3. Perform the following steps to modify the parameter configurations of a basic generator in a field of the Data definition:
    1. Click a generator in the Generator column of a field where you want to customize the configuration.
      The parameters of the generator are displayed in the Generator dialog.
    2. Change the parameter settings in the Generator dialog to customize the generator.
    3. Close the Generator dialog.
      The changes in the generator configuration are automatically saved.
  4. 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.
  5. 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 and then modifying the configuration of the generators.

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