org.fest.swing.junit.runner
Class FailureScreenshotTaker
java.lang.Object
org.fest.swing.junit.runner.FailureScreenshotTaker
public class FailureScreenshotTaker
- extends Object
Understands taking a screenshot of the desktop when a GUI test fails.
- Author:
- Alex Ruiz
Method Summary |
void |
saveScreenshot(String failedTest)
Saves a screenshot of the desktop using the given description as the file name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FailureScreenshotTaker
public FailureScreenshotTaker(File imageFolder)
- Creates a new
FailureScreenshotTaker
.
- Parameters:
imageFolder
- the folder where screenshots will be saved to.
saveScreenshot
public void saveScreenshot(String failedTest)
- Saves a screenshot of the desktop using the given description as the file name.
- Parameters:
failedTest
- the description of the test failure.
Copyright © 2007-2011 FEST (Fixtures for Easy Software Testing). All Rights Reserved.