Checkpoint Wizard - Selecting Baseline File Copy for Comparison (File Checkpoints)

Applies to TestComplete 15.73, last modified on March 04, 2025

On this page of the Checkpoint wizard, you can select the baseline copy to compare the desired file with. To specify the file that will be used as the baseline copy for comparison, select:

  1. Specify the file that will be used as the baseline copy for comparison:

    • To use the selected file as the baseline one, click Use selected file as baseline copy.

      In the Save the file to Stores as a baseline copy text box, enter the name of the Stores > Files collection element that will store the baseline copy.

      Note: This name will be used to address the element from tests, so the name must be a valid identifier. To create a name that will match the rules of any scripting language supported by TestComplete, enter a name that starts with a letter and contains only letters, digits, and underscore symbols.
    • To select an existing baseline file from your test project, click File from Stores.

      Select the needed Stores item from the drop-down list.

  2. Specify the Allowed difference parameter. It indicates the allowed difference between files (in bytes). This value is needed when the compared files are logically identical but differ physically. For instance, you may compare two lists of customers that contain the same data but have different formatting.

    The comparison procedure calculates the value of the actual difference between the compared files and checks this actual value with the value specified in the Allowed difference edit box. If the values are the same, TestComplete considers the files as identical. See Comparing Files by Bytes for details.

If you create a checkpoint for a keyword test, then upon closing the wizard with the Finish button, TestComplete will insert the File Checkpoint operation to the test.

If you create a checkpoint for script code, then upon closing the wizard, TestComplete will generate and display the script code that will compare the specified files. You can then insert this code into your script units.

See Also

Checkpoint Wizard
About Checkpoints

Highlight search results