Updating PDF Checkpoints

Applies to TestComplete 15.47, last modified on January 20, 2023

You may need to update baseline data used by a PDF checkpoint in order for the checkpoint to pass. You can do this either from tests or from the test log after the test run is over.

From Tests

The baseline data used by PDF checkpoints are stored in the Stores > Files collection of your project as text files. You can update these files directly from your tests. This may be convenient if you need to batch update multiple checkpoints:

  1. Enable the global update option:

    1. Select Tools > Options from the TestComplete main menu. This will open the Options dialog.

    2. Select the Engines > Stores category.

    3. Select the Update files check box.

    4. Click OK to save the changes and close the dialog.

    Enable global update option in TestComplete

    Click the image to enlarge it.

  2. Select the checkpoints to update:

    1. In the Project Explorer, double-click the Stores > Files item. This will open the Files collection.

    2. Select the Update check box of the files you want to update.

    3. Save the changes.

    Enabling update for individual checkpoints

    Click the image to enlarge it.

  3. Run your tests that include one of the following:

During the test run, the selected checkpoints will not perform verification. Instead, TestComplete will replace the stored text content with the content of actual files.

From the Test Log

If a PDF checkpoint fails, you can easily update its baseline data from the test log:

  1. Select the "checkpoint failed" message.

  2. Open the Details panel of the message.

  3. Click the Update the <Checkpoint_Name> checkpoint data link at the bottom of the panel.

    Updating PDF checkpoint from the TestComplete test log

    Click the image to enlarge it.

  4. In the confirmation message, click Yes. TestComplete will replace the stored text data with the actual contents of the PDF file.

See Also

PDF Checkpoints
Files

Highlight search results