| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.testtools.selenium.AutomatedFunctionalTestBase
org.kuali.rice.testtools.selenium.JiraAwareAftBase
public abstract class JiraAwareAftBase
Jira Aware Automated Functional Test Base.
JiraAwareWebDriverUtilsJiraAwareFailableJiraAwareFailure
| Field Summary | 
|---|
| Fields inherited from class org.kuali.rice.testtools.selenium.AutomatedFunctionalTestBase | 
|---|
| shouldNavigate, testUrl | 
| Constructor Summary | |
|---|---|
| JiraAwareAftBase() | |
| Method Summary | |
|---|---|
| protected  void | assertButtonDisabledByText(String buttonText)WebDriverUtils#assertButtonDisabledByText | 
| protected  void | assertButtonEnabledByText(String buttonText)WebDriverUtils.assertButtonEnabledByText. | 
| protected  void | assertDataTableContains(String[][] data) | 
| protected  void | assertDataTableContains(String[][] data,
                                               String tableClass) | 
| protected  void | assertElementPresent(org.openqa.selenium.By by) | 
| protected  void | assertElementPresent(org.openqa.selenium.By by,
                                         String message) | 
| protected  void | assertElementPresent(String locator) | 
| protected  void | assertElementPresentByLinkText(String linkText) | 
| protected  void | assertElementPresentByName(String name) | 
| protected  void | assertElementPresentByName(String name,
                                                     String message) | 
| protected  void | assertElementPresentByXpath(String locator) | 
| protected  void | assertElementPresentByXpath(String locator,
                                                       String message) | 
| protected  void | assertEquals(boolean expected,
                         boolean actual) | 
| protected  void | assertEquals(int expected,
                         int actual) | 
| protected  void | assertEquals(String message,
                         int expected,
                         int actual) | 
| protected  void | assertEquals(String expected,
                         String actual) | 
| protected  void | assertFalse(boolean booleanToAssertFalse)If booleanToAssertFalse is true call jiraAwareFail. | 
| protected  void | assertFalse(String message,
                       boolean booleanToAssertFalse)If booleanToAssertFalse is true call jiraAwareFail. | 
| protected  void | assertIsNotVisible(org.openqa.selenium.By by) | 
| protected  void | assertIsNotVisible(org.openqa.selenium.By by,
                                     String message) | 
| protected  void | assertIsNotVisible(String locator) | 
| protected  void | assertIsNotVisibleByXpath(String xpath) | 
| protected  void | assertIsNotVisibleByXpath(String xpath,
                                                   String message) | 
| protected  void | assertIsVisible(org.openqa.selenium.By by,
                               String message) | 
| protected  void | assertIsVisible(String locator) | 
| protected  void | assertIsVisibleById(String id) | 
| protected  void | assertIsVisibleByXpath(String xpath,
                                             String message) | 
| protected  void | assertLabeledTextNotPresent(String[][] labeledText) | 
| protected  void | assertLabeledTextPresent(String[][] labeledText) | 
| protected  void | assertLabeledTextPresent(String label,
                                                 String text) | 
| protected  void | assertResultCount(String count) | 
| protected  void | assertTextNotPresent(String text)Asset that the given text does not occur in the page Warning, this only does a check against the page source. | 
| protected  void | assertTextNotPresent(String text,
                                         String message)Assert that the given text does not occur in the page, and add an additional message to the failure | 
| protected  void | assertTextNotPresent(String text,
                                         String cssSelector,
                                         String message) | 
| protected  void | assertTextPresent(String text)WARNING: this only does a check against the page source. | 
| protected  void | assertTextPresent(String text,
                                   String message)WARNING: this only does a check against the page source. | 
| protected  void | assertTextPresent(String text,
                                   String cssSelector,
                                   String message) | 
| protected  void | assertTrue(boolean booleanToAssertTrue)If booleanToAssertTrue is false call jiraAwareFail. | 
| protected  void | assertTrue(String message,
                     boolean booleanToAssertTrue)If booleanToAssertTrue is false call jiraAwareFail. | 
