Class TestXmlCustomIssueView

java.lang.Object
com.atlassian.jira.functest.framework.BaseJiraFuncTest
com.atlassian.jira.webtests.ztests.issue.TestXmlCustomIssueView
Direct Known Subclasses:
TestSearchXmlCustomIssueView

public class TestXmlCustomIssueView extends BaseJiraFuncTest
  • Constructor Details

    • TestXmlCustomIssueView

      public TestXmlCustomIssueView()
  • Method Details

    • testNodeFilter

      public void testNodeFilter() throws IOException, electric.xml.ParseException
      Throws:
      IOException
      electric.xml.ParseException
    • testProjectFieldFilter

      public void testProjectFieldFilter() throws IOException, electric.xml.ParseException
      Throws:
      IOException
      electric.xml.ParseException
    • testCustomFieldFilter

      public void testCustomFieldFilter() throws IOException, electric.xml.ParseException
      Throws:
      IOException
      electric.xml.ParseException
    • testMultipleNodeFilter

      public void testMultipleNodeFilter() throws IOException, electric.xml.ParseException
      Throws:
      IOException
      electric.xml.ParseException
    • testParentNodeFilter

      public void testParentNodeFilter() throws IOException, electric.xml.ParseException
      Throws:
      IOException
      electric.xml.ParseException
    • testNodeFilterMapping

      public void testNodeFilterMapping() throws IOException, electric.xml.ParseException
      Throws:
      IOException
      electric.xml.ParseException
    • testInvalidFieldDefined

      public void testInvalidFieldDefined() throws Exception
      Throws:
      Exception
    • testValidAndInvalidFieldDefined

      public void testValidAndInvalidFieldDefined() throws IOException, electric.xml.ParseException
      Throws:
      IOException
      electric.xml.ParseException
    • testTimetrackingField

      public void testTimetrackingField() throws IOException, electric.xml.ParseException
      Throws:
      IOException
      electric.xml.ParseException
    • checkDisabledTimetracking

      protected void checkDisabledTimetracking(String issueKey, String fieldParam) throws IOException, electric.xml.ParseException
      Throws:
      IOException
      electric.xml.ParseException
    • checkFieldDefinitionError

      protected void checkFieldDefinitionError(String fieldParam) throws Exception
      Throws:
      Exception
    • getHSP1ViewPage

      protected String getHSP1ViewPage(String fieldParam)
    • getHSP2ViewPage

      protected String getHSP2ViewPage(String fieldParam)
    • getHSP3ViewPage

      protected String getHSP3ViewPage(String fieldParam)
    • checkNodeFilter

      protected void checkNodeFilter(String fieldParam, String expectedField) throws IOException, electric.xml.ParseException
      Throws:
      IOException
      electric.xml.ParseException
    • assertElementForCustomView

      protected void assertElementForCustomView(electric.xml.Document doc, String xPathExpression, String expectedField)
    • assertElementExists

      protected void assertElementExists(electric.xml.Document doc, String xPathExpression)
    • assertElementNotExists

      protected void assertElementNotExists(electric.xml.Document doc, String xPathExpression)
    • 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 of
      xPathExpression - The XPath to an element you want to check the value of
      expectedValue - the expected value.
      attribute - null if you're checking an element value, or an attribute name of the selected element
    • getDocument

      protected electric.xml.Document getDocument() throws IOException, electric.xml.ParseException
      Throws:
      IOException
      electric.xml.ParseException