Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Functional PDF Testing (Automate Testing of PDF Content)

I am working on an application where I am writing some automation framework for testing a web application. I am using Watij / Watin for the framework, but have run into a problem with verifying the PDFs generated have the correct content.

I know I can use IText or a native PDF library to load up the PDF, but I am wondering if there is already an existing framework dedicated to testing PDF file content?

like image 328
John Sonmez Avatar asked Dec 17 '09 17:12

John Sonmez


People also ask

How can I test a PDF for automation?

PDF Testing solutionApplitools PDF tester is a codeless utility that allows you to automate the PDF testing of your small or large documents using Visual AI and also allow for validation of the content in a page or a region across selected pages or all pages of the PDF.

Can functional testing be automated?

Functional testing is a form of automated testing that deals with how applications functions, or, in other words, its relation to the users and especially to the rest of the system. Traditionally, functional testing is implemented by a team of testers, independent of the developers.

How do I automate a PDF?

Steps to automatically process incoming files: Open the PDF Converter Settings panel from Start > Programs > AssistMyTeam PDF Converter for Windows. Alternatively, invoke it from the context menu of Windows Explorer. From the Settings panel, go to Auto PDF tab and check 'Enable Automation' option.

Can PDF be automated?

Adobe Document Services provide APIs to automate PDF creation, manipulation, content extraction, and document generation in any application. The automate task helps build document workflows for invoice and report creation, content processing and republishing, data analysis, and more.


1 Answers

it's an interesting problem, but thankfully like most out there, there's someone who has done it before you.

Take a look at http://jpdfunit.sourceforge.net/references/jpdfunit_aShortIntroduction.pdf for information on a PDF testing framework called JPdfUnit.

The program homepage is at http://jpdfunit.sourceforge.net/.

Hope that helps!

like image 161
Mark Mayo Avatar answered Dec 08 '22 15:12

Mark Mayo