Package 

Class ScreenshotsDirectoryStorage

    • Method Summary

      Modifier and Type Method Description
      final File getRootScreenshotDirectory(File screenshotDir) Returns the directory for screenshots resolved by storage's root.
      final File obtainDirectory(File screenshotTestDir) Returns directory for a particular test.
      • Methods inherited from class com.kaspersky.kaspresso.device.screenshots.screenshotfiles.ScreenshotsDirectoryStorage

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ScreenshotsDirectoryStorage

        ScreenshotsDirectoryStorage()
    • 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.