Package org.fest.swing.junit.runner
Class FailureScreenshotTaker
java.lang.Object
org.fest.swing.junit.runner.FailureScreenshotTaker
Understands taking a screenshot of the desktop when a GUI test fails.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFailureScreenshotTaker
(File imageFolder) Creates a newFailureScreenshotTaker
.FailureScreenshotTaker
(File imageFolder, org.fest.swing.image.ScreenshotTaker screenshotTaker) -
Method Summary
Modifier and TypeMethodDescriptionvoid
saveScreenshot
(String failedTest) Saves a screenshot of the desktop using the given description as the file name.
-
Field Details
-
logger
-
imageFolder
-
screenshotTaker
private final org.fest.swing.image.ScreenshotTaker screenshotTaker
-
-
Constructor Details
-
FailureScreenshotTaker
Creates a newFailureScreenshotTaker
.- Parameters:
imageFolder
- the folder where screenshots will be saved to.
-
FailureScreenshotTaker
FailureScreenshotTaker(File imageFolder, org.fest.swing.image.ScreenshotTaker screenshotTaker)
-
-
Method Details
-
saveScreenshot
Saves a screenshot of the desktop using the given description as the file name.- Parameters:
failedTest
- the description of the test failure.
-