Validating Dynamically Generated PDFs in Functionize
Functionize supports workflows where a unique PDF is generated during each test run, such as during a policy sale. While an Architect cannot directly validate PDFs opened in a browser, you can validate them using the File Viewer with a dynamic download-and-upload process. This ensures that every execution uses the correct, newly generated PDF without manual file handling.
How the Dynamic Workflow Works
Clicking a PDF link in the application triggers a silent file download handled by the test runner. The downloaded file is then made available to the Functionize execution environment for verification. The workflow is as follows:
- Use the Download File action to download the PDF generated by your application.
- In a subsequent Upload File action, select the exact step where the download occurred.
- Functionize will automatically use the PDF downloaded during that run and upload it into the File Viewer.
- Once uploaded, you can view and validate the PDF content as needed.
Limitations
Direct validation of PDFs opened and viewed within a browser tab is not supported. The download-and-upload workflow is the required method to bring the PDF into the Functionize File Viewer for validation.
Related Info
- File Viewer
- Download File Action
- Upload File Action