|
||||||||||
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 com.atlassian.jira.webtests.ztests.upgrade.TestUpgradeXmlData
public class TestUpgradeXmlData
You can run this test to upgrade the JIRA's test XML. It basically goes through all of the XML (ZIP) files in your func test (selenium test) XML directories as identified from your localtest.properties and upgrades them. It does this by importing the data into JIRA and then exports it. To upgrade your data simply setup JIRA for a regular func test run (i.e start the server and configure your localtest.properties) and then run this test. If you run it from the jira-func-test module then it will upgrade the func test xml. If you run it from the jira-selenium-test module then it will upgrade the selenium test xml. You can add 'suppresscheck: upgrade' to the top level comment in an XML to stop it from being upgraded. This is useful for XML data that is meant test upgrade tasks. It is also useful for upgrade tasks that have replacement tokens and can only be imported using their associated tests.
Field Summary |
---|
Fields inherited from class com.atlassian.jira.functest.framework.FuncTestCase |
---|
administration, assertions, backdoor, environmentData, form, funcTestHelperFactory, issueTableAssertions, locator, navigation, oldway_consider_porting, page, parse, tester, text |
Constructor Summary | |
---|---|
TestUpgradeXmlData()
|
Method Summary | |
---|---|
void |
testUpgradeTestData()
|
void |
visitConfig(ConfigFile configFile)
|
void |
visitConfigError(File file,
ConfigFile.ConfigFileException e)
|
Methods inherited from class com.atlassian.jira.functest.framework.FuncTestCase |
---|
builtInCustomFieldKey, getAssertions, getEnvironmentData, getTester, getWebClientListener, isDumpHTML, log, log, runBare, runTest, setEnvironmentData, setUp, setUpHttpUnitOptions, setUpTest, shouldSkipSetup, tearDown, tearDownTest, xpath |
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 |
Constructor Detail |
---|
public TestUpgradeXmlData()
Method Detail |
---|
public void testUpgradeTestData() throws Exception
Exception
public void visitConfig(ConfigFile configFile)
visitConfig
in interface ConfigFileWalker.ConfigVisitor
public void visitConfigError(File file, ConfigFile.ConfigFileException e)
visitConfigError
in interface ConfigFileWalker.ConfigVisitor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |