Class TestXmlCustomIssueView
java.lang.Object
com.atlassian.jira.functest.framework.BaseJiraFuncTest
com.atlassian.jira.webtests.ztests.issue.TestXmlCustomIssueView
- Direct Known Subclasses:
TestSearchXmlCustomIssueView
-
Field Summary
Fields inherited from class com.atlassian.jira.functest.framework.BaseJiraFuncTest
assertions, backdoor, environmentData, initClass, navigation, tester, testRule
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
assertElementExists
(electric.xml.Document doc, String xPathExpression) protected void
assertElementForCustomView
(electric.xml.Document doc, String xPathExpression, String expectedField) protected void
assertElementNotExists
(electric.xml.Document doc, String xPathExpression) void
assertExpectedXpathValue
(electric.xml.Document doc, String xPathExpression, String expectedValue, String attribute) Asserts that the given XPATH expression resolves to the given expected value in the given Document.protected void
checkDisabledTimetracking
(String issueKey, String fieldParam) protected void
checkFieldDefinitionError
(String fieldParam) protected void
checkNodeFilter
(String fieldParam, String expectedField) protected electric.xml.Document
protected String
getHSP1ViewPage
(String fieldParam) protected String
getHSP2ViewPage
(String fieldParam) protected String
getHSP3ViewPage
(String fieldParam) void
void
void
void
void
void
void
void
void
Methods inherited from class com.atlassian.jira.functest.framework.BaseJiraFuncTest
getAssertions, getBackdoor, getEnvironmentData, getTester
-
Constructor Details
-
TestXmlCustomIssueView
public TestXmlCustomIssueView()
-
-
Method Details
-
testNodeFilter
- Throws:
IOException
electric.xml.ParseException
-
testProjectFieldFilter
- Throws:
IOException
electric.xml.ParseException
-
testCustomFieldFilter
- Throws:
IOException
electric.xml.ParseException
-
testMultipleNodeFilter
- Throws:
IOException
electric.xml.ParseException
-
testParentNodeFilter
- Throws:
IOException
electric.xml.ParseException
-
testNodeFilterMapping
- Throws:
IOException
electric.xml.ParseException
-
testInvalidFieldDefined
- Throws:
Exception
-
testValidAndInvalidFieldDefined
- Throws:
IOException
electric.xml.ParseException
-
testTimetrackingField
- Throws:
IOException
electric.xml.ParseException
-
checkDisabledTimetracking
protected void checkDisabledTimetracking(String issueKey, String fieldParam) throws IOException, electric.xml.ParseException - Throws:
IOException
electric.xml.ParseException
-
checkFieldDefinitionError
- Throws:
Exception
-
getHSP1ViewPage
-
getHSP2ViewPage
-
getHSP3ViewPage
-
checkNodeFilter
protected void checkNodeFilter(String fieldParam, String expectedField) throws IOException, electric.xml.ParseException - Throws:
IOException
electric.xml.ParseException
-
assertElementForCustomView
-
assertElementExists
-
assertElementNotExists
-
assertExpectedXpathValue
public void assertExpectedXpathValue(electric.xml.Document doc, String xPathExpression, String expectedValue, String attribute) Asserts that the given XPATH expression resolves to the given expected value in the given Document.- Parameters:
doc
- the Document to check the XPath ofxPathExpression
- The XPath to an element you want to check the value ofexpectedValue
- the expected value.attribute
- null if you're checking an element value, or an attribute name of the selected element
-
getDocument
- Throws:
IOException
electric.xml.ParseException
-