Modifying custom generators
You can modify the parameters of custom generators from the Catalog page of HCL OneTest™ Server. You can make modifications to precisely align the test data that uses the custom generators with the desired dataset.
Before you begin
- Ensured that you are assigned a role as a Project Owner or Tester in the project. See Managing access to the server projects.
- Created a custom generator. See Creating a custom generator.
Procedure
-
Log in to HCL OneTest™ Server.
The team space that contains your project is displayed.
-
Click
to open the project that contains the test assets.
The Overview page of the project is displayed.
-
Click
.The Catalog page is displayed.
- Select the branch that contains the custom generator for modification from the Branch list.
-
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. -
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:
-
Click the Edit icon .
The Edit branch dialog is displayed.
-
Perform one of the following actions in the dialog:
Action Steps Result Select an edit branch - Select an edit branch from the Select branch list if the edit branches already exist.
- 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 - Select Create new branch.
- Enter a name for the edit branch.
- 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.
-
-
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
What to do next
- Publish the custom generators to the project repository so that other members of the project can use the custom generator. See Publishing changes in an Edit branch.
- Delete custom generators. See Deleting custom generators.