| protected abstract  void | checkForIncidentReport(String locator,
                                             String message)Implement to check for Incident Report or other on screen errors, should call JiraAwareFailable.fail(java.lang.String)to fail,
 without calling any of the jiraAwareFail methods to avoid an infinite loop. | 
|  void | fail(String message)Fail in a framework appropriate way, should not call jiraAwareFail. | 
| protected  org.openqa.selenium.WebElement | findDataTableRow(String keyText) | 
| protected  org.openqa.selenium.WebElement | findDataTableRow(String keyText,
                                 String className) | 
| protected  org.openqa.selenium.WebElement | findElement(org.openqa.selenium.By by)WebDriverUtils.findElement(org.openqa.selenium.WebDriver, org.openqa.selenium.By). | 
| protected  org.openqa.selenium.WebElement | findElement(org.openqa.selenium.By by,
                       org.openqa.selenium.WebElement elementToFindOn) | 
| protected abstract  org.openqa.selenium.WebDriver | getDriver()WebDriver used in fail and pass to display jGrowl messages. | 
| protected  boolean | isLabeledTextPresent(String label,
                                         String text) | 
|  boolean | isPassed() | 
| protected  boolean | isVisible(org.openqa.selenium.By by) | 
| protected  boolean | isVisible(String locator) | 
| protected  boolean | isVisibleById(String id) | 
| protected  boolean | isVisibleByXpath(String locator) | 
| protected  void | jiraAwareFail(org.openqa.selenium.By by,
                           String message,
                           Throwable throwable)checkForIncidentReport(java.lang.String, java.lang.String)andJiraAwareFailureUtils.fail(java.lang.String, org.kuali.rice.testtools.common.JiraAwareFailable). | 
|  void | jiraAwareFail(String message)jiraAwareFail is a hook to do things like checking for incident reports, 404s, 503s, etc, the last statement typically would be a call to JiraAwareUtil#fail(String, String, JiraAwareFailableto check for Jira matches. | 
|  void | jiraAwareFail(String contents,
                           String message)jiraAwareFail is a hook to do things like checking for incident reports, 404s, 503s, etc, the last statement typically would be a call to JiraAwareUtil#fail(String, String, JiraAwareFailableto check for Jira matches. | 
|  void | jiraAwareFail(String contents,
                           String message,
                           Throwable throwable)jiraAwareFail is a hook to do things like checking for incident reports, 404s, 503s, etc, the last statement typically would be a call to JiraAwareUtil#fail(String, String, Throwable, JiraAwareFailableto check for Jira matches. | 
| protected  void | jiraAwareFail(String contents,
                           String message,
                           Throwable throwable,
                           JiraAwareFailable failable)checkForIncidentReport(java.lang.String, java.lang.String)andJiraAwareFailureUtils.fail(java.lang.String, org.kuali.rice.testtools.common.JiraAwareFailable). | 
| protected  org.openqa.selenium.WebElement | jiraAwareType(org.openqa.selenium.By by,
                           String text) | 
| protected  org.openqa.selenium.WebElement | jiraAwareType(org.openqa.selenium.By by,
                           String text,
                           String failureMessage) | 
| protected  org.openqa.selenium.WebElement | jiraAwareTypeByName(String name,
                                       String text) | 
| protected  org.openqa.selenium.WebElement | jiraAwareTypeByName(String name,
                                       String text,
                                       String failureMessage) | 
| protected  void | jiraAwareWaitAndClick(org.openqa.selenium.By by,
                                           String message)checkForIncidentReport(java.lang.String, java.lang.String)andJiraAwareFailureUtils.fail(java.lang.String, org.kuali.rice.testtools.common.JiraAwareFailable). | 
| protected  void | jiraAwareWaitAndClick(org.openqa.selenium.By by,
                                           String message,
                                           JiraAwareFailable failable)jiraAwareWaitFor(org.openqa.selenium.By) | 
| protected  org.openqa.selenium.WebElement | jiraAwareWaitFor(org.openqa.selenium.By by)WebDriverUtils.waitFor(org.openqa.selenium.WebDriver, int, org.openqa.selenium.By, java.lang.String). | 
| protected  org.openqa.selenium.WebElement | jiraAwareWaitFor(org.openqa.selenium.By by,
                                 int seconds,
                                 String message)WebDriverUtils.waitFor(org.openqa.selenium.WebDriver, int, org.openqa.selenium.By, java.lang.String). | 
