Creating a custom generator
You can create custom generators in addition to the existing generators in the HCL OneTest™ Server catalog. You can customize the existing generators and save them as new custom generators to help you create complex real-world scenarios for synthetic data generation. Additionally, custom generators enable the generation of data for specialized fields or domains that may not be readily available in standard datasets.
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.
- Read information about the built-in basic generators. See Basic generators.
- Read about the parameters of the basic generators. See Basic generators.
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 where you want to store the data generator from the Branch list.
-
Perform one of the following actions to open the Add new
generator dialog:
- Perform the following actions to use the base generator:
-
Click a generator from the Basic category that you want to use as the base generator.
The Generator dialog is displayed.
- Click the Customize icon .
-
- Click the icon in the Catalog page, and then click Add new generator.
Based on the selected Branch, the following dialog is displayed:- Edit Branch: If you selected a branch other than the edit branch.
- Add new generator: If you selected the edit branch.
- Perform the following actions to use the base generator:
-
Perform one of the following actions in the Edit branch
dialog, if you selected a branch other than the edit branch:
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 Add new generator dialog is displayed.
Create an edit branch - Select Create new branch.
- Enter a name for the edit branch.
- Click Save.
The Add new generator dialog is displayed.
- Enter a unique name for the generator in the Name field of the Add new generator dialog.
-
Select a built-in generator from the Base generator
list.
HCL OneTest™ Server displays only the built-in Basic generators as the base generator.
- Perform one of the following actions to select the category of the new generator in the Category list:
-
Perform the following steps to select an existing category:
-
Select an existing category, if any, that is displayed in the Category list.
Note: You cannot create a new generator in the Basic category. Therefore, the Basic category is not displayed in the Category list. - Click Create.
The new generator is added under the existing category of the Catalog page.
-
-
Perform the following steps to add a new category:
- Click Add new category in the
Category list, and then click
Next.
The Add new category dialog displays a new set of fields to capture more details about the new category.
- Enter a unique name in the Category name field where the new generator will be saved in the catalog of HCL OneTest™ Server.
- Select a color from the available range of colors so that you can identify the new category easily.
- Select the location to create the new category in the selected
folder.
For example, if you entered MyFolder/MyCategory in the Category name field, and then selected Location as the location to create the category in the folder, then the category is created under the Location/MyFolder/MyCategory path.
- Click Create.
The new generator is added in the newly created category and is displayed in the Catalog page.
- Click Add new category in the
Category list, and then click
Next.
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.
- Modify the parameters of custom generators. See Modifying custom generators.
- Delete custom generators. See Deleting custom generators.