Forum Discussion
We have a simlar problem, only in our case, because of how the PDF is generated, we can't even check for the text.
So... I've adapted the PDFBox code (https://support.smartbear.com/articles/testcomplete/testing-pdf-files-with-testcomplete) to do the following
1) Generate the PDF
2) Generate a BMP for the page I want to test
3) Use Regions.Compare logic, using a mask, to make sure that a baseline BMP file of the page and the test version match.
- TanyaYatskovska6 years agoSmartBear Alumni (Retired)
Hi Joso,
It looks like using the image comparison suggested by @tristaanogre is one it the best options.
Also, you can play with the Intelligent Quality Add-On. This is one of the newest TestComplete features that provides Visual Recognition сapabilities with AI. You can create a script to check if a column contains the needed text. Please watch this video for more info: