-
- All Implemented Interfaces:
-
com.kaspersky.kaspresso.device.screenshots.ScreenshotTestStartListener,com.kaspersky.kaspresso.device.screenshots.Screenshots
public final class ScreenshotsImpl implements Screenshots, ScreenshotTestStartListener
The implementation of the Screenshots interface.
-
-
Constructor Summary
Constructors Constructor Description ScreenshotsImpl(UiTestLogger logger, ScreenshotMaker screenshotMaker, ScreenshotDirectoryProvider screenshotDirectoryProvider, ScreenshotNameProvider screenshotNameProvider, File screenshotRootDir)
-
Method Summary
Modifier and Type Method Description Unittake(String tag)Takes a screenshot if it is possible, otherwise logs the error. UnitonTestStarted()-
-
Constructor Detail
-
ScreenshotsImpl
ScreenshotsImpl(UiTestLogger logger, ScreenshotMaker screenshotMaker, ScreenshotDirectoryProvider screenshotDirectoryProvider, ScreenshotNameProvider screenshotNameProvider, File screenshotRootDir)
-
-
Method Detail
-
take
Unit take(String tag)
Takes a screenshot if it is possible, otherwise logs the error. By default a screenshot name looks like <device storage>/screenshotRootDir/<test run number>/<test class name>/<test method name>/tag.png See ScreenshotFileProvider, ScreenshotDirectoryProvider for more details
Required Permissions: WRITE_EXTERNAL_STORAGE.
- Parameters:
tag- a unique tag to further identify the screenshot.
-
onTestStarted
Unit onTestStarted()
-
-
-
-