© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
K. DasCreate an Enterprise-Level Test Automation Framework with Appiumhttps://doi.org/10.1007/978-1-4842-8197-0_13

13. Enhancing the Framework: Screenshots

Koushik Das1  
(1)
Miami, FL, USA
 

In the previous chapter, we created a PDF report for a test execution. We created an empty list type imageList in the test suite to store the images. In this chapter, we will discuss a few methods that can be used to generate and save screenshots. We will start by looking at the method we created in the MobileBaseActionScreen class.

Creating Screenshot and Saving in Default Location

We have already created methods in the MobileBaseActionScreen class that will take screenshots ...

Get Create an Enterprise-Level Test Automation Framework with Appium: Using Spring-Boot, Gradle, Junit, ALM Integration, and Custom Reports with TDD and BDD Support now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.