|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GUIVerification
The interface Verification
provides several methods to verify values in the active screen of the application under
test. Every class which implements this interface must assure that a call of one of these methods verifies the expected value
with the current in the application under test.
Methods with locators accept two types of locators.
Interaction
.
Method Summary | |
---|---|
void |
assertChecked(String elementType,
String elementName,
boolean expected,
GUIElementLocator locator)
Verifies for an element identified by a locator that its checked status (e.g. radio buttons or checkboxes) matches the given expected state. |
void |
assertChecked(String elementType,
String elementName,
GUIElementLocator locator)
Verifies for an element identified by a locator that is is checked (e.g. radio buttons or checkboxes). |
void |
assertContainsLabels(String elementType,
String elementName,
GUIElementLocator locator,
String[] labels)
Verifies for an element identified by a locator (usually a dropdownbox) that it contains the given labels (and possibly more). |
void |
assertDropDownEntrySelectionMatches(String elementType,
String elementName,
GUIElementLocator locator,
org.databene.commons.Validator<String> validator)
Verifies for a dropdownbox identified by a locator that its selection matches the given Validator. |
void |
assertEditable(String elementType,
String elementName,
GUIElementLocator locator)
Verifies for an element identified by a locator that it is editable. |
void |
assertElementNotPresent(String elementType,
String elementName,
GUIElementLocator locator)
Verifies for an element identified by a locator that it is not present in the GUI (not either visible nor invisible). |
void |
assertElementPresent(String elementType,
String elementName,
GUIElementLocator locator)
Verifies for an element identified by a locator that it is present in the GUI (maybe visible or invisible). |
void |
assertEnabled(String elementType,
String elementName,
GUIElementLocator locator)
Verifies for an element identified by a locator that it is enabled, i.e. not disabled. |
void |
assertHasFocus(String elementType,
String elementName,
GUIElementLocator locator)
Verifies for an element identified by a locator that it has the input focus. |
void |
assertHasLabels(String elementType,
String elementName,
GUIElementLocator locator,
String[] expectedLabels)
Verifies for an element identified by a locator (usually a dropdownbox) that it has the given labels (and only these). |
void |
assertHasValues(String elementType,
String elementName,
GUIElementLocator locator,
String[] expectedValues)
Verifies for an element identified by a locator (usually a dropdownbox) that it has the given values (and only these). |
void |
assertNotEditable(String elementType,
String elementName,
GUIElementLocator locator)
Verifies for an element identified by a locator that it is not editable. |
void |
assertNotEnabled(String elementType,
String elementName,
GUIElementLocator locator)
Verifies for an element identified by a locator that it is not enabled, i.e. disabled. |
void |
assertTextMatches(String elementType,
String elementName,
GUIElementLocator locator,
org.databene.commons.Validator<String> validator)
Verifies that one specific GUI element exhibits a text that matches a Validator . |
void |
assertValueMatches(String elementType,
String elementName,
GUIElementLocator locator,
org.databene.commons.Validator<String> validator)
Verifies for an input element identified by a locator (usually an input field, a button, or similar) that its value matches the given Validator. |
void |
assertVisible(String elementType,
String elementName,
GUIElementLocator locator)
Verifies for an element identified by a locator that it is visible. |
Methods inherited from interface org.aludratest.service.Action |
---|
createAttachments, createDebugAttachments, setSystemConnector |
Method Detail |
---|
void assertTextMatches(String elementType, String elementName, GUIElementLocator locator, org.databene.commons.Validator<String> validator)
Validator
.
elementType
- Type of the element, depending on the implementation.elementName
- Name of the element.locator
- Locator of the element.validator
- A Validator that decides if the text is correctvoid assertVisible(String elementType, String elementName, GUIElementLocator locator)
elementType
- Type of the element, depending on the implementation.elementName
- Name of the element.locator
- Locator of the element.void assertEditable(String elementType, String elementName, GUIElementLocator locator)
assertEnabled(String, String, GUIElementLocator)
to verify the "enabled"
state, which applies to most components.
elementType
- Type of the element, depending on the implementation.elementName
- Name of the element.locator
- Locator of the element.void assertNotEditable(String elementType, String elementName, GUIElementLocator locator)
assertNotEnabled(String, String, GUIElementLocator)
to verify the
"enabled" state, which applies to most components.
elementType
- Type of the element, depending on the implementation.elementName
- Name of the element.locator
- Locator of the element.void assertEnabled(String elementType, String elementName, GUIElementLocator locator)
elementType
- Type of the element, depending on the implementation.elementName
- Name of the element.locator
- Locator of the element.void assertNotEnabled(String elementType, String elementName, GUIElementLocator locator)
elementType
- Type of the element, depending on the implementation.elementName
- Name of the element.locator
- Locator of the element.void assertElementPresent(String elementType, String elementName, GUIElementLocator locator)
elementType
- Type of the element, depending on the implementation.elementName
- Name of the element.locator
- Locator of the element.void assertChecked(String elementType, String elementName, GUIElementLocator locator)
elementType
- Type of the element, depending on the implementation.elementName
- Name of the element.locator
- Locator of the element.void assertChecked(String elementType, String elementName, boolean expected, GUIElementLocator locator)
elementType
- Type of the element, depending on the implementation.elementName
- Name of the element.expected
- The expected checked state (true
for checked, false
for unchecked)locator
- Locator of the element.void assertHasFocus(String elementType, String elementName, GUIElementLocator locator)
elementType
- Type of the element, depending on the implementation.elementName
- Name of the element.locator
- Locator of the element.void assertHasValues(String elementType, String elementName, GUIElementLocator locator, String[] expectedValues)
elementType
- Type of the element, depending on the implementation.elementName
- Name of the element.locator
- Locator of the element.expectedValues
- Values which are expexted in the element.void assertHasLabels(String elementType, String elementName, GUIElementLocator locator, String[] expectedLabels)
elementType
- Type of the element, depending on the implementation.elementName
- Name of the element.locator
- Locator of the element.expectedLabels
- Labels which are expexted in the element.void assertValueMatches(String elementType, String elementName, GUIElementLocator locator, org.databene.commons.Validator<String> validator)
elementType
- Type of the element, depending on the implementation.elementName
- Name of the element.locator
- Locator of the element.validator
- Validator to validate the value of the element.void assertContainsLabels(String elementType, String elementName, GUIElementLocator locator, String[] labels)
elementType
- Type of the element, depending on the implementation.elementName
- Name of the element.locator
- Locator of the element.labels
- Labels which are expexted to be contained in the element.void assertElementNotPresent(String elementType, String elementName, GUIElementLocator locator)
elementType
- Type of the element, depending on the implementation.elementName
- Name of the element.locator
- Locator of the element.void assertDropDownEntrySelectionMatches(String elementType, String elementName, GUIElementLocator locator, org.databene.commons.Validator<String> validator)
elementType
- Type of the element, depending on the implementation.elementName
- Name of the element.locator
- Locator of the element.validator
- Validator to validate the selection of the element.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |