Adobe PDF documents support

IBM IBM Rational Functional Tester supports testing of Adobe PDF 7.0 and 8.0 read-only documents. You can test PDF documents that are displayed in a browser or in a stand-alone PDF Reader. A functional test script that is recorded for documents that are displayed in a stand-alone PDF Reader can be played back when the document is displayed in a browser and vice-versa.

The level of granularity that IBM Rational Functional Tester supports depends on the way the PDF document is designed. For example, if the entire page of a PDF document is designed to contain one text object only, the verification point highlighter captures only the page level contents and does not get contents inside the page.

The cross compatibility of testing PDF read-only documents is possible only for the document controls and not the reader controls. For example:

This version of IBM Rational Functional Tester includes support for testing PDF documents that contain these controls:
Prerequisites: Before you start testing PDF documents, you must set the Adobe Reader preferences and the Rational Functional Tester script assure values.
Notes:
  • When you open a new document in Adobe Reader, click the PDF document once after the recorder starts. This click is required for the reader to process the document.
  • Only document verification point is supported in the document mode setting. A verification point can be taken after the mandatory click in the document. Any clicks on the PDF document in document mode setting while recording are ignored and no code is generated.
  • Use the Page mode setting for larger documents.
  • To take data verification point on a large document in Document mode, follow these steps:
    1. Create a registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Rational Software\Rational Test\8\Options.
    2. Create a new DWORD variable InvocationTimeout.
    3. For documents of 70 pages or more, specify the timeout value of 8*60*1000 milliseconds.
    4. Restart IBM Rational Functional Tester and restart Adobe Reader.
    5. Perform the clicks on the PDF document till this message is generated: "Ignoring the click on PDF document in document mode setting".
    6. Take the data verification point.
  • If a particular control in the PDF document spans over two or more lines, the highlight rectangle covers all the lines in that control location. Other controls might fall in the highlight rectangle. But when verification point is taken on the control that spans over two or more lines, the other controls that fall within the screen rectangle is not considered.
  • You might not be able to test the PDF documents correctly if the font of the letters in the PDF document is not available or installed in the computer.

Feedback