Generating test data by using default settings of basic generators
You can generate data by using the default settings of basic generators that are added to a Data definition.
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.
Procedure
-
Log in to Test Hub.
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.
- Select the branch in the project repository from the Branch list.
-
Find the Data definition that you want to view, and then click it.
Note: You can either enter the name of the Data definition in the Search field or expand the project and manually search in the Data navigator.The selected Data definition opens in the Data page.
- Optional:
Click the Preview icon
to preview the test data that you want to generate.
The test data is generated in the preview dialog.
Note: You can preview a test data to ensure whether the data is in the expected format. You can have a glimpse of the generated test data that can help you to identify any potential issues, inconsistencies, or errors in the Data definitions. If you modify the data definition but not save it, you can still preview the corresponding test data. However, you can generate the test data only after you save the data definition. -
Click the Generate icon
either from the Data page or from the preview page.
The Generate data dialog is displayed.Note: If you are in an Edit branch, then you can access the Generate icon from the preview dialog only if the data definition is saved.
-
Perform the following actions in the Generate data
dialog:
- Enter a name in the Name field to identify the test data when generated.
- Enter the number of rows that you want to generate in the Number of Rows field.
-
Optional: Enter the seed value in the Seed field.
Whenever you generate test data to perform application testing, the generated data is different. You can produce the same set of data multiple times by setting the seed value.
For example, assume that you have used the seed value as 1 to generate test data from a data definition. When you want to create another test data with the same set of values, then you can provide the seed value as 1 during the creation of the test data.
- Clear the Include headers option if you do not want to include headers in the generated test data.
- Click the Download option to initiate the generation of the test data.