Generating test data by using the generated schema
After you generate the schema in HCL OneTest™ Data, you can use this schema to generate the test data in HCL OneTest Data.
Before you begin
You must have generated the schema by using the connection that is established between HCL OneTest Data and Excel. See Generating a schema based on Excel file.
Procedure
- Select your project in HCL OneTest™ Server and navigate to the Data Fabrication page.
-
Select the schema name schema_<number> from the
Schemas tab.
The schema is displayed.
-
Select the Sheet group type, and then select
Structure from the menu.
You can view a group as Row in the structure of the schema. All item types of a schema are listed under the Row group type.
- Click the menu for the Row group type, and then set the property as Set Required.
-
Click the menu for all the item types that you want to use to generate the test data,
and then set the property as Set Required.
Note: If you have a numeric item type, you must set Min size (digits) and Max size (digits) properties.
For example, when you select Integer as Presentation, then you can set the Min size (digits) as 1 and the Max size (digits) as 9.
- Click Save.
-
Select the Sheet group type in the
Dictionary dialog box, and then click Generate
Data from the menu.
The Generate Data dialog box is displayed.
- Provide the number of records that you want to generate in Number of records.
- Optional: Provide a seed value that acts as a reference number to generate the same set of data in Numeric Seed Value.
- Select the output file format for the generated test data from the list, and then click OK.
Results
You have successfully generated the test data by using the generated schema.
What to do next
You can click the Jobs tab to view the status of the job. You can then download the generated test data of the jobs that are completed successfully.