|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.functest.framework.AbstractFuncTestUtil com.atlassian.jira.functest.framework.AbstractNavigationUtil com.atlassian.jira.functest.framework.assertions.IssueNavigatorAssertionsImpl
public class IssueNavigatorAssertionsImpl
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface com.atlassian.jira.functest.framework.assertions.IssueNavigatorAssertions |
---|
IssueNavigatorAssertions.FilterFormParam |
Field Summary |
---|
Fields inherited from class com.atlassian.jira.functest.framework.AbstractFuncTestUtil |
---|
environmentData, FS, locators, logger, logIndentLevel, tester |
Constructor Summary | |
---|---|
IssueNavigatorAssertionsImpl(net.sourceforge.jwebunit.WebTester tester,
com.atlassian.jira.webtests.util.JIRAEnvironmentData environmentData)
|
Method Summary | |
---|---|
void |
assertAdvancedSearch(net.sourceforge.jwebunit.WebTester tester,
String... values)
Assert that the advanced navigator is a JQL expression that contains the passed snippets. |
void |
assertExactIssuesInResults(String... keys)
Asserts that the passed issues are displayed on the issue navigator. |
void |
assertIssueNavigatorDisplaying(Locator locator,
String from,
String to,
String of)
Assert that the issue navigator is displaying with bug from, to and totalNumber (of) |
void |
assertJqlErrors(String... errorMessages)
Assert that the passed errors appears on the advanced issue navigator. |
void |
assertJqlFitsInFilterForm(String jqlQuery,
IssueNavigatorAssertions.FilterFormParam... formParams)
Executes a JQL query search and asserts that it fits in the simple filter form, and that the specified params are present and set. |
void |
assertJqlTooComplex()
Assert that the JQL query was too complex to fit in simple mode. |
void |
assertJqlWarnings(String... warningMessages)
Assert that the passed warnings appears on the advanced issue navigator. |
void |
assertNoJqlErrors()
Assert that there were no errors with submitted JQL query |
void |
assertSearchInfo(SharedEntityInfo info)
Assert that the navigator displays the correct description. |
void |
assertSearchResults(Iterable<? extends SearchResultsCondition> conditions)
Assert properties of the result set displayed in the Issue Navigator. |
void |
assertSearchResultsAreEmpty()
Asserts that current issue navigator search results are empty. |
void |
assertSearchResultsContain(String... keys)
Assert that the current results displayed in the issue navigator contain a list of issues in the specified order. |
void |
assertSearchResultsDoNotContain(String... keys)
Assert that the current results displayed in the issue navigator do not contain the specified issues. |
void |
assertSimpleSearch(NavigatorSearch search,
net.sourceforge.jwebunit.WebTester tester)
Assert that the navigator is currently configured like the passed search. |
protected TextAssertions |
getTextAssertions()
|
Methods inherited from class com.atlassian.jira.functest.framework.AbstractNavigationUtil |
---|
getNavigation |
Methods inherited from class com.atlassian.jira.functest.framework.AbstractFuncTestUtil |
---|
childLogIndentLevel, getAssertions, getEnvironmentData, getFuncTestHelperFactory, getLogger, log, log, navigation, submitAtPage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IssueNavigatorAssertionsImpl(net.sourceforge.jwebunit.WebTester tester, com.atlassian.jira.webtests.util.JIRAEnvironmentData environmentData)
Method Detail |
---|
public void assertSimpleSearch(NavigatorSearch search, net.sourceforge.jwebunit.WebTester tester)
IssueNavigatorAssertions
assertSimpleSearch
in interface IssueNavigatorAssertions
search
- the passed search.tester
- the web tester to test. It should be pointing to the configure navigator screen.public void assertAdvancedSearch(net.sourceforge.jwebunit.WebTester tester, String... values)
IssueNavigatorAssertions
assertAdvancedSearch
in interface IssueNavigatorAssertions
tester
- the web tester to test. Is should be pointing to the configure advanced screen.values
- the JQL snippets that we try to find.public void assertSearchInfo(SharedEntityInfo info)
IssueNavigatorAssertions
assertSearchInfo
in interface IssueNavigatorAssertions
info
- the filter state to assert.public void assertSearchResults(Iterable<? extends SearchResultsCondition> conditions)
IssueNavigatorAssertions
assertSearchResults
in interface IssueNavigatorAssertions
conditions
- the conditions to be met. All must be satisfied.public void assertSearchResultsAreEmpty()
IssueNavigatorAssertions
assertSearchResultsAreEmpty
in interface IssueNavigatorAssertions
public void assertExactIssuesInResults(String... keys)
IssueNavigatorAssertions
IssueNavigatorAssertions.assertSearchResults(Iterable)
using the ContainsIssueKeysCondition
and the
NumberOfIssuesCondition
.
assertExactIssuesInResults
in interface IssueNavigatorAssertions
keys
- the keys of the issues that must appear on navigator. Every key must be entered.public void assertSearchResultsContain(String... keys)
IssueNavigatorAssertions
assertSearchResultsContain
in interface IssueNavigatorAssertions
keys
- The keys of the issues that must appear in the issue navigator results. Must not be null or empty.public void assertSearchResultsDoNotContain(String... keys)
IssueNavigatorAssertions
assertSearchResultsDoNotContain
in interface IssueNavigatorAssertions
keys
- The keys of the issues that must not appear in the issue navigator results. Must not be null or empty.public void assertJqlErrors(String... errorMessages)
IssueNavigatorAssertions
assertJqlErrors
in interface IssueNavigatorAssertions
errorMessages
- the error messages that should appear.public void assertJqlWarnings(String... warningMessages)
IssueNavigatorAssertions
assertJqlWarnings
in interface IssueNavigatorAssertions
warningMessages
- the warning messages that should appear.public void assertJqlTooComplex()
IssueNavigatorAssertions
assertJqlTooComplex
in interface IssueNavigatorAssertions
public void assertNoJqlErrors()
IssueNavigatorAssertions
assertNoJqlErrors
in interface IssueNavigatorAssertions
public void assertJqlFitsInFilterForm(String jqlQuery, IssueNavigatorAssertions.FilterFormParam... formParams)
IssueNavigatorAssertions
assertJqlFitsInFilterForm
in interface IssueNavigatorAssertions
jqlQuery
- the query to executeformParams
- the parameters of the form and their values that should be selectedpublic void assertIssueNavigatorDisplaying(Locator locator, String from, String to, String of)
IssueNavigatorAssertions
assertIssueNavigatorDisplaying
in interface IssueNavigatorAssertions
protected TextAssertions getTextAssertions()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |