com.atlassian.jira.functest.framework.assertions
Class JiraFormAssertionsImpl

java.lang.Object
  extended by com.atlassian.jira.functest.framework.AbstractFuncTestUtil
      extended by com.atlassian.jira.functest.framework.assertions.JiraFormAssertionsImpl
All Implemented Interfaces:
JiraFormAssertions, com.atlassian.jira.testkit.client.log.FuncTestLogger

public class JiraFormAssertionsImpl
extends AbstractFuncTestUtil
implements JiraFormAssertions

And implementation of JiraFormAssertions.

Since:
v3.13

Field Summary
 
Fields inherited from class com.atlassian.jira.functest.framework.AbstractFuncTestUtil
environmentData, FS, locators, logger, logIndentLevel, tester
 
Constructor Summary
JiraFormAssertionsImpl(TextAssertions textAssertions, net.sourceforge.jwebunit.WebTester tester, JIRAEnvironmentData environmentData)
           
 
Method Summary
 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.
 
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

JiraFormAssertionsImpl

public JiraFormAssertionsImpl(TextAssertions textAssertions,
                              net.sourceforge.jwebunit.WebTester tester,
                              JIRAEnvironmentData environmentData)
Method Detail

assertFieldErrMsg

public void assertFieldErrMsg(String expectedText)
Description copied from interface: JiraFormAssertions
Asserts that there is a "field" error message with the expectedText.

Specified by:
assertFieldErrMsg in interface JiraFormAssertions
Parameters:
expectedText - the expected error message

assertAuiFieldErrMsg

public void assertAuiFieldErrMsg(String expectedText)
Description copied from interface: JiraFormAssertions
Asserts that there is a "field" error message with the expectedText in an AUI form.

Specified by:
assertAuiFieldErrMsg in interface JiraFormAssertions
Parameters:
expectedText - the expected error message

assertFormErrMsg

public void assertFormErrMsg(String expectedText)
Description copied from interface: JiraFormAssertions
Asserts that there is a "form" error message with the expectedText.

Specified by:
assertFormErrMsg in interface JiraFormAssertions
Parameters:
expectedText - the expected error message

assertFormErrMsgContainsLink

public void assertFormErrMsgContainsLink(String linkExactText)
Description copied from interface: JiraFormAssertions
Assert that error message on the form contains link with given exact text.

Specified by:
assertFormErrMsgContainsLink in interface JiraFormAssertions
Parameters:
linkExactText - text of the expected link

assertNoFieldErrMsg

public void assertNoFieldErrMsg(String notExpectedText)
Description copied from interface: JiraFormAssertions
Asserts that there is NO "field" error message with the notExpectedText.

Specified by:
assertNoFieldErrMsg in interface JiraFormAssertions
Parameters:
notExpectedText - the expected error message

assertNoFormErrMsg

public void assertNoFormErrMsg(String notExpectedText)
Description copied from interface: JiraFormAssertions
Asserts that there is NO "form" error message with the notExpectedText.

Specified by:
assertNoFormErrMsg in interface JiraFormAssertions
Parameters:
notExpectedText - the 'not' expected error message (or part of it)

assertNoErrorsPresent

public void assertNoErrorsPresent()
Description copied from interface: JiraFormAssertions
Asserts that there is no errors present.

Specified by:
assertNoErrorsPresent in interface JiraFormAssertions

assertSelectElementHasOptionSelected

public void assertSelectElementHasOptionSelected(String selectElementName,
                                                 String optionName)
Description copied from interface: JiraFormAssertions
Asserts that the specified Select form element has this option selected.

Specified by:
assertSelectElementHasOptionSelected in interface JiraFormAssertions
Parameters:
selectElementName - the name of the <select> element.
optionName - the name of the option that should be selected (not the value of the option).

assertFormNotificationMsg

public void assertFormNotificationMsg(String expectedText)
Description copied from interface: JiraFormAssertions
Asserts that there is a "form" notification message with the expectedText.

Specified by:
assertFormNotificationMsg in interface JiraFormAssertions
Parameters:
expectedText - the expected notification message

assertNoFormNotificationMsg

public void assertNoFormNotificationMsg(String notExpectedText)
Description copied from interface: JiraFormAssertions
Asserts that there is NO "form" notification message with the notExpectedText.

Specified by:
assertNoFormNotificationMsg in interface JiraFormAssertions
Parameters:
notExpectedText - the 'not' expected notification message (or part of it)

assertFormNotificationMsgContainsLink

public void assertFormNotificationMsgContainsLink(String linkExactText)
Description copied from interface: JiraFormAssertions
Assert that notification message on the form contains link with given exact text.

Specified by:
assertFormNotificationMsgContainsLink in interface JiraFormAssertions
Parameters:
linkExactText - text of the expected link

assertFormSuccessMsg

public void assertFormSuccessMsg(String expectedText)
Description copied from interface: JiraFormAssertions
Asserts that there is a "form" success message with the expectedText

Specified by:
assertFormSuccessMsg in interface JiraFormAssertions
Parameters:
expectedText - the expected notification message

assertFormWarningMessage

public void assertFormWarningMessage(String messageText)
Description copied from interface: JiraFormAssertions
Assert that the form contains warning message with given text.

Specified by:
assertFormWarningMessage in interface JiraFormAssertions
Parameters:
messageText - text of the message

assertNoFormWarningMessage

public void assertNoFormWarningMessage(String notExpectedText)
Description copied from interface: JiraFormAssertions
Asserts that there is NO "form" warning message with the notExpectedText.

Specified by:
assertNoFormWarningMessage in interface JiraFormAssertions
Parameters:
notExpectedText - the 'not' expected warning message (or part of it)

assertFormWarningMessageContainsLink

public void assertFormWarningMessageContainsLink(String linkExactText)
Description copied from interface: JiraFormAssertions
Assert that warning message on the form contains link with given exact text.

Specified by:
assertFormWarningMessageContainsLink in interface JiraFormAssertions
Parameters:
linkExactText - text of the expected link


Copyright © 2002-2014 Atlassian. All Rights Reserved.