Verify Dataset (Compare Mode)
The Verify Dataset element can be used in two modes, a Compare mode and a Verify mode. In the Compare mode it compares two files/data sets at the host.
The element can be used after a Functional Test Component module to compare an output data set produced by the module with an expected data set.
The maximum record size allowed is 32722.
A reference to a Structure which describes the record layout of the data set can be supplied. The fields that are expected to be different can be excluded from the comparison. This is useful for fields that change over time, for example, date and time stamps.
The test scenario will fail if there are differences. The Compare will stop after encountering 10 records with differences.
Add Verify Dataset to the Test Scenario by dragging it from the tool palette. This opens the Insert a new Verify Dataset element popup. Here are the fields available when setting up this element:
- Label - this is the label name you want assigned.
- Description - an optional description of the Test Element.
- Stop execution when verification errors checkbox - When checked, the test scenario execution will stop if there are verification errors reflecting that the two data sets are not equal.
- Compare Datasets tab:
- Actual Dataset - this is the location of the actual data set. The data can be located in a data set member like MY.DATASET.NAME(XAACTUAL) or located in a sequential data set like MY.DATASET.NAME.SEQ.ACTUAL.
- Expected Dataset - this is the location of the expected data set. The data can be located in a data set member like MY.DATASET.NAME(XAEXPECT) or located in a sequential data set like MY.DATASET.NAME.SEQ.EXPECT.
- Structure Name - optional Structure Name attribute points to a Structure in the Structures tab of the Total Test scenario.
When the Structure Name is supplied, the Structure will show in the Excluded fields. You can check fields that you desire to be excluded during this compare. - OK / Cancel - click on OK to save your element.