Setting the pairwise data property

When you want to generate an optimum test data that covers all possible combinations of item type values for each pair of item types in a schema, you can set the pairwise data property for those item types.

Before you begin

You must have completed the following tasks:

About this task

The pairwise data generation method is a combinational method to find all the possible values of the selected pairs of item types. The pairwise data generation method is efficient when you have a large number of item types and the item type values in a schema. When you apply the pairwise data generation method in such cases, the number of generated test data decreases drastically although covering all the combinations. To implement the pairwise data generation method, you must have multiple item types in a group type of a schema. To assign item type values, you must either import the values of item type from a file or insert values for each item type.

Procedure

  1. Log in to HCL OneTest Server and open the team space that contains your project.
  2. Open your project.
    The Overview page is displayed.
  3. Click Author > Data Fabrication.
    The Data Fabrication page is displayed.
  4. Open your schema from the Schemas tab.
  5. Select the item type from Dictionary for which you want to set the pairwise data property.
  6. Select Restrictions from the Item Properties drop-down list of the Properties dialog.
  7. Set values for the selected item type by using any one of the following methods:
    • Import item type values from the file by using Values from file.
    • Include values for the selected item type in the Properties dialog.
  8. Save the changes.
  9. Select Item Properties from the drop-down list of the Properties dialog.
  10. Click the Advanced Properties icon -.
  11. Select Yes from the Pairwise Data drop-down list.
    Note: The default value of the Pairwise Data drop-down list is No.
  12. Save the changes.
    Important: You must select multiple item types to apply the pairwise data generation method.
    Note: When you want to apply the pairwise data generation method for each item type, you must repeat step 4 through step 10.

Results

You have successfully set the pairwise data property for the selected item type.

What to do next

You must select a group type to generate the test data of a schema. See Generating test data.

Note: The group type that you select to generate the test data can comprise both the item types set for the pairwise data property and the item types that are not set for this property.
Important: When you generate the test data for a group type with a few or all of the item types set for the pairwise data property, then during the test data generation, the value you enter for the Number of records field is ignored. Based on the pairwise data property, HCL® OneTest Data auto calculates the number of records.