Creating custom generators and categories from Data definitions
You can create custom generators and categories from existing Data definitions in HCL OneTest™ Server. After you add an existing generator in a field of a Data definition, you can customize the generator parameters that are displayed for the field. You can then save the customized parameters in the Data fabrication catalog as a new generator. You can also save the new generator either in an existing category or save in a new category.
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 Data definition. See Creating a Data definition.
- 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 Data page and the Data navigator are displayed.
- Open a Data definition in the edit branch.
- Click a generator in the Generator column of a field where you want to customize the configuration.
- Perform any modification in the Generator dialog to customize the existing configuration of the selected field.
-
Click Save to catalog to save the customized parameters
in the catalog of the Data fabrication feature as a new generator.
The Add new generator dialog is displayed.
-
Enter a unique name for the new generator in the Name
field.
HCL OneTest™ Server uses the existing generator as the base generator. Therefore, the Base generator list is not editable.
- Perform one of the following actions to select the category of the new generator:
-
Perform the following steps to select an existing category:
- Select an existing category that is displayed in the Category list.
- Click Create.
The new generator is added in the existing category and is displayed in the Catalog panel of the data definition.
-
Perform the following steps to add a new category:
- Click Add new category in the
Category list, and then click
Next.
The Add new generator 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 panel of the data definition.
- Click Add new category in the
Category list, and then click
Next.