public class

FuncTestCaseJiraSetup

extends AbstractFuncTestUtil
java.lang.Object
   ↳ com.atlassian.jira.functest.framework.AbstractFuncTestUtil
     ↳ com.atlassian.jira.functest.framework.FuncTestCaseJiraSetup

Class Overview

This class is responsible for "setting up" and "tearing down" JIRA from a functional test point of view. The FuncTestCase uses this class in its setUp() and tearDown() method. if you dont want to derive from FuncTestCase, you can call this class directly.

Summary

[Expand]
Inherited Fields
From class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
Public Constructors
FuncTestCaseJiraSetup(TestCase testCase, WebTester tester, JIRAEnvironmentData environmentData, Navigation navigation, FuncTestWebClientListener webClientListener, boolean skipSetup)
Call this in your TestCase setUp() method to setup JIRA from the WebTester point of view.
Public Methods
long getRuntimeMillis()
Returns how long the test has been running for since setUp()
static long getRuntimeMillis(long startTime)
Returns how long the test has been running for since startTime
static long getSuiteRuntimeMillis()
void tearDown(TestCase testCase)
Called during test tearDown() to logout and cleanup any resources
[Expand]
Inherited Methods
From class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
From class java.lang.Object
From interface com.atlassian.jira.testkit.client.log.FuncTestLogger

Public Constructors

public FuncTestCaseJiraSetup (TestCase testCase, WebTester tester, JIRAEnvironmentData environmentData, Navigation navigation, FuncTestWebClientListener webClientListener, boolean skipSetup)

Call this in your TestCase setUp() method to setup JIRA from the WebTester point of view. This will check if JIRA is "setup" and if not it will setup JIRA in such a way as to be useable.

Parameters
testCase the JUnit junit.framework.TestCase in play
tester the net.sourceforge.jwebunit.WebTester
environmentData the com.atlassian.jira.webtests.util.JIRAEnvironmentData in play
navigation a Navigation
webClientListener the web client listener to record traffic with

Public Methods

public long getRuntimeMillis ()

Returns how long the test has been running for since setUp()

Returns
  • how long the test has been running for since setUp()

public static long getRuntimeMillis (long startTime)

Returns how long the test has been running for since startTime

Parameters
startTime the time that test started
Returns
  • how long the test has been running for since startTime

public static long getSuiteRuntimeMillis ()

Returns
  • time since this class (and hence the test suite) was initialised.

public void tearDown (TestCase testCase)

Called during test tearDown() to logout and cleanup any resources

Parameters
testCase the Junit junit.framework.TestCase