public class LogTestInformationListener extends Object implements WebTestListener
WebTestListener
that logs information about running
tests.Constructor and Description |
---|
LogTestInformationListener() |
LogTestInformationListener(String logPrefix) |
Modifier and Type | Method and Description |
---|---|
protected void |
log(String logMessage) |
void |
suiteFinished(WebTestDescription suiteDescription)
Called when the whole web test suite is going finishing.
|
void |
suiteStarted(WebTestDescription suiteDescription)
Called when the whole web test suite is going to start.
|
void |
testError(WebTestDescription description,
Throwable error)
Called when test ends with an error
|
void |
testFailure(WebTestDescription description,
Throwable failure)
Called on test finished with an assertion failure.
|
void |
testFinished(WebTestDescription description)
Called on finished web test.
|
void |
testStarted(WebTestDescription description)
Called on start of a single web test.
|
public LogTestInformationListener()
public LogTestInformationListener(String logPrefix)
protected void log(String logMessage)
public void suiteStarted(WebTestDescription suiteDescription)
WebTestListener
suiteStarted
in interface WebTestListener
suiteDescription
- description of the whole suitepublic void suiteFinished(WebTestDescription suiteDescription)
WebTestListener
suiteFinished
in interface WebTestListener
suiteDescription
- description of the whole suitepublic void testStarted(WebTestDescription description)
WebTestListener
testStarted
in interface WebTestListener
description
- test descriptionpublic void testFinished(WebTestDescription description)
WebTestListener
testFinished
in interface WebTestListener
description
- test descriptionpublic void testError(WebTestDescription description, Throwable error)
WebTestListener
testError
in interface WebTestListener
description
- test descriptionerror
- errorpublic void testFailure(WebTestDescription description, Throwable failure)
WebTestListener
testFailure
in interface WebTestListener
description
- test descriptionfailure
- failureCopyright © 2002-2023 Atlassian. All Rights Reserved.