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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidassertElementExists(electric.xml.Document doc, String xPathExpression) protected voidassertElementForCustomView(electric.xml.Document doc, String xPathExpression, String expectedField) protected voidassertElementNotExists(electric.xml.Document doc, String xPathExpression) voidassertExpectedXpathValue(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 voidcheckDisabledTimetracking(String issueKey, String fieldParam) protected voidcheckFieldDefinitionError(String fieldParam) protected voidcheckNodeFilter(String fieldParam, String expectedField) protected electric.xml.Documentprotected StringgetHSP1ViewPage(String fieldParam) protected StringgetHSP2ViewPage(String fieldParam) protected StringgetHSP3ViewPage(String fieldParam) voidvoidvoidvoidvoidvoidvoidvoidvoidMethods inherited from class com.atlassian.jira.functest.framework.BaseJiraFuncTest
getAssertions, getBackdoor, getEnvironmentData, getTester
-
Constructor Details
-
TestXmlCustomIssueView
public TestXmlCustomIssueView()
-
-
Method Details
-
testNodeFilter
- Throws:
IOExceptionelectric.xml.ParseException
-
testProjectFieldFilter
- Throws:
IOExceptionelectric.xml.ParseException
-
testCustomFieldFilter
- Throws:
IOExceptionelectric.xml.ParseException
-
testMultipleNodeFilter
- Throws:
IOExceptionelectric.xml.ParseException
-
testParentNodeFilter
- Throws:
IOExceptionelectric.xml.ParseException
-
testNodeFilterMapping
- Throws:
IOExceptionelectric.xml.ParseException
-
testInvalidFieldDefined
- Throws:
Exception
-
testValidAndInvalidFieldDefined
- Throws:
IOExceptionelectric.xml.ParseException
-
testTimetrackingField
- Throws:
IOExceptionelectric.xml.ParseException
-
checkDisabledTimetracking
protected void checkDisabledTimetracking(String issueKey, String fieldParam) throws IOException, electric.xml.ParseException - Throws:
IOExceptionelectric.xml.ParseException
-
checkFieldDefinitionError
- Throws:
Exception
-
getHSP1ViewPage
-
getHSP2ViewPage
-
getHSP3ViewPage
-
checkNodeFilter
protected void checkNodeFilter(String fieldParam, String expectedField) throws IOException, electric.xml.ParseException - Throws:
IOExceptionelectric.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:
IOExceptionelectric.xml.ParseException
-