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

java.lang.Object
  extended by com.atlassian.jira.functest.framework.AbstractWebTestListener
      extended by com.atlassian.jira.pageobjects.config.junit4.DumpPageSourceListener
All Implemented Interfaces:
WebTestListener

public class DumpPageSourceListener
extends AbstractWebTestListener
implements WebTestListener

WebTestListener that dumps source of the current page into a file in case of error or failure

Since:
v4.4

Constructor Summary
DumpPageSourceListener()
           
 
Method Summary
static org.junit.runner.notification.RunListener asRunListener()
           
 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.
 
Methods inherited from class com.atlassian.jira.functest.framework.AbstractWebTestListener
suiteFinished, suiteStarted, testFinished, testStarted
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.jira.functest.framework.WebTestListener
suiteFinished, suiteStarted, testFinished, testStarted
 

Constructor Detail

DumpPageSourceListener

public DumpPageSourceListener()
Method Detail

asRunListener

public static org.junit.runner.notification.RunListener asRunListener()

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
Overrides:
testError in class AbstractWebTestListener
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
Overrides:
testFailure in class AbstractWebTestListener
Parameters:
description - test description
failure - failure


Copyright © 2002-2012 Atlassian. All Rights Reserved.