public class AbstractAtlassianWebTestCase extends WebTestCaseWrapper
Modifier and Type | Method and Description |
---|---|
protected void |
assertCollapsedTextSequence(String[] textSequence)
Deprecated.
Use
TextAssertions.assertTextSequence(String, String, String...) or
TextAssertions.assertTextSequence(String, String[]) instead using
HtmlPage.getCollapsedResponseText() as source of collapsed response text. |
protected void |
assertLessThan(int a,
int b)
Makes a junit assertion that a is less than b.
|
protected void |
assertLinkWithNameExists(String message,
String linkName)
Deprecated.
|
protected void |
assertLinkWithNameNotPresent(String message,
String linkName)
Deprecated.
|
protected void |
assertLinkWithTextExists(String message,
String linkText) |
protected void |
assertLinkWithTextNotPresent(String message,
String linkText) |
void |
assertTextPresent(String text1,
int numOccurrences)
Deprecated.
|
void |
assertTextPresentAfterText(String after,
String before)
Deprecated.
Use
TextAssertions.assertTextSequence(java.lang.String, java.lang.String, java.lang.String...) instead. Since v7.1. |
void |
assertTextPresentBeforeText(String before,
String after)
Deprecated.
|
protected void |
assertTextPresentOnlyOnce(String text1) |
void |
assertTextSequence(String[] text)
Deprecated.
Use
TextAssertions.assertTextSequence(java.lang.String, java.lang.String[])# instead. Since v7.1. |
void |
assertTextSequence(String failMesgPrefix,
String[] text)
Deprecated.
Use
TextAssertions.assertTextSequence(java.lang.String, java.lang.String[])# instead. Since v7.1. |
protected void |
clickAnyButtonWithValue(String value)
Deprecated.
Use
Form.clickAnyButtonWithValue(String) instead. |
protected void |
clickButtonWithValue(String value)
Deprecated.
Use
Form.clickButtonWithValue(String) instead. |
static int |
findTextSequence(String stringToSearch,
String[] sequenceToFind)
Attempts to find the given sequence in the given string and if it fails to find the sequence, returns the index
in the sequence that it failed to find a match for.
|
static String[] |
flattenArray(String[][] text)
Utility method that flattens a 2d array into a 1d array by stringing each inner array together in their
outer array order.
|
protected String |
getCollapsedResponseText()
Deprecated.
use
HtmlPage.getCollapsedResponseText() instead |
com.meterware.httpunit.WebTable |
getFirstWebTableWithClass(String className)
Gets the first table on the current page that has the given class attribute.
|
protected String |
getResponseText() |
com.meterware.httpunit.WebTable[] |
getWebTablesWithClass(String className)
Gets the tables on the current page that have the given class attribute.
|
com.meterware.httpunit.WebTable |
getWebTableWithID(String id)
Gets the table on the current page that has the given ID.
|
protected boolean |
hasLinkWithName(String linkName) |
protected boolean |
hasLinkWithText(String linkText) |
assertElementNotPresent, assertElementNotPresentBy, assertElementPresent, assertElementPresentBy, assertOptionValueNotPresent, assertOptionValuePresent, assertTextInTable, assertTextNotPresent, assertTextPresent, clickCancelButton, dumpResponse, dumpResponse, log, log, log, logSection, raiseRuntimeException, selectMultiOption, selectMultiOptionByValue, selectOption, submit, tearDown, waitAndReloadBulkOperationProgressPage, waitAndReloadBulkOperationProgressPage, waitAndReloadBulkOperationProgressPage
assertButtonNotPresent, assertButtonPresent, assertCheckboxNotSelected, assertCheckboxSelected, assertCookiePresent, assertCookieValueEquals, assertFormElementEmpty, assertFormElementEquals, assertFormElementNotPresent, assertFormElementNotPresentWithLabel, assertFormElementPresent, assertFormElementPresentWithLabel, assertFormNotPresent, assertFormNotPresent, assertFormPresent, assertFormPresent, assertFramePresent, assertKeyInTable, assertKeyNotInTable, assertKeyNotPresent, assertKeyPresent, assertKeysInTable, assertLinkNotPresent, assertLinkNotPresentWithImage, assertLinkNotPresentWithText, assertLinkNotPresentWithText, assertLinkPresent, assertLinkPresentWithImage, assertLinkPresentWithText, assertLinkPresentWithText, assertOptionEquals, assertOptionsEqual, assertOptionsNotEqual, assertOptionValuesEqual, assertOptionValuesNotEqual, assertRadioOptionNotPresent, assertRadioOptionNotSelected, assertRadioOptionPresent, assertRadioOptionSelected, assertSubmitButtonNotPresent, assertSubmitButtonPresent, assertSubmitButtonValue, assertTableEquals, assertTableEquals, assertTableNotPresent, assertTablePresent, assertTableRowsEqual, assertTableRowsEqual, assertTextInElement, assertTextInTable, assertTextNotInElement, assertTextNotInTable, assertTextNotInTable, assertTitleEquals, assertTitleEqualsKey, assertWindowPresent, beginAt, checkCheckbox, checkCheckbox, clickButton, clickLink, clickLinkWithImage, clickLinkWithText, clickLinkWithText, clickLinkWithTextAfterText, dumpCookies, dumpCookies, dumpResponse, dumpTable, dumpTable, getDialog, getMessage, getTestContext, getTester, gotoFrame, gotoPage, gotoRootWindow, gotoWindow, reset, setFormElement, setFormElementWithLabel, setWorkingForm, submit, uncheckCheckbox, uncheckCheckbox
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, toString
@Deprecated protected void clickButtonWithValue(String value)
Form.clickButtonWithValue(String)
instead.value
- the value attribute of the of the button element to click.@Deprecated protected void clickAnyButtonWithValue(String value)
Form.clickAnyButtonWithValue(String)
instead.value
- the value attribute of the of the button element to click.protected boolean hasLinkWithText(String linkText)
protected boolean hasLinkWithName(String linkName)
protected void assertLinkWithTextNotPresent(String message, String linkText)
@Deprecated protected void assertLinkWithNameExists(String message, String linkName)
@Deprecated protected void assertLinkWithNameNotPresent(String message, String linkName)
@Deprecated public void assertTextPresentBeforeText(String before, String after)
TextAssertions.assertTextSequence(String, String, String...)
insteadbefore
- supposed to come before the other.after
- supposed to come after the other.protected void assertTextPresentOnlyOnce(String text1)
public void assertTextPresent(String text1, int numOccurrences)
TextAssertions.assertTextPresentNumOccurences(String, String, int)
text1
- the text to search fornumOccurrences
- the number of times the text should occur. Must not be negative.@Deprecated public void assertTextPresentAfterText(String after, String before)
TextAssertions.assertTextSequence(java.lang.String, java.lang.String, java.lang.String...)
instead. Since v7.1.after
- supposed to come after the other.before
- supposed to come before the other.protected void assertLessThan(int a, int b)
Note: Don't remove this method. It is used by the soapclient tests!
a
- asserted to be the smaller.b
- asserted to be the greater.@Deprecated public void assertTextSequence(String[] text)
TextAssertions.assertTextSequence(java.lang.String, java.lang.String[])#
instead. Since v7.1.text
- the sequence to assert is present.@Deprecated public void assertTextSequence(String failMesgPrefix, String[] text)
TextAssertions.assertTextSequence(java.lang.String, java.lang.String[])#
instead. Since v7.1.failMesgPrefix
- the message prefix in the case of a failure.text
- the array.public static int findTextSequence(String stringToSearch, String[] sequenceToFind)
stringToSearch
- the String to search.sequenceToFind
- the sequence to search for.public static String[] flattenArray(String[][] text)
text
- the 2d array to flattenprotected String getResponseText()
@Deprecated protected String getCollapsedResponseText()
HtmlPage.getCollapsedResponseText()
instead@Deprecated protected void assertCollapsedTextSequence(String[] textSequence)
TextAssertions.assertTextSequence(String, String, String...)
or
TextAssertions.assertTextSequence(String, String[])
instead using
HtmlPage.getCollapsedResponseText()
as source of collapsed response text.textSequence
- the text sequencepublic com.meterware.httpunit.WebTable getFirstWebTableWithClass(String className)
className
- the name of the class attribute of the desired table element.public com.meterware.httpunit.WebTable getWebTableWithID(String id)
id
- ID of the required table element.public com.meterware.httpunit.WebTable[] getWebTablesWithClass(String className)
className
- the name of the class attribute of the desired table element.Copyright © 2002-2021 Atlassian. All Rights Reserved.