| protected  org.openqa.selenium.WebElement | jiraAwareWaitFor(org.openqa.selenium.By by,
                                 String message)WebDriverUtils.waitFor(org.openqa.selenium.WebDriver, int, org.openqa.selenium.By, java.lang.String). | 
| protected  void | jiraAwareWaitFor(org.openqa.selenium.By by,
                                 String message,
                                 JiraAwareFailable failable)WebDriverUtils.waitFor(org.openqa.selenium.WebDriver, int, org.openqa.selenium.By, java.lang.String). | 
| protected  void | jiraAwareWaitFors(org.openqa.selenium.By by,
                                   String message)WebDriverUtils.waitFor(org.openqa.selenium.WebDriver, int, org.openqa.selenium.By, java.lang.String). | 
| protected  void | passed()Set the test state to passed, call jGrowl sticky with success, required to be called at the conclusion of a test for the saucelabs state of a test to be updated to passed. | 
| protected  void | selectOption(org.openqa.selenium.By by,
                         String optionValue)Uses Selenium's findElements method which does not throw a test exception if not found. | 
| protected  void | selectOptionByName(String name,
                                     String optionValue) | 
| protected  void | selectOptionByXpath(String locator,
                                       String optionValue) | 
| protected  org.openqa.selenium.WebElement | waitAndType(org.openqa.selenium.By by,
                       String text,
                       String message) | 
| Methods inherited from class org.kuali.rice.testtools.selenium.AutomatedFunctionalTestBase | 
|---|
| enableBookmarkMode, enableNavigationMode, getBookmarkUrl, getNavigationUrl, getTestUrl, navigate, navigateInternal | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public JiraAwareAftBase()
| Method Detail | 
|---|
protected abstract void checkForIncidentReport(String locator,
                                               String message)
JiraAwareFailable.fail(java.lang.String) to fail,
 without calling any of the jiraAwareFail methods to avoid an infinite loop.
locator - used in failure message if there is an incident report can be blankmessage - used in failure message if there is an incident report can be blankprotected abstract org.openqa.selenium.WebDriver getDriver()
protected void assertButtonDisabledByText(String buttonText)
WebDriverUtils#assertButtonDisabledByText
buttonText - of button to assert is disabledprotected void assertButtonEnabledByText(String buttonText)
WebDriverUtils.assertButtonEnabledByText.
buttonText - of button to assert is disabled
protected void assertDataTableContains(String[][] data)
                                throws InterruptedException
InterruptedException
protected void assertDataTableContains(String[][] data,
                                       String tableClass)
                                throws InterruptedException
InterruptedExceptionprotected void assertElementPresentByName(String name)
protected void assertElementPresentByName(String name,
                                          String message)
protected void assertElementPresentByXpath(String locator)
protected void assertElementPresent(org.openqa.selenium.By by)
protected void assertElementPresent(org.openqa.selenium.By by,
                                    String message)
protected void assertElementPresentByXpath(String locator,
                                           String message)
protected void assertElementPresentByLinkText(String linkText)
protected void assertElementPresent(String locator)
protected void assertEquals(boolean expected,
                            boolean actual)
protected void assertEquals(int expected,
                            int actual)
protected void assertEquals(String message,
                            int expected,
                            int actual)
protected void assertEquals(String expected,
                            String actual)
protected void assertFalse(boolean booleanToAssertFalse)
jiraAwareFail.
booleanToAssertFalse - 
protected void assertFalse(String message,
                           boolean booleanToAssertFalse)
jiraAwareFail.
message - to include if booleanToAssertTrue is truebooleanToAssertFalse - protected void assertIsVisible(String locator)
protected void assertIsVisible(org.openqa.selenium.By by,
                               String message)
protected void assertIsVisibleById(String id)
protected void assertIsVisibleByXpath(String xpath,
                                      String message)
protected void assertIsNotVisible(org.openqa.selenium.By by)
protected void assertIsNotVisible(org.openqa.selenium.By by,
                                  String message)
