public class FuncTestCaseJiraSetup extends AbstractFuncTestUtil
FuncTestCase
uses this class in its setUp() and tearDown() method. if
you dont want to derive from FuncTestCase
, you can call this class
directly.environmentData, FS, locators, logger, logIndentLevel, tester
Constructor and Description |
---|
FuncTestCaseJiraSetup(junit.framework.TestCase testCase,
net.sourceforge.jwebunit.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.
|
Modifier and Type | Method and Description |
---|---|
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
|
childLogIndentLevel, getAssertions, getEnvironmentData, getFuncTestHelperFactory, getLogger, log, log, navigation, submitAtPage
public FuncTestCaseJiraSetup(junit.framework.TestCase testCase, net.sourceforge.jwebunit.WebTester tester, JIRAEnvironmentData environmentData, Navigation navigation, FuncTestWebClientListener webClientListener, boolean skipSetup)
testCase
- the JUnit TestCase
in playtester
- the WebTester
environmentData
- the JIRAEnvironmentData
in playnavigation
- a Navigation
webClientListener
- the web client listener to record traffic withskipSetup
- public void tearDown(junit.framework.TestCase testCase)
testCase
- the Junit TestCase
public long getRuntimeMillis()
public static long getRuntimeMillis(long startTime)
startTime
- the time that test startedpublic static long getSuiteRuntimeMillis()
Copyright © 2002-2015 Atlassian. All Rights Reserved.