Class Indexing
java.lang.Object
com.atlassian.jira.functest.framework.Indexing
- Since:
- v7.1
-
Constructor Summary
ConstructorsConstructorDescriptionIndexing(Navigation navigation, net.sourceforge.jwebunit.WebTester tester, HtmlPage htmlPage, com.atlassian.jira.testkit.client.log.FuncTestLogger logger) -
Method Summary
Modifier and TypeMethodDescriptionvoidassertIndexContainsItem(String xpath, String issueKey) voidassertIndexedFieldCorrect(String path, Map<String, String> expectedItemNodes, Map<String, String> unexpectedItemNodes, String issueKey) Check that certain fields have been indexed correctly.voidassertIndexNotContainsItem(String xpath, String issueKey)
-
Constructor Details
-
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 passnullinstead 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 passnullinstead of empty map.issueKey- issue key of item we are checking. Eg: "HSP-1"
-
assertIndexContainsItem
-
assertIndexNotContainsItem
-