|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
com.atlassian.jira.functest.framework.FuncTestCase
public class FuncTestCase
The base class for JIRA "next generation" functional test cases. This lightweight implementation of TestCase provides for the ability to "record" exceptions that happening during the running of tests
and produce "test artifacts" of these exceptions.
setUp() and tearDown() are final, please use the template methods setUpTest() and
tearDownTest() instead
| Field Summary | |
|---|---|
protected Administration |
administration
Use this field to access the Administration helper in play |
protected Assertions |
assertions
Use this field to access the Assertions helper in play |
protected Backdoor |
backdoor
Use this field to access the Backdoor helper in play, which can make sly RPCs to the server. |
protected com.atlassian.jira.webtests.util.JIRAEnvironmentData |
environmentData
Use this field to access the JIRAEnvironmentData in play |
protected Form |
form
Used to set form values in tests. |
protected FuncTestHelperFactory |
funcTestHelperFactory
Factory for getting access to useful Func Test objects |
protected LocatorFactory |
locator
Use this field to access the LocatorFactory in play |
protected FuncTestLogger |
log
Use this field to access the FuncTestLogger in play |
protected Navigation |
navigation
Use this field to access the Navigation helper in play |
protected JIRAWebTest |
oldway_consider_porting
Deprecated. think about why you need use the old ways |
protected HtmlPage |
page
Used to find out about the current HTML page that the test is on. |
protected Parser |
parse
Use this field to access the Parser helper in play |
protected net.sourceforge.jwebunit.WebTester |
tester
Use this field to access the WebTester in play |
protected TextAssertions |
text
Use this field to access the TextAssertions helper in play |
| Constructor Summary | |
|---|---|
FuncTestCase()
|
|
| Method Summary | |
|---|---|
static String |
builInCustomFieldKey(String type)
|
Assertions |
getAssertions()
|
com.atlassian.jira.webtests.util.JIRAEnvironmentData |
getEnvironmentData()
|
net.sourceforge.jwebunit.WebTester |
getTester()
|
FuncTestWebClientListener |
getWebClientListener()
|
protected boolean |
isDumpHTML()
|
void |
log(Object logData)
This will data via a String.valueOf(logData) in the specified object. |
void |
log(Throwable t)
|
void |
runBare()
The outer most edge of a JUnit Test. |
protected void |
runTest()
Overridden so we can "record" exceptions that may happen during test execution. |
void |
setEnvironmentData(com.atlassian.jira.webtests.util.JIRAEnvironmentData environmentData)
|
protected void |
setUp()
The default and final setUp() method will connect to JIRA and make sure its initialised and ready to go. For individual test setUp, override setUpTest() instead. |
protected void |
setUpHttpUnitOptions()
Override this to set up any HttpUnitOptions that must be set before the WebTester is instantiated. |
protected void |
setUpTest()
Setup for an actual test |
protected boolean |
shouldSkipSetup()
|
protected void |
tearDown()
This will logout of JIRA and then produce test artifacts for any test that throws exceptions. |
protected void |
tearDownTest()
individual test tear down |
protected XPathLocator |
xpath(String xpathExpression)
A shortcut method to allow quick creation of XPathLocators |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, setName, toString |
| Methods inherited from class junit.framework.Assert |
|---|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected net.sourceforge.jwebunit.WebTester tester
WebTester in play
protected com.atlassian.jira.webtests.util.JIRAEnvironmentData environmentData
JIRAEnvironmentData in play
protected Navigation navigation
Navigation helper in play
protected Form form
protected HtmlPage page
protected Parser parse
Parser helper in play
protected Administration administration
Administration helper in play
protected Backdoor backdoor
Backdoor helper in play, which can make sly RPCs to the server.
protected Assertions assertions
Assertions helper in play
protected TextAssertions text
TextAssertions helper in play
protected FuncTestLogger log
FuncTestLogger in play
protected LocatorFactory locator
LocatorFactory in play
protected JIRAWebTest oldway_consider_porting
JIRAWebTest test case in play. Access is
provided to the old way of writing functiona; test cases but its use is not encouraged. Please consider porting
the required function into the new framework.
protected FuncTestHelperFactory funcTestHelperFactory
| Constructor Detail |
|---|
public FuncTestCase()
| Method Detail |
|---|
public static String builInCustomFieldKey(String type)
protected void setUpTest()
protected void setUpHttpUnitOptions()
HttpUnitOptions that must be set before the WebTester is instantiated.
protected final void setUp()
The default and final setUp() method will connect to JIRA and make sure its initialised and ready to go.
For individual test setUp, overridesetUpTest() instead.
setUp in class junit.framework.TestCaseprotected boolean shouldSkipSetup()
protected final void tearDown()
tearDownTest() instead.
tearDown in class junit.framework.TestCaseprotected void tearDownTest()
public com.atlassian.jira.webtests.util.JIRAEnvironmentData getEnvironmentData()
public void setEnvironmentData(com.atlassian.jira.webtests.util.JIRAEnvironmentData environmentData)
setEnvironmentData in interface com.atlassian.jira.webtests.util.EnvironmentAwarepublic net.sourceforge.jwebunit.WebTester getTester()
public Assertions getAssertions()
public FuncTestWebClientListener getWebClientListener()
public void log(Object logData)
FuncTestLogger
log in interface FuncTestLoggerlogData - the objct to log via String.valueOf().public void log(Throwable t)
log in interface FuncTestLoggerprotected XPathLocator xpath(String xpathExpression)
XPathLocators
xpathExpression - the xpath expression
protected void runTest()
throws Throwable
runTest in class junit.framework.TestCaseThrowableTestCase.runTest()protected boolean isDumpHTML()
public void runBare()
throws Throwable
runBare in class junit.framework.TestCaseThrowableTestCase.runBare()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||