Module | FrankensteinDriver |
In: |
frankenstein_driver.rb
|
The Frankenstein driver allows a Swing user interface to be tested. Regular expressions can be specified using the regular Ruby syntax.
test_status | [RW] |
Sets the location of the Frankenstein test reporting directory. The directory is usually specified before a test run.
Checks whether an OGNL expression evaluated against a specified component matches the specified value.
The expected value can be specified as a regular expression.
Check the elements of a specified table row.
The cell values can be an arbitrary list of arguments, which are checked from left to right, starting at the first column.
The cell values can be specified as regular expressions.
Checks whether the text of a specified text component matches the specified value.
The expected text can be specified as a regular expression.
Click on a specified checkbox.
The specified value can be true or false, and will select or deselect the checkbox
Close all open dialogs recursively until no more dialogs are open.
This function can be used to remove unexpected dialogs at the end of a test.
Close an internal frame with the specified title.
The title can be specified as a regular expression.
Wait for a dialog with a specified title to be closed.
This function waits for 10 seconds in case the dialog is found to be open. (The wait will be made configurable in a future release). The title can be specified as a regular expression.
Wait for a dialog with a specified title to be opened.
This function waits for 10 seconds in case the dialog is not found to be open. (The wait will be made configurable in a future release). The title can be specified as a regular expression.
Double clicks on a tree. Supports regular expressions
For example: double_click_tree "tree_name","top level",/.*level/,"third level"
Edit a table cell at the specified coordinates. The coordinates are specified as a "<row>,<column>" - for example, "1,1"
Checks that an internal frame with the specified title has been shown The title can be specified as a regular expression.
Enter a keystroke with the specified modifiers.
For example: key_stroke "Ctrl+Alt 0" for the modifiers "Control" & "Alt" and the key "0".
Navigate to a specified path in a menu item. Both menu bars and popup menus are supported.
The path needs to be specified as a string delimited by the > character. For example: "first level>second level>item". This function does not have regular expression support.
Right click on a tree item of the specified tree. Supports regular expressions
For example: right_click_tree "tree_name","top level",/.*level/,"third level"
Sends a test script to the Frankenstein Java runtime at the specified host and port.
Waits for the test to complete, and reports test results.
Selects the specified rows in a table. rows is a comma separated list of table rows.
Example: select_table_row "table_name" , "1,2,3"
Select a specified tree path. Supports regular expressions
For example: select_tree "tree_name","top level",/.*level/,"third level"