Defining properties of schemas
After you generate the schema from the configured database in HCL® OneTest™ Data, you must define the required properties for all schemas.
Before you begin
You must have completed the following tasks:
- Created a project.
- Generated schemas in HCL® OneTest™ Data by using a JDBC connection. See Generating a schema in HCL OneTest Data.
Procedure
- Log in to HCL OneTest™ Server and open the team space that contains your project.
-
Open your project.
The Overview page is displayed.
-
Click
. The Data Fabrication page is displayed.
-
Select the generated schema from the Schemas tab.
For example, schema_<number>
-
Click the Menu icon of the group type of the schema and select
Structure.
You can view the list of all item types associated with the selected group type in the structural view of the schema.
-
Click the Menu icon of all item types in the Structure dialog
box to set the following properties:
Notes:
- The values of both the Min size (digits) and Max size (digits) properties for item types that act as a primary and foreign keys must be same.
- You must set the value of Min size and Max size for an Integer item type such that the number of digits of the generated test data is between the range of 1 and 9 and the generated test data is between -2147483648 to 2147483647.
-
Save the changes.
You must repeat steps 2 through step 5 to set the properties for all schemas.
Results
You have defined the properties for all schemas.
What to do next
You can click Schema Canvas to select the defined and structured schemas that you want to use to generate the test data. See Selecting multiple schemas.