Modifying custom generators

You can modify the parameters of custom generators from the Catalog page of HCL DevOps Test Hub (Test Hub). You can make modifications to precisely align the test data that uses the custom generators with the desired dataset.

Before you begin

You must have completed the following tasks:

Procedure

  1. Log in to Test Hub.

    The team space that contains your project is displayed.

  2. Click Active projects > My projects > project_name to open the project that contains the test assets.

    The Overview page of the project is displayed.

  3. Click Author > Catalog.
    The Catalog page is displayed.
  4. Select the branch that contains the custom generator for modification from the Branch list.
  5. Select the custom generator for modification.

    The selected Generator dialog that contains the following tabs is displayed:

    Element Description
    The Configuration tab Displays all the existing parameters of the selected custom generator.
    The Details tab
    Provides following details about the selected custom generator and its associated Git details:
    • Name of the branch that contains the generator
    • Description for the generator, if any
    • Git-related details for the generator as follows:
      • Asset ID: The ID uniquely identifies the generator. You also have the option to copy the ID for easy reference or use.
      • Repo: The repository name and path where the generator is stored.
      • Path: The exact location of the generator within the repository.
      • Commit: The Git commit message, the name of the member who performed the changes, and the date and time of the commit.
      • The copy button: You can click the button to copy the complete SHA commit ID for the generator.
      • The commit ID button: You can click the button to view the changes that were made in the commit directly within Git.
      • The browse button: You can click the button to view the specific location in the Git history where the commit was performed for the generator.
    The Usage tab Displays a list of all the Data definitions along with their location in the project that currently use the selected generator.
  6. Perform one of the following actions in the Generator dialog:
    • Perform the required modifications to the existing configurations in the Configuration tab, if you are in the edit branch.
    • Perform the following actions, if you are in a branch other than the Edit branch:
      1. Click the Edit icon .

        The Edit branch dialog is displayed.

      2. Perform one of the following actions in the dialog:

        Action Steps Result
        Select an Edit branch
        1. Select an Edit branch from the Select branch list if the Edit branch already exists.
        2. Click Ok.

        The Catalog page is displayed in the Edit branch. You can open the custom generator and perform modifications to the existing generator configurations in the Configuration tab of the Generator dialog.

        Create an Edit branch
        1. Select Create new branch.
        2. Enter a name for the Edit branch.
        3. Click Save.

        The Catalog page is displayed in the Edit branch. You can open the custom generator and perform modifications to the existing generator configurations in the Configuration tab of the Generator dialog.

  7. Click the save icon in the Generator dialog to save the modified custom generator.
    Note: If you want to continue using the modified generator to generate test data without publishing it, you must save the changes. However, if you want to collaborate with other members of your project, you must publish the changes.

Results

You have modified the parameters of a custom generator.

What to do next

You can perform any of the following tasks: