Saving a Data definition by adding basic generators with their modified settings
After you create an empty Data definition in HCL DevOps Test Hub (Test Hub), you must add the basic generators with their modified settings, and save the Data definition before you can generate 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.
- Read information about using Data definitions to fabricate test data. See Overview of data fabrication.
- Created a project in your team space in Test Hub. See Adding a project.
- Added the remote Git repository that contains the test resources to the project. See Adding repositories to a server project.
- Created an empty Data definition that is opened for editing.
Procedure
-
Drag a basic generator from the Catalog panel to the Data
definition.
The basic generator is added as a field in the Data definition.
- Drag other basic generators from the Catalog panel to the Data definition to complete the data structure that you want in the fabricated data.
-
Perform the following steps to modify the parameter configurations of a basic
generator in a field of the Data definition:
-
Click the Save icon to save the changes made to the Data definition or the
Save All icon to save all changes made to different Data definitions by using
the same Edit branch.
Note: When you edit different files that include datasets or Data definitions simultaneously, you can select your action from 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.
Results
What to do next
- Preview the test data generated by using the generators added as fields in the Data definition by clicking the Preview icon .
- Generate the test data by using the generators added as fields in the Data definition by clicking the Generate icon .