Modifying a data definition
After you create and publish a data definition in HCL DevOps Test Hub (Test Hub), you can modify the fields or the configuration of the generators in an existing data definition when you want to change the structure of the test data.
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 an empty data definition.
Procedure
-
Log in to Test Hub.
The Projects page of the initial team space 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 panel are displayed.
-
Click the data definition that you want to edit in the data navigator
panel.
Alternatively, right-click the data definition in the data navigator panel, and then click Edit.
The selected data definition opens in the Data page.
-
Perform the actions that are listed in the following table to modify the data
definition:
Modification Action Addition of new fields Click the Add field option, and then enter a name for the field in the Name column. Note: A new row with an empty field is automatically displayed below the row that you edit.Addition of generators in fields Drag a generator from the Catalog panel into a field under the Generator column. Note: You can use the Search catalog field in the Catalog panel to find the required generator.Replacement of generators in fields Drag a generator from the Catalog panel into an existing generator field under the Generator column. The existing generator in the field is automatically replaced by the generator. Modification of generator configurations Click a generator in the Generator column. The generator configurations are displayed. Modify the options and settings in the generator configuration. Note: If you modify the configurations of a basic generator, the changes are applicable only when the generator is used as field in a Data definition. The basic generator that is available in the catalog is not modified nor saved.Inclusion of additional configuration details Click the Add new configuration tab. Provide a name, and enter or select the other settings as an additional configuration to the generator. Arrangement of fields Drag and drop the field rows in the Data definition panel to rearrange the fields in the order you want. Deletion of fields Click the delete icon in the row of a field to remove the field from the Data definition.
Deletion of Data definition Click the Delete icon in the Data definition panel to delete the Data definition from the existing location.
-
Click the Save icon
to save the changes made to the Data definition or the Save
All icon
in the Data navigator panel to save all changes made to different Data
definitions by using the same Edit branch.
Note: When editing multiple assets (such as datasets, data definitions or schemas) simultaneously, right-click a test asset in the Data page to manage open tabs using 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. -
Click the Publish icon
to publish the changes made to the data definition to the
branch in the project repository.