Your script and keyword tests can compare text and PDF files. The File Comparison Results page of the test log displays the file comparison results:
The baseline file is on the left (that file is stored in the Stores > Files collection of your project). The file to be compared is on the right.
The page highlights the differences between the files:
Transparent |
The lines are equal. |
Light green |
The lines contain characters that are different. |
Dark green |
The highlighted characters are different. |
Light coral |
The line is absent from the compared file. |
Light blue |
The line is absent from the baseline file. |
To navigate between the differences, click Previous Difference or Next Difference on the page toolbar.
Page availability
The test engine creates this page –
-
If the comparison is done by the following script methods and keyword-test operations,
–and–
-
If these methods and operations report the compared files as unequal:
-
the
Files.File_Name.Check
method -
the
Files.PDF_File_Name.CheckPDFText
method -
the File Checkpoint operation
-
the PDF Checkpoint operation
-
See Also
About File Checkpoints
PDF Checkpoints
Check Method
CheckPDFText Method