My Certifications Visit Documentation Mabl Home Mabl Product Portal Mabl Login

PDF Testing

Summary

Summary

Learning targets 🧠

In this video, you will see how to: 

  • Outline the benefits of PDF testing
  • Create PDF tests
  • Review PDF test output

Review our documentation: PDF Testing

 

Why is this important?

E2E Automation

  • If there are PDF’s interactions in your application, then they should be covered by automation in order to ensure end-to-end quality.
    • Cuts down on manual testing time
    • Ensures consistent validation of PDF use cases on a predictable cadence
    • Consolidates tech stack and cut costs (potentially)
  • PDF’s usually include important information -- make sure it is accessible and appears correctly for your users!

What is it?

mabl PDF Testing

  • While you’re creating a browser test the mabl Trainer will automatically detect when a PDF download is triggered.
  • Once loaded, use the trainer to create steps (assertions, variables, conditionals, etc.) that validate the doc is rendering properly.

Disclaimer 🗣

mabl does not extract text from images. In order for mabl to perform assertions there needs to be text that you’re able to highlight with your cursor.

 

Getting started

Steps to utilize

  1. Click on an element that triggers a PDF download.
  2. Wait for mabl to automatically recognize the PDF, download it to your local storage, and open up the PDF in a new tab.
  3. Dive on in! Using the mabl trainer, make assertions against the content of the PDF in order to validate important elements.
  4. Once finished, simply close the PDF tab, and continue you on with the rest of the test! It’s that easy!

Note: if the PDF is embedded directly into the web page, you’ll see the PDF viewer in place of the normal viewer.

Best Practices

Validating Data

For data that needs to be validated within the PDF, be sure to store that data in a variable(s) prior to triggering the download so that you can make assertions against the variables once you’re in the PDF.