-
- All Implemented Interfaces:
-
com.kaspersky.kaspresso.device.screenshots.screenshotfiles.ScreenshotDirectoryProvider
public final class DefaultScreenshotDirectoryProvider implements ScreenshotDirectoryProvider
Default implementation of ScreenshotDirectoryProvider If groupByRunNumbers is true it groups screenshots by run numbers of tests. It allows to save all screenshots of a test running several times per the same suite.
-
-
Constructor Summary
Constructors Constructor Description DefaultScreenshotDirectoryProvider(Boolean groupByRunNumbers)
-
Method Summary
Modifier and Type Method Description StringgetDirectoryForTest(TestMethod testMethod, Integer runNumber)-
-
Constructor Detail
-
DefaultScreenshotDirectoryProvider
DefaultScreenshotDirectoryProvider(Boolean groupByRunNumbers)
-
-
Method Detail
-
getDirectoryForTest
String getDirectoryForTest(TestMethod testMethod, Integer runNumber)
- Parameters:
testMethod- specifies what test is runningrunNumber- specifies how many times a given test have already run
-
-
-
-