PDF download after test execution
If you want to automatically obtain the PDF report after a test execution, you can use ReportiumExportUtils.
The Java Appium project PDFReport_Example is a small and simple example of how you can achieve this. The project is based on the more complex ExportAllDataCodeSample.
To reuse this in your project, use the WritePDF
. You need to call this function after driver.quit()
has been called because the report will not be created beforehand.
Related articles