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, xmlRootNodeprotected void onStartTestSuite(org.apache.tools.ant.taskdefs.optional.junit.JUnitTest suite)
onStartTestSuite in class XmlJUnitResultFormattersuite - the JUnit test suite.protected void onFailureOrError(junit.framework.Test test,
Throwable error,
XmlNode target)
onFailureOrError in class XmlJUnitResultFormattertest - the failing test.error - the cause of the failure or error.target - the element in the XML report containing information about the failure.Copyright © 2014-2015 AssertJ. All Rights Reserved.