org.fest.swing.junit.runner
Class FailureScreenshotTaker

java.lang.Object
  extended by 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

Constructor Summary
FailureScreenshotTaker(File imageFolder)
          Creates a new FailureScreenshotTaker.
 
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
 

Constructor Detail

FailureScreenshotTaker

public FailureScreenshotTaker(File imageFolder)
Creates a new FailureScreenshotTaker.

Parameters:
imageFolder - the folder where screenshots will be saved to.
Method Detail

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.