com.atlassian.jira.functest.framework
Class FuncTestCaseJiraSetup
java.lang.Object
com.atlassian.jira.functest.framework.AbstractFuncTestUtil
com.atlassian.jira.functest.framework.FuncTestCaseJiraSetup
- All Implemented Interfaces:
- FuncTestLogger
public class FuncTestCaseJiraSetup
- extends AbstractFuncTestUtil
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.
- Since:
- v3.13
Constructor Summary |
FuncTestCaseJiraSetup(junit.framework.TestCase testCase,
net.sourceforge.jwebunit.WebTester tester,
com.atlassian.jira.webtests.util.JIRAEnvironmentData environmentData,
Navigation navigation,
FuncTestWebClientListener webClientListener,
boolean skipSetup)
Call this in your TestCase setUp() method to setup JIRA from the WebTester point of view. |
Method Summary |
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(junit.framework.TestCase testCase)
Called during test tearDown() to logout and cleanup any resources |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FuncTestCaseJiraSetup
public FuncTestCaseJiraSetup(junit.framework.TestCase testCase,
net.sourceforge.jwebunit.WebTester tester,
com.atlassian.jira.webtests.util.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 TestCase
in playtester
- the WebTester
environmentData
- the JIRAEnvironmentData
in playnavigation
- a Navigation
webClientListener
- the web client listener to record traffic withskipSetup
-
tearDown
public void tearDown(junit.framework.TestCase testCase)
- Called during test tearDown() to logout and cleanup any resources
- Parameters:
testCase
- the Junit TestCase
getRuntimeMillis
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()
getRuntimeMillis
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
getSuiteRuntimeMillis
public static long getSuiteRuntimeMillis()
- Returns:
- time since this class (and hence the test suite) was initialised.
Copyright © 2002-2012 Atlassian. All Rights Reserved.