|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.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 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 IssueTableAssertions |
issueTableAssertions
Use this field to access the IssueTableAssertions helper in play |
protected LocatorFactory |
locator
Use this field to access the LocatorFactory in play |
protected com.atlassian.jira.testkit.client.log.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 |
builtInCustomFieldKey(String type)
Turns a simple key into a complete key for a built in custom field type |
Assertions |
getAssertions()
|
JIRAEnvironmentData |
getEnvironmentData()
|
net.sourceforge.jwebunit.WebTester |
getTester()
|
FuncTestWebClientListener |
getWebClientListener()
|
protected boolean |
isDumpHTML()
|
void |
log(Object logData)
|
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(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 XPathLocator s |
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 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 IssueTableAssertions issueTableAssertions
IssueTableAssertions
helper in play
protected com.atlassian.jira.testkit.client.log.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 builtInCustomFieldKey(String type)
type
- simple key
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.TestCase
protected boolean shouldSkipSetup()
protected final void tearDown()
tearDownTest()
instead.
tearDown
in class junit.framework.TestCase
protected void tearDownTest()
public JIRAEnvironmentData getEnvironmentData()
public void setEnvironmentData(JIRAEnvironmentData environmentData)
setEnvironmentData
in interface EnvironmentAware
public net.sourceforge.jwebunit.WebTester getTester()
public Assertions getAssertions()
public FuncTestWebClientListener getWebClientListener()
public void log(Object logData)
log
in interface com.atlassian.jira.testkit.client.log.FuncTestLogger
public void log(Throwable t)
log
in interface com.atlassian.jira.testkit.client.log.FuncTestLogger
protected XPathLocator xpath(String xpathExpression)
XPathLocator
s
xpathExpression
- the xpath expression
protected void runTest() throws Throwable
runTest
in class junit.framework.TestCase
Throwable
TestCase.runTest()
protected boolean isDumpHTML()
public void runBare() throws Throwable
runBare
in class junit.framework.TestCase
Throwable
TestCase.runBare()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |