public class

JiraFormAssertionsImpl

extends AbstractFuncTestUtil
implements JiraFormAssertions
java.lang.Object
   ↳ com.atlassian.jira.functest.framework.AbstractFuncTestUtil
     ↳ com.atlassian.jira.functest.framework.assertions.JiraFormAssertionsImpl

Class Overview

And implementation of JiraFormAssertions.

Summary

[Expand]
Inherited Fields
From class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
Public Constructors
JiraFormAssertionsImpl(TextAssertions textAssertions, WebTester tester, JIRAEnvironmentData environmentData)
Public Methods
void assertAuiFieldErrMsg(String expectedText)
Asserts that there is a "field" error message with the expectedText in an AUI form.
void assertFieldErrMsg(String expectedText)
Asserts that there is a "field" error message with the expectedText.
void assertFormErrMsg(String expectedText)
Asserts that there is a "form" error message with the expectedText.
void assertFormErrMsgContainsLink(String linkExactText)
Assert that error message on the form contains link with given exact text.
void assertFormNotificationMsg(String expectedText)
Asserts that there is a "form" notification message with the expectedText.
void assertFormNotificationMsgContainsLink(String linkExactText)
Assert that notification message on the form contains link with given exact text.
void assertFormSuccessMsg(String expectedText)
Asserts that there is a "form" success message with the expectedText
void assertFormWarningMessage(String messageText)
Assert that the form contains warning message with given text.
void assertFormWarningMessageContainsLink(String linkExactText)
Assert that warning message on the form contains link with given exact text.
void assertNoErrorsPresent()
Asserts that there is no errors present.
void assertNoFieldErrMsg(String notExpectedText)
Asserts that there is NO "field" error message with the notExpectedText.
void assertNoFormErrMsg(String notExpectedText)
Asserts that there is NO "form" error message with the notExpectedText.
void assertNoFormNotificationMsg(String notExpectedText)
Asserts that there is NO "form" notification message with the notExpectedText.
void assertNoFormWarningMessage(String notExpectedText)
Asserts that there is NO "form" warning message with the notExpectedText.
void assertSelectElementHasOptionSelected(String selectElementName, String optionName)
Asserts that the specified Select form element has this option selected.
[Expand]
Inherited Methods
From class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
From class java.lang.Object
From interface com.atlassian.jira.functest.framework.assertions.JiraFormAssertions
From interface com.atlassian.jira.testkit.client.log.FuncTestLogger

Public Constructors

public JiraFormAssertionsImpl (TextAssertions textAssertions, WebTester tester, JIRAEnvironmentData environmentData)

Public Methods

public void assertAuiFieldErrMsg (String expectedText)

Asserts that there is a "field" error message with the expectedText in an AUI form.

Parameters
expectedText the expected error message

public void assertFieldErrMsg (String expectedText)

Asserts that there is a "field" error message with the expectedText.

Parameters
expectedText the expected error message

public void assertFormErrMsg (String expectedText)

Asserts that there is a "form" error message with the expectedText.

Parameters
expectedText the expected error message

public void assertFormErrMsgContainsLink (String linkExactText)

Assert that error message on the form contains link with given exact text.

Parameters
linkExactText text of the expected link

public void assertFormNotificationMsg (String expectedText)

Asserts that there is a "form" notification message with the expectedText.

Parameters
expectedText the expected notification message

public void assertFormNotificationMsgContainsLink (String linkExactText)

Assert that notification message on the form contains link with given exact text.

Parameters
linkExactText text of the expected link

public void assertFormSuccessMsg (String expectedText)

Asserts that there is a "form" success message with the expectedText

Parameters
expectedText the expected notification message

public void assertFormWarningMessage (String messageText)

Assert that the form contains warning message with given text.

Parameters
messageText text of the message

public void assertFormWarningMessageContainsLink (String linkExactText)

Assert that warning message on the form contains link with given exact text.

Parameters
linkExactText text of the expected link

public void assertNoErrorsPresent ()

Asserts that there is no errors present.

public void assertNoFieldErrMsg (String notExpectedText)

Asserts that there is NO "field" error message with the notExpectedText.

Parameters
notExpectedText the expected error message

public void assertNoFormErrMsg (String notExpectedText)

Asserts that there is NO "form" error message with the notExpectedText.

Parameters
notExpectedText the 'not' expected error message (or part of it)

public void assertNoFormNotificationMsg (String notExpectedText)

Asserts that there is NO "form" notification message with the notExpectedText.

Parameters
notExpectedText the 'not' expected notification message (or part of it)

public void assertNoFormWarningMessage (String notExpectedText)

Asserts that there is NO "form" warning message with the notExpectedText.

Parameters
notExpectedText the 'not' expected warning message (or part of it)

public void assertSelectElementHasOptionSelected (String selectElementName, String optionName)

Asserts that the specified Select form element has this option selected.

Parameters
selectElementName the name of the <select> element.
optionName the name of the option that should be selected (not the value of the option).