background image
<< Using Keys to Compare Data Files | Using the Image Comparator >>
<< Using Keys to Compare Data Files | Using the Image Comparator >>

Editing the Baseline File

Using the Grid Comparator
237
If you have not specified keys that ensure uniqueness, the test can fail because Robot
might compare the selected record to a record that contains similar values but that is
not the record you want to test. You can experiment by changing the keys in the
Comparator to improve the predictability of the verification point.
If the database schema changes, change the keys in the Comparator to identify new
and unique columns.
To use keys to compare data files:
1
Click the name of a column in the Baseline file.
2
Click the right mouse, or press
CTRL+K
to add or remove a key.
The data in the Baseline and Actual files should be automatically compared again.
At this point you can evaluate the new key placement.
If a key column in the Baseline file has different data from the Actual file, the
Differences list displays
Row not found: Row x
and includes the value from the
Baseline key column.
If there are no key columns and the row data in the Baseline and Actual files does not
match exactly, the Differences list displays
Row not found: Row where x
and
includes each column name and value from the Baseline file.
Editing the Baseline File
When you make intentional changes to the application-under-test, you may need to
modify the Baseline file to keep it current with the developing application.
When editing the Baseline file, you can:
s
Edit the data.
s
Edit a menu item.
s
Cut, copy, and paste data.
s
Copy data from the Actual to the Baseline file.
s
Save the Baseline file.
Note:
You cannot edit the Actual file.
For step-by-step instructions, search for each task in the Grid Comparator Help.