com.atlassian.jira.pageobjects.config.junit4
Class LogTestInformationListener

java.lang.Object
  extended by com.atlassian.jira.pageobjects.config.junit4.LogTestInformationListener
All Implemented Interfaces:
WebTestListener

public class LogTestInformationListener
extends Object
implements WebTestListener

A WebTestListener that logs information about running tests.

Since:
v4.4

Constructor Summary
LogTestInformationListener()
           
LogTestInformationListener(String logPrefix)
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogTestInformationListener

public LogTestInformationListener()

LogTestInformationListener

public LogTestInformationListener(String logPrefix)
Method Detail

log

protected void log(String logMessage)

suiteStarted

public void suiteStarted(WebTestDescription suiteDescription)
Description copied from interface: WebTestListener
Called when the whole web test suite is going to start.

Specified by:
suiteStarted in interface WebTestListener
Parameters:
suiteDescription - description of the whole suite

suiteFinished

public void suiteFinished(WebTestDescription suiteDescription)
Description copied from interface: WebTestListener
Called when the whole web test suite is going finishing.

Specified by:
suiteFinished in interface WebTestListener
Parameters:
suiteDescription - description of the whole suite

testStarted

public void testStarted(WebTestDescription description)
Description copied from interface: WebTestListener
Called on start of a single web test.

Specified by:
testStarted in interface WebTestListener
Parameters:
description - test description

testFinished

public void testFinished(WebTestDescription description)
Description copied from interface: WebTestListener
Called on finished web test.

Specified by:
testFinished in interface WebTestListener
Parameters:
description - test description

testError

public void testError(WebTestDescription description,
                      Throwable error)
Description copied from interface: WebTestListener
Called when test ends with an error

Specified by:
testError in interface WebTestListener
Parameters:
description - test description
error - error

testFailure

public void testFailure(WebTestDescription description,
                        Throwable failure)
Description copied from interface: WebTestListener
Called on test finished with an assertion failure.

Specified by:
testFailure in interface WebTestListener
Parameters:
description - test description
failure - failure


Copyright © 2002-2013 Atlassian. All Rights Reserved.