Test data generation from structured schemas

When you want to test your application by using randomly generated test data, then you must generate the test data from the structured schemas.

You can generate the test data for schemas that you import, create, or generate in HCL® OneTest Data by using any external resource. When you generate schemas from any JDBC-supported databases, then you can generate the test data simultaneously for multiple schemas that comprise parent and child schemas. The parent and child schemas are related to each other by using common item types. The item types of the child schema refer to the item types of the parent schema. After you verify the relationship among the selected schemas, you can generate the test data. When you generate the test data by using the related schemas, the generated values of referring item types of the child schema are available in the generated values of the referred item types of the parent schema, based on referential integrity.

The referential integrity among the parent and child schemas in HCL® OneTest Data supports the following relations:
  • One-to-one
  • One-to-many
  • Many-to-one
  • Self-reference
Note: When you generate the test data by using multiple schemas, you must select schemas that are generated by using the same JDBC connection.
When you generate the test data by using the schemas generated in HCL® OneTest Data, then you can either download the generated test data or can insert it into the connected database. You can insert the test data into the following databases if there is a successful connection between HCL® OneTest Data and the database:
  • JDBC-supported databases
  • MongoDB