Class Indexing

java.lang.Object
com.atlassian.jira.functest.framework.Indexing

public class Indexing extends Object
Since:
v7.1
  • Constructor Details

    • Indexing

      @Inject public Indexing(Navigation navigation, net.sourceforge.jwebunit.WebTester tester, HtmlPage htmlPage, com.atlassian.jira.testkit.client.log.FuncTestLogger logger)
  • Method Details

    • assertIndexedFieldCorrect

      public void assertIndexedFieldCorrect(String path, Map<String,String> expectedItemNodes, Map<String,String> unexpectedItemNodes, String issueKey)
      Check that certain fields have been indexed correctly. This will move to the XML Index View of a given issuekey, then execute some xpath to assert that the index is in order.
      Parameters:
      path - xpath expression of the base node we are checking. Eg: "//item"
      expectedItemNodes - Map containing key (xpath expression starting from path) : value (the expected value). For example: "description" : "some description". You can pass null instead of empty map.
      unexpectedItemNodes - List of nodes from path that are *not* expected to be present. For example, if the //item/[environment = "some environment"] should NOT be found, then the map would be: "environment" : "some environment". You can pass null instead of empty map.
      issueKey - issue key of item we are checking. Eg: "HSP-1"
    • assertIndexContainsItem

      public void assertIndexContainsItem(String xpath, String issueKey)
    • assertIndexNotContainsItem

      public void assertIndexNotContainsItem(String xpath, String issueKey)