Generating fabricated test data
You can generate fabricated test data in HCL DevOps Test Hub (Test Hub) to support a wide range of test scenarios. The generated data is saved as a CSV file on your system and can be used to override existing datasets during test execution.
Data fabrication is the process of creating synthetic test data that mimics real-world information without exposing actual user or production data. You can simulate various testing scenarios using structured, configurable, and reusable datasets. In HCL DevOps Test Hub (Test Hub), this process involves defining data structures, applying data generation logic through built-in or custom generators, and producing test-ready datasets that enhance both test coverage and data privacy.
By combining datasets, data definitions, database query and schemas, Test Hub helps you to create realistic, privacy-compliant, and reusable test datasets that improve test coverage and accuracy.
- Generating test data by using data definitions and exporting it to a .zip file.
- Generation of test data using Data definition history.
- Generation of schema based test data and exporting it as a .zip file.
- Generating test data by using data definitions or schema and exporting it to a database.
Generating test data by using data definitions and exporting it to a .zip file
You can create a data definition, add fields, and configure generators to produce realistic test data. Before generating, you can preview the data to ensure it meets your expectations. If the fields have no generators, you can still save the definition, but preview and generation are only available after at least one generator is configured.
Also, the data distribution in a generated test data closely aligns with the configured weightage that you provide in the Distribution field of the generator. Therefore, the accuracy of the test data improves as more number of records are generated. See Basic generators.
See Generating test data by using data definitions and exporting it to a .zip file.
Generation of test data using Data definition history
You can use the History tab in HCL DevOps Test Hub (Test Hub) to view all previously generated test data for a Data definition. From this tab, you can select and regenerate any earlier version of test data without reconfiguring the Data definition. This helps ensure consistency during repeated test runs, simplifies troubleshooting, and supports better collaboration when multiple team members need access to the same test dataset.Generation of schema based test data and exporting it as a .zip file
You can generate test data based on
a schema in HCL DevOps Test
Hub (Test Hub) and
export it as a .zip file containing CSV datasets. This allows you
to use the fabricated data outside Test Hub or share it across different
environments.
Generating test data by using data definitions or schema and exporting it to a database
You can generate test data from a schema in HCL DevOps Test Hub (Test Hub) and export it directly to a connected database. This enables seamless population of test environments with realistic, structured data for end-to-end testing.
See Generating test data by using data definitions or schema and exporting it to a database.