Documentation

PDFcompare function

This function is used to compare two pdf files on the basis of text. The result will be stored in a variable defined in element key. If both the files are same it will return true else it will return false.

Syntax: ${__pdfcompare(First file path,second file path)}

Edit parameter section and click on Form, select functions from the dropdown and select PDFCOMPARE function. Provide the path for both pdf files in the form.

After completing this step, test step will look as below:

Example: ${__pdfcompare(D:\SampleFiles_for_BB\SamplePDFs\sample-tables.pdf,D:\testdatafiles\sample-tables.pdf)}

Here, D:\SampleFiles_for_BB\SamplePDFs\sample-tables.pdf is the first pdf file path D:\testdatafiles\sample-tables.pdf is the second pdf file path.

Was this page helpful?