protected void assertIsNotVisible(String locator)
protected void assertIsNotVisibleByXpath(String xpath)
protected void assertIsNotVisibleByXpath(String xpath,
                                         String message)
protected void assertLabeledTextNotPresent(String[][] labeledText)
protected void assertLabeledTextPresent(String[][] labeledText)
protected void assertLabeledTextPresent(String label,
                                        String text)
protected void assertResultCount(String count)
                          throws InterruptedException
InterruptedExceptionprotected void assertTextPresent(String text)
assertTextPresent(String String String)
text - 
protected void assertTextPresent(String text,
                                 String message)
text - 
protected void assertTextPresent(String text,
                                 String cssSelector,
                                 String message)
text - protected void assertTextNotPresent(String text)
text - the text to search for
protected void assertTextNotPresent(String text,
                                    String message)
text - the text to search formessage - the message to add to the failure
protected void assertTextNotPresent(String text,
                                    String cssSelector,
                                    String message)
text - protected void assertTrue(boolean booleanToAssertTrue)
jiraAwareFail.
booleanToAssertTrue - 
protected void assertTrue(String message,
                          boolean booleanToAssertTrue)
jiraAwareFail.
message - to include if booleanToAssertTrue is falsebooleanToAssertTrue - public void fail(String message)
Fail in a framework appropriate way, should not call jiraAwareFail.
 Set passed to false, call jGrowl sticky with the given message, then fails using  JiraAwareFailable.fail(java.lang.String).
 
fail in interface JiraAwareFailablemessage - to display with failure
protected org.openqa.selenium.WebElement findDataTableRow(String keyText)
                                                   throws InterruptedException
InterruptedException
protected org.openqa.selenium.WebElement findDataTableRow(String keyText,
                                                          String className)
                                                   throws InterruptedException
InterruptedExceptionprotected org.openqa.selenium.WebElement findElement(org.openqa.selenium.By by)
WebDriverUtils.findElement(org.openqa.selenium.WebDriver, org.openqa.selenium.By).
by - to find element with
protected org.openqa.selenium.WebElement findElement(org.openqa.selenium.By by,
                                                     org.openqa.selenium.WebElement elementToFindOn)
protected boolean isLabeledTextPresent(String label,
                                       String text)
protected boolean isVisible(String locator)
protected boolean isVisible(org.openqa.selenium.By by)
protected boolean isVisibleById(String id)
protected boolean isVisibleByXpath(String locator)
public void jiraAwareFail(String message)
JiraAwareUtil#fail(String, String, JiraAwareFailable to check for Jira matches.
 checkForIncidentReport(java.lang.String, java.lang.String) and JiraAwareFailureUtils.fail(java.lang.String, org.kuali.rice.testtools.common.JiraAwareFailable).
jiraAwareFail in interface JiraAwareFailablemessage - to check for a Jira match and fail with.
public void jiraAwareFail(String contents,
                          String message)
JiraAwareUtil#fail(String, String, JiraAwareFailable to check for Jira matches.
 checkForIncidentReport(java.lang.String, java.lang.String) and JiraAwareFailureUtils.fail(java.lang.String, org.kuali.rice.testtools.common.JiraAwareFailable).
jiraAwareFail in interface JiraAwareFailablecontents - to check for a Jira matchmessage - to check for a Jira match and fail with.
protected void jiraAwareFail(org.openqa.selenium.By by,
                             String message,
                             Throwable throwable)
checkForIncidentReport(java.lang.String, java.lang.String) and JiraAwareFailureUtils.fail(java.lang.String, org.kuali.rice.testtools.common.JiraAwareFailable).
by - to check for a Jira matchmessage - to check for a Jira match and fail with.throwable - to check for a Jira match
public void jiraAwareFail(String contents,
                          String message,
                          Throwable throwable)
JiraAwareUtil#fail(String, String, Throwable, JiraAwareFailable to check for Jira matches.
 checkForIncidentReport(java.lang.String, java.lang.String) and JiraAwareFailureUtils.fail(java.lang.String, org.kuali.rice.testtools.common.JiraAwareFailable).
