Create a TestStep based on the PDF Module

With the PDF Engine 3.0, you can test whether the content of a PDF file is what you expect it to be.

To create a TestStep based on the PDF Module, follow the steps below:

  1. Create controls for your PDF file. The PDF Engine 3.0 saves those controls as a Module.

  2. Create a TestStep from the Module.

  3. In the TestStepValue Target PDF, specify the path to the PDF file that you want to test. Set the ActionMode to Input.

  4. If the PDF file is password protected, specify the password in the TestStepValue PDF Password. Set the ActionMode to Input.

Specify path and password for the PDF file

  1. Perform the following actions with the controls that you created:

Verify text

To verify text in a PDF document, specify the text in the Value column and set the ActionMode to Verify.

Verify that the book title is Enterprise Continuous Testing

Verify the existence of an image

To verify that an image exists in the PDF document, write .Exists==True in the Value column and set the ActionMode to Verify.

Verify that the image CI Graph exists in the PDF document

Verify a value in a table

To verify that a cell has a certain content, specify the value of the cell in the Value column and set the ActionMode to Verify. For more information on how to steer tables, see chapter "Table".

Verify that the content of a particular cell is Monday