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

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

On this page of the Checkpoint wizard, you can specify the baseline contents against which the contents of your PDF file will be compared:

Option Description
Current file contents Use the contents of a PDF file you have specified on the previous page of the wizard. Enter the name of the Stores > Files item that will keep the baseline data.
Note: This name will be used to address the item from tests, so it must be a valid identifier. To 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.
File from Stores Use the existing Stores > Files item as a baseline copy. Select the needed item from the drop-down list.
Note: The selected item must store text contents (it must be either a text file or a PDF file saved as a text file). Otherwise, TestComplete will not be able to perform comparison.

The Allowed difference value specifies the expected difference between the actual and baseline file contents (in bytes). The comparison procedure will calculate the actual difference and check it against the expected value. If the actual value is less than or equal to it, TestComplete will consider the contents identical. See Comparing Files by Bytes for details.

Click Finish.

If you are creating a checkpoint for a keyword test, TestComplete will insert the PDF Checkpoint operation to the text.

If you are creating a checkpoint for script code, TestComplete will generate and show the code that will compare the specified PDF files. You can then copy the code and insert it to your script.

See Also

Checkpoint Wizard
About Checkpoints

Highlight search results