public class FailureScreenshotTaker extends Object
Constructor and Description |
---|
FailureScreenshotTaker(File imageFolder)
Creates a new
FailureScreenshotTaker . |
Modifier and Type | Method and Description |
---|---|
void |
saveScreenshot(String failedTest)
Saves a screenshot of the desktop using the given description as the file name.
|
public FailureScreenshotTaker(File imageFolder)
FailureScreenshotTaker
.imageFolder
- the folder where screenshots will be saved to.public void saveScreenshot(String failedTest)
failedTest
- the description of the test failure.Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.