jiraAwareFail in interface JiraAwareFailablecontents - to check for a Jira matchmessage - to check for a Jira match and fail with.throwable - to check for a Jira match
protected void jiraAwareFail(String contents,
                             String message,
                             Throwable throwable,
                             JiraAwareFailable failable)
checkForIncidentReport(java.lang.String, java.lang.String) and JiraAwareFailureUtils.fail(java.lang.String, org.kuali.rice.testtools.common.JiraAwareFailable).
contents - to check for a Jira matchmessage - to check for a Jira match and fail with.throwable - to check for a Jira matchfailable - to call fail on
protected void jiraAwareWaitAndClick(org.openqa.selenium.By by,
                                     String message)
                              throws InterruptedException
checkForIncidentReport(java.lang.String, java.lang.String) and JiraAwareFailureUtils.fail(java.lang.String, org.kuali.rice.testtools.common.JiraAwareFailable).
by - to click onmessage - on failure
InterruptedException
protected org.openqa.selenium.WebElement jiraAwareType(org.openqa.selenium.By by,
                                                       String text)
protected org.openqa.selenium.WebElement jiraAwareType(org.openqa.selenium.By by,
                                                       String text,
                                                       String failureMessage)
protected org.openqa.selenium.WebElement jiraAwareTypeByName(String name,
                                                             String text)
protected org.openqa.selenium.WebElement jiraAwareTypeByName(String name,
                                                             String text,
                                                             String failureMessage)
protected void jiraAwareWaitAndClick(org.openqa.selenium.By by,
                                     String message,
                                     JiraAwareFailable failable)
                              throws InterruptedException
jiraAwareWaitFor(org.openqa.selenium.By)
by - to click onmessage - on failurefailable - to fail on if not found
InterruptedException
protected org.openqa.selenium.WebElement jiraAwareWaitFor(org.openqa.selenium.By by)
                                                   throws InterruptedException
WebDriverUtils.waitFor(org.openqa.selenium.WebDriver, int, org.openqa.selenium.By, java.lang.String).
by - to find
InterruptedException
protected org.openqa.selenium.WebElement jiraAwareWaitFor(org.openqa.selenium.By by,
                                                          String message)
                                                   throws InterruptedException
WebDriverUtils.waitFor(org.openqa.selenium.WebDriver, int, org.openqa.selenium.By, java.lang.String).
by - to findmessage - on failure
InterruptedException
protected void jiraAwareWaitFors(org.openqa.selenium.By by,
                                 String message)
                          throws InterruptedException
WebDriverUtils.waitFor(org.openqa.selenium.WebDriver, int, org.openqa.selenium.By, java.lang.String).
by - to findmessage - on failure
InterruptedException
protected void jiraAwareWaitFor(org.openqa.selenium.By by,
                                String message,
                                JiraAwareFailable failable)
                         throws InterruptedException
WebDriverUtils.waitFor(org.openqa.selenium.WebDriver, int, org.openqa.selenium.By, java.lang.String).
by - to findmessage - on failurefailable - to fail if given by is not found
InterruptedException
protected org.openqa.selenium.WebElement jiraAwareWaitFor(org.openqa.selenium.By by,
                                                          int seconds,
                                                          String message)
                                                   throws InterruptedException
WebDriverUtils.waitFor(org.openqa.selenium.WebDriver, int, org.openqa.selenium.By, java.lang.String).
by - to findseconds - to waitmessage - on failure
InterruptedExceptionpublic boolean isPassed()
protected void selectOptionByName(String name,
                                  String optionValue)
                           throws InterruptedException
InterruptedException
protected void selectOptionByXpath(String locator,
                                   String optionValue)
                            throws InterruptedException
InterruptedException
protected void selectOption(org.openqa.selenium.By by,
                            String optionValue)
                     throws InterruptedException
by - optionValue - 
InterruptedExceptionprotected void passed()
Set the test state to passed, call jGrowl sticky with success, required to be called at the conclusion of a test for the saucelabs state of a test to be updated to passed.
protected org.openqa.selenium.WebElement waitAndType(org.openqa.selenium.By by,
                                                     String text,
                                                     String message)
                                              throws InterruptedException
InterruptedException| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||