|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GUIInteraction
The interface Interaction
provides several methods to interact with the active screen of the application under test.
This means that the application under test can be controlled with the help of these methods. Every class which implements this
interface must assure that a call of one of these methods results in a interaction with the application under test.
For verifications of the application under test see Verification
.
Method Summary | |
---|---|
void |
assignFileResource(String elementType,
String elementName,
GUIElementLocator locator,
String filePath,
int taskCompletionTimeout)
Assigns a file resource of the test project file system to the file chooser specified by the locator. |
void |
changeCheckbox(String elementType,
String elementName,
GUIElementLocator locator,
int taskCompletionTimeout)
Changes the selection state of a checkbox. |
void |
click(String elementType,
String elementName,
GUIElementLocator locator,
int taskCompletionTimeout)
Clicks with a single click on any kind of element which reacts on click events. |
void |
closeOtherWindows(String elementType,
String elementName,
TitleLocator locator)
Closes all open windows which do not have the specified title. |
void |
closeWindows(String elementType,
String elementName,
TitleLocator locator)
Closes all windows identified by their name. |
void |
deselectCheckbox(String elementType,
String elementName,
GUIElementLocator locator,
int taskCompletionTimeout)
Deselects a checkbox. |
void |
doubleClick(String elementType,
String elementName,
GUIElementLocator locator,
int taskCompletionTimeout)
Does a double click on the element which is identified by the locator. |
void |
focus(String elementType,
String elementName,
GUIElementLocator locator)
Gives focus on an element. |
void |
functionalError(String message)
|
String |
getInputFieldSelectedLabel(String elementType,
String elementName,
GUIElementLocator locator)
Reads the selected label of an input field and returns it as a String without conversion/manipulation. |
String |
getInputFieldValue(String elementType,
String elementName,
GUIElementLocator locator)
Reads the value of an inputfield and returns it as a String without conversion/manipulation. |
String |
getText(String elementType,
String elementName,
GUIElementLocator locator)
Gets the text of an element. |
String |
getText(String elementType,
String elementName,
GUIElementLocator locator,
boolean checkVisible)
Gets the text of an element and is adjustable to the check of the visibility of the element |
void |
keyPress(int keycode)
Presses a key on the keyboard. |
void |
selectCheckbox(String elementType,
String elementName,
GUIElementLocator locator,
int taskCompletionTimeout)
Selects a checkbox. |
void |
selectDropDownEntry(String elementType,
String elementName,
GUIElementLocator locator,
OptionLocator optionLocator,
int taskCompletionTimeout)
Selects an entry in a dropdownbox with the help of a OptionLocator . |
void |
selectRadiobutton(String elementType,
String elementName,
GUIElementLocator locator,
int taskCompletionTimeout)
Selects a radio button. |
void |
selectWindow(WindowLocator locator)
Selects a window using a window locator. |
void |
type(String elementType,
String elementName,
GUIElementLocator locator,
String text,
int taskCompletionTimeout)
Types in some text without conversion/manipulation of the passed through text. |
void |
waitForWindowToBeClosed(String elementType,
String elementName,
TitleLocator locator,
int taskCompletionTimeout)
Waits until the given window is closed, or the given timeout is reached. |
void |
wrongPageFlow(String message)
|
Methods inherited from interface org.aludratest.service.Action |
---|
createAttachments, createDebugAttachments, setSystemConnector |
Method Detail |
---|
void selectRadiobutton(String elementType, String elementName, GUIElementLocator locator, int taskCompletionTimeout)
elementType
- the type of the related radio button to logelementName
- the name of the related radio button to loglocator
- to locate one specific radio button in the SUTtaskCompletionTimeout
- void changeCheckbox(String elementType, String elementName, GUIElementLocator locator, int taskCompletionTimeout)
elementType
- the type of the related checkbox to logelementName
- the name of the related checkbox to loglocator
- to locate one specific checkbox in the application under testtaskCompletionTimeout
- void selectCheckbox(String elementType, String elementName, GUIElementLocator locator, int taskCompletionTimeout)
elementType
- the type of the related checkbox to logelementName
- the name of the related checkbox to loglocator
- to locate one specific checkbox in the application under testtaskCompletionTimeout
- void deselectCheckbox(String elementType, String elementName, GUIElementLocator locator, int taskCompletionTimeout)
elementType
- the type of the related checkbox to logelementName
- the name of the related checkbox to loglocator
- to locate one specific checkbox in the application under testtaskCompletionTimeout
- void selectDropDownEntry(String elementType, String elementName, GUIElementLocator locator, OptionLocator optionLocator, int taskCompletionTimeout)
OptionLocator
. First it locates the element with the help
of the locator
, then it tries to select an entry defined by optionLocator
.
elementType
- the type of the related dropdownbox to logelementName
- the name of the related dropdownbox to loglocator
- to locate one specific dropdownbox in the application under testoptionLocator
- defines which entry of the located dropdownbox shall be selectedtaskCompletionTimeout
- void type(String elementType, String elementName, GUIElementLocator locator, String text, int taskCompletionTimeout)
elementType
- the type of the related GUI element to logelementName
- the name of the related GUI element to loglocator
- to locate one specific inputfield in the application under test. An inputfield is any GUI element which
accepts user inputs.text
- which shall be typed in without conversion/manipulationtaskCompletionTimeout
- void assignFileResource(String elementType, String elementName, GUIElementLocator locator, String filePath, int taskCompletionTimeout)
elementType
- the type of the related GUI element to logelementName
- the name of the related GUI element to loglocator
- to locate the related file selection field in the application under testfilePath
- the absolute path of the file to be assigned to the file choosertaskCompletionTimeout
- the maximum number of milliseconds to wait for the completion of system activitiesvoid click(String elementType, String elementName, GUIElementLocator locator, int taskCompletionTimeout)
elementType
- the type of the related GUI element to logelementName
- the name of the related GUI element to loglocator
- to locate buttons, links or any other elements which react on mouse clicks.taskCompletionTimeout
- void doubleClick(String elementType, String elementName, GUIElementLocator locator, int taskCompletionTimeout)
elementType
- the type of the related GUI element to logelementName
- the name of the related GUI element to loglocator
- which identifies the element which shall be double clickedtaskCompletionTimeout
- String getInputFieldValue(String elementType, String elementName, GUIElementLocator locator)
elementType
- the type of the related GUI element to logelementName
- the name of the related GUI element to loglocator
- to locate the inputfield in the application under test where the inputfield must be an element for user
inputs. Two examples are single line inputfields and text areas in web applications. This action works also with
disabled inputfields.
null
will be returnedString getInputFieldSelectedLabel(String elementType, String elementName, GUIElementLocator locator)
elementType
- the type of the related GUI element to logelementName
- the name of the related GUI element to loglocator
- to locate the input field in the application under test where the inputfield must be an element for user
inputs. Two examples are dropdown boxes and lists in web applications. This action works also with disabled
input fields.
null
will be returnedvoid selectWindow(WindowLocator locator)
locator
- to locate one specific window of the application under testString getText(String elementType, String elementName, GUIElementLocator locator)
elementType
- the type of the related GUI element to logelementName
- the name of the related GUI element to loglocator
- points to one element
String getText(String elementType, String elementName, GUIElementLocator locator, boolean checkVisible)
elementType
- the type of the related GUI element to logelementName
- the name of the related GUI element to loglocator
- points to one element, visible: to check visibility of the elementcheckVisible
-
void focus(String elementType, String elementName, GUIElementLocator locator)
elementType
- the type of the related GUI element to logelementName
- the name of the related GUI element to loglocator
- of the element which shall get the focusvoid keyPress(int keycode)
KeyEvent
.
keycode
- is the key which shall be pressed.KeyEvent
void closeWindows(String elementType, String elementName, TitleLocator locator)
elementType
- the type of the target windows to logelementName
- the name of the target windows to loglocator
- - name of the windowvoid closeOtherWindows(String elementType, String elementName, TitleLocator locator)
elementType
- the type of the target windows to logelementName
- the name of the target windows to loglocator
- is a window locator or just a String which will be automatically converted to one of the default locators
depending on the underlying driver and the used default localization mechanismvoid waitForWindowToBeClosed(String elementType, String elementName, TitleLocator locator, int taskCompletionTimeout)
elementType
- the type of the target windows to logelementName
- the name of the target windows to loglocator
- is a window locator or just a String which will be automatically converted to one of the default locators
depending on the underlying driver and the used default localization mechanismtaskCompletionTimeout
- Timeout to wait until the window is closed. If the timeout is triggered, a TimeoutException is
raised. A value of -1 indicates to use the default configured timeout.void wrongPageFlow(String message)
void functionalError(String message)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |