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.

You can generate fabricated test data in the following ways:
  • 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.

Note: While configuring the generator parameters for a field in a Data definition, you must use the Allowed option of the Duplicates field of the generator with caution, particularly when you configure the data generator with a narrow criteria for data generation. If you enable the Allowed option in scenarios where duplications are not feasible within the defined criteria, then the preview or generation of test data might not be successful.

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.

See Generating test data by using data definition history.

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.

See Generating and exporting schema-based test data to a .zip file.

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.