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

  1. Select your project in Rational® Test Automation Server and navigate to the Data Fabrication page.
  2. Select the schema name schema_<number> from the Schemas tab.
    The schema is displayed.
  3. 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.

  4. Click the menu for the Row group type, and then set the property as Set Required.
  5. 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.

  6. Click Save.
  7. 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.

  8. Provide the number of records that you want to generate in Number of records.
  9. Optional: Provide a seed value that acts as a reference number to generate the same set of data in Numeric Seed Value.
  10. 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.