-
public final class ScreenshotsDirectoryStorage
-
-
Constructor Summary
Constructors Constructor Description ScreenshotsDirectoryStorage()
-
Method Summary
Modifier and Type Method Description final FilegetRootScreenshotDirectory(File screenshotDir)Returns the directory for screenshots resolved by storage's root. final FileobtainDirectory(File screenshotTestDir)Returns directory for a particular test. -
-
Method Detail
-
getRootScreenshotDirectory
final File getRootScreenshotDirectory(File screenshotDir)
Returns the directory for screenshots resolved by storage's root. If the directory doesn't exist, it will be created.
- Parameters:
screenshotDir- desired root directory.
-
obtainDirectory
final File obtainDirectory(File screenshotTestDir)
Returns directory for a particular test. If the directory exists, it will be deleted on the first method call. If the directory doesn't exist, it will be created.
- Parameters:
screenshotTestDir- desired directory resolved by the root dir.
-
-
-
-