@Test public void testCreatePictureFromBufferedImageTimestampJPG() throws Exception { Path jpgResult = testling.takeScreenshotWithTimestamp("screenshot-jpg", rootpath, "jpg", null); assertRegExMatch(jpgResult.toString(), ".*org.sakuli.actions.screenbased." + getDayPrefix() + ".*screenshot_jpg.jpg"); assertTrue(Files.exists(jpgResult)); }
public Path takeScreenshotWithTimestamp(final String filenamePostfix, final String optFolderPath, final String optFormat, Rectangle optRectangle) { Path folderPath = isEmpty(optFolderPath) ? resolveTakeScreenshotPath(filenamePostfix).getParent() : Paths.get(optFolderPath); return takeScreenshotWithTimestamp( filenamePostfix, folderPath, optFormat, optRectangle); }
ScreenshotActions { public Path takeScreenshotWithTimestamp(final String filenamePostfix, final String optFolderPath, final String optFormat, Rectangle optRectangle) { Path folderPath = isEmpty(optFolderPath) ? resolveTakeScreenshotPath(filenamePostfix).getParent() : Paths.get(optFolderPath); return takeScreenshotWithTimestamp( filenamePostfix, folderPath, optFormat, optRectangle); } }
ScreenshotActions { public Path takeScreenshotWithTimestamp(final String filenamePostfix, final String optFolderPath, final String optFormat, Rectangle optRectangle) { Path folderPath = isEmpty(optFolderPath) ? resolveTakeScreenshotPath(filenamePostfix).getParent() : Paths.get(optFolderPath); return takeScreenshotWithTimestamp( filenamePostfix, folderPath, optFormat, optRectangle); } @Autowired  ScreenshotActions(Screen screen, ActionProperties props, @Qualifier("baseLoader") BaseActionLoader baseActionLoader); }
ScreenshotActions { public Path takeScreenshotWithTimestamp(final String filenamePostfix, final String optFolderPath, final String optFormat, Rectangle optRectangle) { Path folderPath = isEmpty(optFolderPath) ? resolveTakeScreenshotPath(filenamePostfix).getParent() : Paths.get(optFolderPath); return takeScreenshotWithTimestamp( filenamePostfix, folderPath, optFormat, optRectangle); } @Autowired  ScreenshotActions(Screen screen, ActionProperties props, @Qualifier("baseLoader") BaseActionLoader baseActionLoader); Path takeScreenshot(Path picturePath); Path takeScreenshot(String filename, Rectangle rectangle); Path takeScreenshot(Path picturePath, Rectangle rectangle); Path takeScreenshotWithTimestamp(final String filenamePostfix, final String optFolderPath, final String optFormat, Rectangle optRectangle); Path takeScreenshotWithTimestamp(String message, Path folderPath); Path takeScreenshotWithTimestamp(String message, Path folderPath, String format, Rectangle rectangle); Path takeScreenshotWithTimestampThrowIOException(String message, Path folderPath, String format, Rectangle rectangle); Path resolveTakeScreenshotPath(String filename); }
ScreenshotActions { public Path takeScreenshotWithTimestamp(final String filenamePostfix, final String optFolderPath, final String optFormat, Rectangle optRectangle) { Path folderPath = isEmpty(optFolderPath) ? resolveTakeScreenshotPath(filenamePostfix).getParent() : Paths.get(optFolderPath); return takeScreenshotWithTimestamp( filenamePostfix, folderPath, optFormat, optRectangle); } @Autowired  ScreenshotActions(Screen screen, ActionProperties props, @Qualifier("baseLoader") BaseActionLoader baseActionLoader); Path takeScreenshot(Path picturePath); Path takeScreenshot(String filename, Rectangle rectangle); Path takeScreenshot(Path picturePath, Rectangle rectangle); Path takeScreenshotWithTimestamp(final String filenamePostfix, final String optFolderPath, final String optFormat, Rectangle optRectangle); Path takeScreenshotWithTimestamp(String message, Path folderPath); Path takeScreenshotWithTimestamp(String message, Path folderPath, String format, Rectangle rectangle); Path takeScreenshotWithTimestampThrowIOException(String message, Path folderPath, String format, Rectangle rectangle); Path resolveTakeScreenshotPath(String filename);  }