Values of the Reconciliation: Row by Row Comparison TestStep

A reconciliation test gives you an in-depth comparison between two data sets. It compares each individual source row to each target row. While aggregated tests are faster, reconciliation tests are very precise. However, depending on the size of your data sets, the comparison may be time and resource consuming.

This topic lists all Row by Row Comparison TestStepValues that you need to create your reconciliation test.

Define your source and target

Fill out the Source and Target TestStepValues to connect to your data source and target. You can choose between the following data types:

Additional source and target configurations

There are additional parameters in the Source and Target TestStepValues that let you define how to handle rows, columns, and cells during the reconciliation test.

Define your Row Key

The Row by Row Comparison algorithm uses the Row Key as a unique identifier to compare rows.

Value

Description

Row Key

Specify the Row Key in one of the following ways:

  • Enter one column name.

  • Enter multiple column names separated by semicolons.

  • Enter All Source Columns to use all columns. In this case, the test treats the entire source row as the Row Key. This means you don't get cell differences, only a list of source rows that weren't found in the target.

  • Leave the value blank. In this case, the Row by Row Comparison algorithm uses the entire row as an identifier.

The column name(s) that you specify in the Row Key must be exactly the same as in the table. This includes capitalization and blank spaces.

Row Key with two column names

The following examples illustrate how to specify a Row Key for your Row by Row Comparison and how to interpret the result that you get.

In both examples, you want to match the following tables: source table LEFT and target table RIGHT. Each table has three columns: ID, Col 1, and Col 2.

Example 1: You define one column as the Row Key

In this example, you use the column ID as the Row Key.

You run your Row by Row Comparison and get the following result:

The result shows that the Row by Row Comparison found a matching Row Key for row 1|B|20 in the target row 1|A|20, but the data doesn't match. It considers both rows as processed.

The source row 1|A|20 stays unmatched.

Example 2: You define two columns as the Row Key

In this example, you use the two columns ID and Col 1 as the Row Key.

You run your Row by Row Comparison and get the following result:

The result shows that the Row by Row Comparison tried to find a matching Row Key for row 1|B|20 in the target, but didn't find one. It considers 1|B|20 processed.

Then the Row by Row Comparison tried the next source row 1|A|20. It found a matching Row Key in the target row 1|A|20, and the data matches, too. It considers both rows as processed.

Define general options

Populate the General Options TestStepValues to define general test parameters.

Verify the result

The TestStepValue Result allows you to verify the outcome of the comparison. To do so, enter one of following values into the Value column: 

  • To verify against a successful comparison, enter the value OK.

  • To verify against an expected result, use the result text from the Loginfo once you have executed your TestCase and customized it.

Verify against an expected result