public final class ScreenshotOnFailureResultFormatter extends XmlJUnitResultFormatter
Note: A test is consider a GUI test if it is marked with the annotation
.
GUITest
Constructor and Description |
---|
ScreenshotOnFailureResultFormatter() |
Modifier and Type | Method and Description |
---|---|
protected void |
onFailureOrError(junit.framework.Test test,
Throwable error,
XmlNode target)
A test failed.
|
protected void |
onStartTestSuite(org.apache.tools.ant.taskdefs.optional.junit.JUnitTest suite)
Execution of the JUnit test suite started.
|
addError, addFailure, addFailure, endTest, endTestSuite, setOutput, setSystemError, setSystemOutput, startTest, startTestSuite, writeErrorAndStackTrace, xmlRootNode
protected void onStartTestSuite(org.apache.tools.ant.taskdefs.optional.junit.JUnitTest suite)
onStartTestSuite
in class XmlJUnitResultFormatter
suite
- the JUnit test suite.protected void onFailureOrError(junit.framework.Test test, Throwable error, XmlNode target)
onFailureOrError
in class XmlJUnitResultFormatter
test
- the failing test.error
- the cause of the failure or error.target
- the element in the XML report containing information about the failure.Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.