| Package Documentation for QFS Standard Library qfs.qft |
| Version 3.4.7 |
| Summary |
| Test-suite | qfs.qft |
| Directory |
|
This suite contains useful standard procedures provided and maintained by Quality First Software GmbH. For a description of packages and procedures of this library in javadoc format, see qfs.html in the same directory. |
| [Summary] [qfs.qft] |
| Package overview |
| Package | Description | |
|---|---|---|
| This package contains helpful standard procedures provided by Quality First Software. | ||
| Contains procedures to work with native windows of the operating system Windows. | ||
| Contain procedures to handle Adobe Acrobat Reader specific tasks like SaveAs or SaveAs Text ... | ||
| Procedures for advanced manipulation of awt components. | ||
| Procedures to select menu items. | ||
| Contains procedures to check components. | ||
| The procedures in this package are useful for generic cleanup after an exception is thrown. | ||
| Procedures for interacting with (SUT) clients. | ||
| Procedures to work with a QF-Test daemon. | ||
| Procedures to work with databases. | ||
| Procedures to bind data for data-driven testing. | ||
| Procedures for showing dialogs during the test-run. | ||
| Procedures for writing log-entries. | ||
| Procedures to write screenshots into the run-log. | ||
| Utility procedures for shell commands. | ||
| Procedures for advanced manipulation of swing components. | ||
| Procedures to set the state of checkboxes. | ||
| The procedures in this package are useful for generic cleanup after an exception is thrown. | ||
| Procedures to handle Comboboxes. | ||
| Procedures for accessing file chooser dialogs. | ||
| Procedures, which work for any Swing component. | ||
| Procedures for accessing lists. | ||
| Procedures for checking a list. | ||
| Procedures to (de-)select certain items of a list. | ||
| Procedures to select menu items and checkbox menu items. | ||
| Procedures for accessing standard error/message dialogs. | ||
| Procedures to select items and checkbox menu items from popup menus. | ||
| Procedures to access sliders. | ||
| Procedure for checking slider values. | ||
| Procedure to work with TabbedPanes. | ||
| Procedures to access tables. | ||
| Procedures to set the state of checkboxes in a table-cell. | ||
| Procedures for checking a table. | ||
| Procedures to (de-)select certain rows of a table. | ||
| Procedures to access text fields and text areas. | ||
| Procedures to access trees. | ||
| Procedures for checking a tree. | ||
| Procedures for advanced manipulation of SWT components. | ||
| Procedures to set the state of checkboxes. | ||
| The procedures in this package are useful for generic cleanup after an exception is thrown. | ||
| Procedures to handle Colordialogs. | ||
| Procedures to handle Comboboxes. | ||
| Procedures for SWT CTabFolder widgets. | ||
| Procedures for accessing directory dialogs. | ||
| Procedures for accessing file dialogs. | ||
| Procedures, which work for any SWT component. | ||
| Procedures for SWT instrumentation. | ||
| Procedures for accessing lists. | ||
| Procedures for checking a list. | ||
| Procedures to (de-)select certain items of a list. | ||
| Procedures to select menu items and checkbox menu items. | ||
| Procedures to select items and checkbox menu items from popup menus. | ||
| Procedures to work with sash components. | ||
| Procedures for SWT TabFolder widgets. | ||
| Procedures to access tables. | ||
| Procedures for checking a table. | ||
| Procedures to (de-)select certain rows of a table. | ||
| Procedures to access text fields and text areas. | ||
| Procedures to access trees. | ||
| Procedures for checking a tree. | ||
| Miscellaneous utility procedures. | ||
| Accessing the clipboard from procedures. | ||
| Procedures for sending E-Mails. | ||
| Procedures for interacting with a POP3 server. | ||
| Contain procedures to work with files. | ||
| Procedures for generating random string. | ||
| Procedures for handling the test execution. | ||
| Procedures for skipping test-steps. | ||
| Procedures for stopping test-steps. | ||
| Procedures for working with variables. | ||
| Procedures for working with XML files. | ||
| Web utility procedures. | ||
| AJAX procedures. | ||
| Browser procedures. | ||
| Procedures for handling Error-Dialogs opened within the Browser. | ||
| Procedures for handling DOM access. | ||
| General browser procedures. | ||
| Mozilla utility procedures. | ||
| The procedures in this package are useful for customizing browser settings. | ||
| Procedures to set the state of checkboxes. | ||
| Procedures for handling different web checks. | ||
| Procedures, which work for any Web component. | ||
| Procedures to access INPUT elements. | ||
| Procedures to access text fields and text areas. |
| [Summary] [qfs.qft] |
| Package overview |
| Package/Procedure/Dependency | Description | |
|---|---|---|
| This package contains helpful standard procedures provided by Quality First Software. | ||
| Contains procedures to work with native windows of the operating system Windows. | ||
| Contain procedures to handle Adobe Acrobat Reader specific tasks like SaveAs or SaveAs Text ... | ||
| Save the current open PDF in Adobe Acrobat Reader as a text file with the given filename. | ||
| Save the current open PDF in Adobe Acrobat Reader as a PDF file with the given filename. | ||
| Check, whether a native window on the operating system Windows is opened. | ||
| Check, whether a native window on the operating system Windows is opened and close it. | ||
| Close a window. | ||
| Read the URL from an InternetExplorer window. | ||
| Write all children of a window to the run-log. | ||
| Perform Ctrl+A and then Ctrl+C to a given window. | ||
| Mark and copy the whole text of a given document via Ctrl+A and Ctrl+C. | ||
| Procedures for advanced manipulation of awt components. | ||
| Procedures to select menu items. | ||
| Select an item from a menu. | ||
| Contains procedures to check components. | ||
| Check the state of a given component. | ||
| Check if given component is selected. | ||
| Check the text of a given component. | ||
| Compare two values for their equality. | ||
| Compare two values for their equality. | ||
| Compare two values for their equality. | ||
| The procedures in this package are useful for generic cleanup after an exception is thrown. | ||
| Close all dialogs. | ||
| Close all menus unconditionally. | ||
| Close all modal dialogs. | ||
| This procedure encompasses the usage of other cleanup procedures in this package and is the recommended operation to perform after an exception occurs and is implicitly caught. | ||
| Procedures for interacting with (SUT) clients. | ||
| Rename an SUT client. | ||
| Write a string to the stdin stream of a process started by QF-Test. | ||
| Helper method for turning on internal logging. | ||
| Helper method for turning off internal logging. | ||
| Procedures to work with a QF-Test daemon. | ||
| Starts remote instrumentation procedure for an Eclipse/RCP based or standalone SWT application via a given daemon. | ||
| Locate all running daemons and writes them into the run-log and prints a list of running daemons to the terminal. | ||
| Start a client application on a remote host via the QF-Test daemon. | ||
| Procedures to work with databases. | ||
| Build up connection to a given database and executes a specified select-sql-statement. | ||
| Build up connection to a given database and execute a specified SQL-statement. | ||
| Procedures to bind data for data-driven testing. | ||
| Create and register a databinder that binds a list of values to a variable. | ||
| Create and register a databinder that binds a list of value-sets to a set of variables. | ||
| Procedures for showing dialogs during the test-run. | ||
| Show a configurable dialog equivalent to JOptionPane. | ||
| Show an information dialog with an OK option. | ||
| Show an information dialog with a YES, NO and CANCEL option. | ||
| Show an information dialog with a YES and NO option. | ||
| Procedures for writing log-entries. | ||
| Write an error into the run-log. | ||
| Write a message into the run-log. | ||
| Write a warning into the run-log. | ||
| Procedures to write screenshots into the run-log. | ||
| Return the total number of monitors. | ||
| Write an image of a component into the run-log. | ||
| Write a screenshot of the whole screen into the run-log. | ||
| Write a screenshots of a given monitor into the run-log. | ||
| Utility procedures for shell commands. | ||
| Copy a given file or directory to a given target. | ||
| Delete a file. | ||
| Check whether a given file or directory exists. | ||
| Return the basename of the given file or directory. | ||
| Return the parent directory of the given file or directory. | ||
| Create a given directory. | ||
| Move a given file or directory to a given target. | ||
| Remove a given directory. | ||
| Create a given file or update the last modified date of an existing file. | ||
| Procedures for advanced manipulation of swing components. | ||
| Procedures to set the state of checkboxes. | ||
| Deselect a checkbox .If the checkbox is already de-selected, no action is performed. | ||
| Select a checkbox. | ||
| Set checkbox to the given state. | ||
| The procedures in this package are useful for generic cleanup after an exception is thrown. | ||
| Close all dialogs. | ||
| Close all menus unconditionally. | ||
| Close all modal dialogs. | ||
| This procedure encompasses the usage of other cleanup procedures in this package and is the recommended operation to perform after an exception occurs and is implicitly caught. | ||
| Procedures to handle Comboboxes. | ||
| Return the number of items of a given combo-box. | ||
| Select specified value of a given combobox. | ||
| Set a value in the combobox. | ||
| Select specified value of a given combobox using a SUT script. | ||
| Procedures for accessing file chooser dialogs. | ||
Uninstall the JFileChooser name resolver. |
||
Install the JFileChooser name resolver. |
||
Select a file in a JFileChooser dialog. |
||
| Procedures, which work for any Swing component. | ||
| Click on a given component, but only if the according parameter is set to true. | ||
| Delete the current association of PriorityAwtSwingComponent. | ||
| Click on a given component. | ||
| Set the location of a given component. | ||
| Set a given component to the PriorityAwtSwingComponent. | ||
| Set the wdith and the height of a given component. | ||
| Procedures for accessing lists. | ||
| Procedures for checking a list. | ||
| Check the number of items of a given list according to a specified comparison mode. | ||
| Return the current index of a given item. | ||
| Return the number of items of a given list. | ||
| Return the text of a given item. | ||
| Procedures to (de-)select certain items of a list. | ||
| Deselect all items. | ||
| Deselect a given item, specified by its index. | ||
| Deselect a range of items, specified by their index. | ||
| Select all items. | ||
| Select a given item, specified by its index. | ||
| Select a range of items, specified by their index. | ||
| Select a given item by a mouse-click on it. | ||
| Procedures to select menu items and checkbox menu items. | ||
| Select an item from a menu. | ||
| Select an item within a submenu. | ||
| Select a checkbox menu item. | ||
| Select a checkbox menu item within within a submenu. | ||
| Procedures for accessing standard error/message dialogs. | ||
Uninstall the JOptionPane name resolver. |
||
Install the JOptionPane name resolver. |
||
| Procedures to select items and checkbox menu items from popup menus. | ||
| Select an item in a popup menu. | ||
| Select an item within a submenu of a popup menu. | ||
| Select a checkbox menu item in a popup menu. | ||
| Select a checkbox menu item within a submenu of a popup menu. | ||
| Procedures to access sliders. | ||
| Procedure for checking slider values. | ||
| Check the value of a slider component | ||
| Return the value of a slider component. | ||
| Set the value of a slider component. | ||
| Set delays for the QF-Test SUT initialization process. | ||
| Procedure to work with TabbedPanes. | ||
| Close a tab via clicking on the "X "button. | ||
| Select a tab in a given TabbedPane. | ||
| Procedures to access tables. | ||
| Procedures to set the state of checkboxes in a table-cell. | ||
| Deselect a checkbox in a table-cell .If the checkbox is already de-selected, no action is performed. | ||
| Select a checkbox in a table-cell. | ||
| Set checkbox in a table-cell to the given state. | ||
| Procedures for checking a table. | ||
| Check the number of rows of a given table according to a specified comparison mode. | ||
| Return the number of columns of a given table. | ||
| Return the current index of a given column. | ||
| Return the header text of a given column. | ||
| Return the number of rows of a given table. | ||
| Return the row number of a given cell. | ||
| Return the text of a given cell. | ||
| Rezise width of a table column. | ||
| Select a given cell. | ||
| Procedures to (de-)select certain rows of a table. | ||
| Deselect all rows. | ||
| Deselect a given row, specified by its index. | ||
| Deselect a range of rows, specified by their index. | ||
| Select all rows. | ||
| Select a given row, specified by its index. | ||
| Select a range of rows, specified by their index. | ||
| Procedures to access text fields and text areas. | ||
| Clear a multi-line text area. | ||
| Clear a simple text field. | ||
| Set a given text to a given text-field or text-area. | ||
| Read the content of a given file and set its content to a given text-field. | ||
| Procedures to access trees. | ||
| Example for a callback procedure used by expandNodes. | ||
| Procedures for checking a tree. | ||
| Check the number of visilble rows of a given tree according to a specified comparison mode. | ||
| Collapse a tree node. | ||
| Collapse a tree node. | ||
| Expand a tree node. | ||
| Expand a tree node. | ||
| Expand a tree node recursively. | ||
| Return the current index of a given node. | ||
| Return the number of rows of a given tree. | ||
| Return the text of a given node. | ||
| Select a given node. | ||
| Procedures for advanced manipulation of SWT components. | ||
| Procedures to set the state of checkboxes. | ||
| Deselect a checkbox .If the checkbox is already de-selected, no action is performed. | ||
| Select a checkbox. | ||
| Set checkbox to the given state. | ||
| The procedures in this package are useful for generic cleanup after an exception is thrown. | ||
| Close all modal dialogs. | ||
| Close all menus unconditionally. | ||
| This procedure encompasses the usage of other cleanup procedures in this package and is the recommended operation to perform after an exception occurs and is implicitly caught. | ||
| Procedures to handle Colordialogs. | ||
| Select a specified color of a ColorDialog. | ||
| Procedures to handle Comboboxes. | ||
| Return the number of items of a given combo-box. | ||
| Select specified value of a given combobox using a selection event. | ||
| Select specified value of a given combobox using a SUT script. | ||
| Procedures for SWT CTabFolder widgets. | ||
| This procedure raises an error, if a given tab is not dirty. | ||
| Close a tab in a generic CTabFolder that is identified only by the fact that it contains the desired tab. | ||
| Open the View Menu for a generic CTabFolder that is identified only by the fact that it contains the desired tab. | ||
| Select a tab in a generic CTabFolder that is identified only by the fact that it contains the desired tab. | ||
| Procedures for accessing directory dialogs. | ||
Select a directory in a DirectoryDialog dialog. |
||
| Procedures for accessing file dialogs. | ||
Select a file in a FileDialog dialog. |
||
| Procedures, which work for any SWT component. | ||
| Click on a given component, but only if the according parameter is set to true. | ||
| Delete the current association of PrioritySwtComponent. | ||
| Click on a given component. | ||
| Set the location of a given component. | ||
| Set a given component to the PrioritySwtWidget. | ||
| Set the wdith and the height of a given component. | ||
| Procedures for SWT instrumentation. | ||
| Instrument an Eclipse/RCP based or standalone SWT application for use with QF-Test. | ||
| Procedures for accessing lists. | ||
| Procedures for checking a list. | ||
| Check the number of items of a given list according to a specified comparison mode. | ||
| Return the number of items of a given list. | ||
| Return the text of a given item. | ||
| Procedures to (de-)select certain items of a list. | ||
| Deselect all items. | ||
| Deselect a given item, specified by its index. | ||
| Deselect a range of items, specified by their index. | ||
| Select all items. | ||
| Select a given item, specified by its index. | ||
| Select a range of items, specified by their index. | ||
| Select a given item by a mouse-click on it. | ||
| Procedures to select menu items and checkbox menu items. | ||
| Select an item from a menu. | ||
| Select an item within a submenu. | ||
| Select a checkbox menu item. | ||
| Select a checkbox menu item within within a submenu. | ||
| Procedures to select items and checkbox menu items from popup menus. | ||
| Select an item in a popup menu. | ||
| Select an item within a submenu of a popup menu. | ||
| Select a checkbox menu item in a popup menu. | ||
| Select a checkbox menu item within a submenu of a popup menu. | ||
| Procedures to work with sash components. | ||
| Move a sash by a given distance. | ||
| Move a sash to a given position. | ||
| Scroll a component one page downwards by simulating a hard mouse click below the scrollbar's thumb. | ||
| Scroll a component one page to the left by simulating a hard mouse click to the left of the scrollbar's thumb. | ||
| Scroll a component one page to the right by simulating a hard mouse click to the right of the scrollbar's thumb. | ||
| Scroll a component one page upwards by simulating a hard mouse click above the scrollbar's thumb. | ||
| Scroll a component downwards by simulating a hard mouse click on the down arrow button of its vertical scrollbar. | ||
| Scroll a component to the left by simulating a hard mouse click on the left arrow button of its horizontal scrollbar. | ||
| Scroll a component to the right by simulating a hard mouse click on the right arrow button of its horizontal scrollbar. | ||
| Scroll a component upwards by simulating a hard mouse click on the up arrow button of its vertical scrollbar. | ||
| Procedures for SWT TabFolder widgets. | ||
| Close a tab via sending a "close" selection event. | ||
| Select a tab in a given Tabfolder. | ||
| Procedures to access tables. | ||
| Procedures for checking a table. | ||
| Check the number of rows of a given table according to a specified comparison mode. | ||
| Return the number of columns of a given table. | ||
| Return the header text of a given column. | ||
| Return the number of rows of a given table. | ||
| Return the text of a given cell. | ||
| Select a given cell. | ||
| Procedures to (de-)select certain rows of a table. | ||
| Deselect all rows. | ||
| Deselect a given row, specified by its index. | ||
| Deselect a range of rows, specified by their index. | ||
| Select all rows. | ||
| Select a given row, specified by its index. | ||
| Select a range of rows, specified by their index. | ||
| Procedures to access text fields and text areas. | ||
| Clear a multi-line text area. | ||
| Clear a simple text field. | ||
| Set a given text to a given text-field or text-area. | ||
| Read the content of a given file and set its content to a given text-field. | ||
| Procedures to access trees. | ||
| Example for a callback procedure used by expandNodes. | ||
| Procedures for checking a tree. | ||
| Check the number of visilble rows of a given tree according to a specified comparison mode. | ||
| Collapse a tree node. | ||
| Collapse a tree node. | ||
| Expand a tree node. | ||
| Expand a tree node. | ||
| Expand a tree node recursively. | ||
| Return the number of rows of a given tree. | ||
| Return the text of a given node. | ||
| Select a given node. | ||
| Miscellaneous utility procedures. | ||
| Accessing the clipboard from procedures. | ||
| Return the current text on the system clipboard. | ||
| Trigger a full thread dump in the SUT if possible. | ||
| Dump the heap of the Java VM. | ||
| Procedures for sending E-Mails. | ||
| Procedures for interacting with a POP3 server. | ||
| Delete all messages from a pop3 account. | ||
| Fetch a message from a pop3 account. | ||
| Send an e-mail. | ||
| Send an e-mail. | ||
| Contain procedures to work with files. | ||
| Check, whether a given file contain a specific value. | ||
| Check, whether a given file contain a specific value in a line. | ||
| Return a date, default is the current date in current locale. | ||
| Return the time in the current format. | ||
| Return a timestamp, which reprents the current time in milliseconds. | ||
| Kill all running clients. | ||
| Kill a client. | ||
| Log all available methods of a given component. | ||
| Log current memory use. | ||
| Print a given message to STDOUT. | ||
| Print the content of a variable. | ||
| Procedures for generating random string. | ||
| Return a random string created of parts of a specified area. | ||
| Return a random number. | ||
| Return a random number between two given numbers. | ||
| Return a random string containing small letters. | ||
| Read the content of a given file. | ||
| Procedures for handling the test execution. | ||
| Procedures for skipping test-steps. | ||
| Skip the execution of the current test-case. | ||
| Skip the execution of the current test-set. | ||
| Procedures for stopping test-steps. | ||
| Stop the execution of the current test-case | ||
| Stop the complete test-run. | ||
| Stop the execution of the current test-set. | ||
| Procedures for working with variables. | ||
| Delete all global QF-Test variables. | ||
| Delete a given global QF-Test variable. | ||
| Write a given message into a given file. | ||
| Procedures for working with XML files. | ||
| Compare two XML files for full identity. | ||
| Web utility procedures. | ||
| AJAX procedures. | ||
| Installs a special resolver for given AJAX toolkit to improve recorded component types and hierarchy and therefore achieves improved component recognition. | ||
| Browser procedures. | ||
| Procedures for handling Error-Dialogs opened within the Browser. | ||
| Uses the Java AWT Robot Methods to automatically close an open Certificate Warning Dialog. | ||
| Uses the Java AWT Robot Methods to automatically close an open Javascript Warning Dialog. | ||
| Handle the native Windows Upload dialog (especially for Internet Explorer 8). | ||
| Procedures for handling DOM access. | ||
| Checks or unchecks all (enabled) Checkboxes which are situated in the DOM-Tree beneath the given Parent. | ||
| General browser procedures. | ||
| Check for the browser and if is not running than start it. | ||
| Checks if running Browser-Engine has embedded Internet Explorer 6. | ||
| Open a new window in an already running browser. | ||
| Show a different URL in an open browser window. | ||
| Ensures the given browser executable is started as a new process. | ||
| Mozilla utility procedures. | ||
| Check whether a Mozilla home directory contains the necessary GRE (Gecko Runtime Environment) files to allow testing. | ||
| The procedures in this package are useful for customizing browser settings. | ||
| Delete cookies. | ||
| Disable cookies in the browser. | ||
| Do startup settings for the browser. | ||
| Empty the browser cache. | ||
| Sets the Compatibility-Mode in Internet Explorer. | ||
| Enable cookies in the browser. | ||
| Enable/Disables the MutationListeners in the QF-Test browser engine for a specific document or globally for all documents. | ||
| Set preferred language for in the displaying web pages in the browser. | ||
| Set a proxy server for the browser. | ||
| Procedures to set the state of checkboxes. | ||
| Deselect a checkbox. | ||
| Select a checkbox. | ||
| Set checkbox to the given state. | ||
| Set all (enabled) checkboxes inside a given parent. | ||
| Procedures for handling different web checks. | ||
| Checks an attribute of a component. | ||
| Negates a normal Elementcheck in select elements to allow NegationChecks. | ||
| Checks if the given element (option-element-text) is in the select-element (combo-box). | ||
| Negates a normal WaitForComponentCheck to allow VisibilityChecks. | ||
| Negates a normal Textcheck to allow NegationChecks. | ||
| Checks the title of the BrowserWindow. | ||
| Procedures, which work for any Web component. | ||
| Click on a given component, but only if the according parameter is set to true. | ||
| Delete the current association of PriorityWebComponent. | ||
| Click on a given component. | ||
| Set a given component to the PriorityWebComponent. | ||
| Procedures to access INPUT elements. | ||
| Set the value of the INPUT:FILE node by whatever means that are applicable for the browser. | ||
| Procedures to access text fields and text areas. | ||
| Clear a multi-line text area. | ||
| Clear a simple text field. | ||
| Set a given text to a given text-field or text-area. | ||
| Read the content of a given file and set its content to a given text-field. |
| [Summary] [qfs.qft] |
| Package: 'qfs' |
|
This package contains helpful standard procedures provided by Quality First Software. The "SUT client" name is used in many of the contained procedures represented by the "$(client)" variable. We recommend to define the variable "client" in the respective table of the test-suite's root node - as long as only one SUT client is used in the test-suite. This ensures that the "client" parameter doesn't have to be given separately.
|
| [Summary] [qfs.qft] [qfs] |
| Package: 'autowin' |
|
Contains procedures to work with native windows of the operating system Windows. All procedures use the Jython library autowin.py, located in the jython/Lib folder of the current installation. There are even more methods for your needs, e.g. click a button or setting a text.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Check, whether a native window on the operating system Windows is opened. | |||
| Check, whether a native window on the operating system Windows is opened and close it. | |||
| Close a window. | |||
| Read the URL from an InternetExplorer window. | |||
| Write all children of a window to the run-log. | |||
| Perform Ctrl+A and then Ctrl+C to a given window. | |||
| Mark and copy the whole text of a given document via Ctrl+A and Ctrl+C. |
| [Summary] [qfs.qft] [qfs] [autowin] |
| Procedure: 'checkForExistence' |
|
Check, whether a native window on the operating system Windows is opened. If the window is a result of your test you can configure it to provide an error or an exception, if the window does not appear.
|
| [Summary] [qfs.qft] [qfs] [autowin] |
| Procedure: 'checkForExistenceAndClose' |
|
Check, whether a native window on the operating system Windows is opened and close it. If the window is a result of your test you can configure it to provide an error or an exception, if the window does not appear.
|
| [Summary] [qfs.qft] [qfs] [autowin] |
| Procedure: 'close' |
|
Close a window.
|
| [Summary] [qfs.qft] [qfs] [autowin] |
| Procedure: 'getURLFromIE' |
|
Read the URL from an InternetExplorer window.
|
| [Summary] [qfs.qft] [qfs] [autowin] |
| Procedure: 'logChildWindows' |
|
Write all children of a window to the run-log.
|
| [Summary] [qfs.qft] [qfs] [autowin] |
| Procedure: 'markAllAndCopy' |
|
Perform Ctrl+A and then Ctrl+C to a given window. Afterwards you should have the text in the Clipboard, which enables you to insert the text somewhere for checking.
|
| [Summary] [qfs.qft] [qfs] [autowin] |
| Procedure: 'saveTextToFileViaClipboard' |
|
Mark and copy the whole text of a given document via Ctrl+A and Ctrl+C. Then it fetches the text from the clipboard and saves it into a given file.
|
| [Summary] [qfs.qft] [qfs] [autowin] |
| Package: 'acrobat' |
|
Contain procedures to handle Adobe Acrobat Reader specific tasks like SaveAs or SaveAs Text ...
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Save the current open PDF in Adobe Acrobat Reader as a text file with the given filename. | |||
| Save the current open PDF in Adobe Acrobat Reader as a PDF file with the given filename. |
| [Summary] [qfs.qft] [qfs] [autowin] [acrobat] |
| Procedure: 'saveAsText' |
|
Save the current open PDF in Adobe Acrobat Reader as a text file with the given filename. Note: It simultates the required keystrokes to open the file dialog. Currently only the English and German versions of Adobe Acrobat Reader are supported. Logs an error if the file is already existing but parameter overwriteExistingFile is set to true.
|
| [Summary] [qfs.qft] [qfs] [autowin] [acrobat] |
| Procedure: 'savePDF' |
|
Save the current open PDF in Adobe Acrobat Reader as a PDF file with the given filename. Note: It simultates CTRL+SHIFT+S keystrokes to open the file dialog. Logs an error if the file is already existing but parameter overwriteExistingFile is set to true.
|
| [Summary] [qfs.qft] [qfs] |
| Package: 'awt' |
|
Procedures for advanced manipulation of awt components.
|
| [Summary] [qfs.qft] [qfs] [awt] |
| Package: 'menu' |
|
Procedures to select menu items. (AWT components Plain AWT Menus are not supported by QF-Test out of the box, but you can use the procedures of this package to work with those menus.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Select an item from a menu. |
| [Summary] [qfs.qft] [qfs] [awt] [menu] |
| Procedure: 'selectItem' |
|
Select an item from a menu. For example: for the "File" -> "Open" action, the label of "File" is the menu, and the label for "Open" is the item.
|
| [Summary] [qfs.qft] [qfs] |
| Package: 'check' |
|
Contains procedures to check components.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Check the state of a given component. | |||
| Check if given component is selected. | |||
| Check the text of a given component. | |||
| Compare two values for their equality. | |||
| Compare two values for their equality. | |||
| Compare two values for their equality. |
| [Summary] [qfs.qft] [qfs] [check] |
| Procedure: 'checkEnabledStatus' |
|
Check the state of a given component. It writes an error into the run-log, if the check fails.
|
| [Summary] [qfs.qft] [qfs] [check] |
| Procedure: 'checkSelectedStatus' |
|
Check if given component is selected. It writes an error into the run-log, if the check fails.
|
| [Summary] [qfs.qft] [qfs] [check] |
| Procedure: 'checkText' |
|
Check the text of a given component. It writes an error into the run-log, if the check fails.
|
| [Summary] [qfs.qft] [qfs] [check] |
| Procedure: 'checkValueToBeEqual' |
|
Compare two values for their equality. It uses the rc.checkEqual() method from QF-Test.
|
| [Summary] [qfs.qft] [qfs] [check] |
| Procedure: 'compareTwoNumbers' |
|
Compare two values for their equality. Both values should be numbers. It uses the rc.check() method from QF-Test.
|
| [Summary] [qfs.qft] [qfs] [check] |
| Procedure: 'compareTwoStringValues' |
|
Compare two values for their equality. The values should be string values. It uses the rc.check() method from QF-Test.
|
| [Summary] [qfs.qft] [qfs] |
| Package: 'cleanup' |
|
Deprecated. The procedures in this package are useful for generic cleanup after an exception is thrown. In some cases a menu or modal dialog may have been left open, causing future events for the SUT to be blocked. This package is deprecated because according cleanup-procedures are implemented in the qfs.swing resp. qfs.swt package. Please use the technology specific procedures.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Close all dialogs. | |||
| Close all menus unconditionally. | |||
| Close all modal dialogs. | |||
| This procedure encompasses the usage of other cleanup procedures in this package and is the recommended operation to perform after an exception occurs and is implicitly caught. |
| [Summary] [qfs.qft] [qfs] [cleanup] |
| Procedure: 'closeAllDialogs' |
|
Deprecated. Close all dialogs.
|
| [Summary] [qfs.qft] [qfs] [cleanup] |
| Procedure: 'closeAllMenus' |
|
Deprecated. Close all menus unconditionally. A menu left open (or even just selected) will cause events for the SUT to be blocked. This procedure is recommened for cleanup after an exception occurs.
|
| [Summary] [qfs.qft] [qfs] [cleanup] |
| Procedure: 'closeAllModalDialogs' |
|
Deprecated. Close all modal dialogs. A modal dialog that is left open will cause events for the SUT to be blocked. Ensuring that modal dialogs are closed is a good operation to conduct in a setup/cleanup sequence.
|
| [Summary] [qfs.qft] [qfs] [cleanup] |
| Procedure: 'implicitExceptionHandler' |
|
Deprecated. This procedure encompasses the usage of other cleanup procedures in this package and is the recommended operation to perform after an exception occurs and is implicitly caught. Calling this procedure should be the first step in the cleanup sequence of any Test node with the "Implicitly catch exceptions" attribute set.
|
| [Summary] [qfs.qft] [qfs] |
| Package: 'client' |
|
Procedures for interacting with (SUT) clients.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Rename an SUT client. | |||
| Write a string to the stdin stream of a process started by QF-Test. | |||
| Helper method for turning on internal logging. | |||
| Helper method for turning off internal logging. |
| [Summary] [qfs.qft] [qfs] [client] |
| Procedure: 'renameClient' |
|
Rename an SUT client. This is especially useful when interacting with sub-processes of an SUT where you don't have full control over the client name during startup.
|
| [Summary] [qfs.qft] [qfs] [client] |
| Procedure: 'sendInput' |
|
Write a string to the stdin stream of a process started by QF-Test.
|
| [Summary] [qfs.qft] [qfs] [client] |
| Procedure: 'startLogging' |
|
Helper method for turning on internal logging. For QFS support and debugging use only.
|
| [Summary] [qfs.qft] [qfs] [client] |
| Procedure: 'stopLogging' |
|
Helper method for turning off internal logging. For QFS support and debugging use only.
|
| [Summary] [qfs.qft] [qfs] |
| Package: 'daemon' |
|
Procedures to work with a QF-Test daemon.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Starts remote instrumentation procedure for an Eclipse/RCP based or standalone SWT application via a given daemon. | |||
| Locate all running daemons and writes them into the run-log and prints a list of running daemons to the terminal. | |||
| Start a client application on a remote host via the QF-Test daemon. |
| [Summary] [qfs.qft] [qfs] [daemon] |
| Procedure: 'instrumentRemoteSwt' |
|
Starts remote instrumentation procedure for an Eclipse/RCP based or standalone SWT application via a given daemon.
|
| [Summary] [qfs.qft] [qfs] [daemon] |
| Procedure: 'locateDaemons' |
|
Locate all running daemons and writes them into the run-log and prints a list of running daemons to the terminal. If no daemons can be found it logs an error.
|
| [Summary] [qfs.qft] [qfs] [daemon] |
| Procedure: 'startRemoteSUT' |
|
Start a client application on a remote host via the QF-Test daemon.
|
| [Summary] [qfs.qft] [qfs] |
| Package: 'database' |
|
Procedures to work with databases.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Build up connection to a given database and executes a specified select-sql-statement. | |||
| Build up connection to a given database and execute a specified SQL-statement. |
| [Summary] [qfs.qft] [qfs] [database] |
| Procedure: 'executeSelectStatement' |
|
Build up connection to a given database and executes a specified select-sql-statement. You can configure the procedure to store all results in a group QF-Test variable. NOTE: The SQL-statement should be a select statement! NOTE: The class of the database driver must be either in QF-Test's plugin directory or in the CLASSPATH environment variable before QF-Test startup! For more information about connection-strings please see www.connectionstrings.com.
|
| [Summary] [qfs.qft] [qfs] [database] |
| Procedure: 'executeStatement' |
|
Build up connection to a given database and execute a specified SQL-statement. NOTE: The class of the database driver must be either in QF-Test's plugin directory or in the CLASSPATH environment variable before QF-Test startup! For more information about connection-strings please see www.connectionstrings.com.
|
| [Summary] [qfs.qft] [qfs] |
| Package: 'databinder' |
|
Procedures to bind data for data-driven testing.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Create and register a databinder that binds a list of values to a variable. | |||
| Create and register a databinder that binds a list of value-sets to a set of variables. |
| [Summary] [qfs.qft] [qfs] [databinder] |
| Procedure: 'bindList' |
|
Create and register a databinder that binds a list of values to a variable.
|
| [Summary] [qfs.qft] [qfs] [databinder] |
| Procedure: 'bindSets' |
|
Create and register a databinder that binds a list of value-sets to a set of variables.
|
| [Summary] [qfs.qft] [qfs] |
| Package: 'dialogs' |
|
Procedures for showing dialogs during the test-run.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Show a configurable dialog equivalent to JOptionPane. | |||
| Show an information dialog with an OK option. | |||
| Show an information dialog with a YES, NO and CANCEL option. | |||
| Show an information dialog with a YES and NO option. |
| [Summary] [qfs.qft] [qfs] [dialogs] |
| Procedure: 'showConfigurabableDialog' |
|
Show a configurable dialog equivalent to JOptionPane.
|
| [Summary] [qfs.qft] [qfs] [dialogs] |
| Procedure: 'showInformationMessageDialog' |
|
Show an information dialog with an OK option.
|
| [Summary] [qfs.qft] [qfs] [dialogs] |
| Procedure: 'showYes_No_Cancel_Dialog' |
|
Show an information dialog with a YES, NO and CANCEL option.
|
| [Summary] [qfs.qft] [qfs] [dialogs] |
| Procedure: 'showYes_No_Dialog' |
|
Show an information dialog with a YES and NO option.
|
| [Summary] [qfs.qft] [qfs] |
| Package: 'run-log' |
|
Procedures for writing log-entries.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Write an error into the run-log. | |||
| Write a message into the run-log. | |||
| Write a warning into the run-log. |
| [Summary] [qfs.qft] [qfs] [run-log] |
| Procedure: 'logError' |
|
Write an error into the run-log.
|
| [Summary] [qfs.qft] [qfs] [run-log] |
| Procedure: 'logMessage' |
|
Write a message into the run-log.
|
| [Summary] [qfs.qft] [qfs] [run-log] |
| Procedure: 'logWarning' |
|
Write a warning into the run-log.
|
| [Summary] [qfs.qft] [qfs] [run-log] |
| Package: 'screenshots' |
|
Procedures to write screenshots into the run-log.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Return the total number of monitors. | |||
| Write an image of a component into the run-log. | |||
| Write a screenshot of the whole screen into the run-log. | |||
| Write a screenshots of a given monitor into the run-log. |
| [Summary] [qfs.qft] [qfs] [run-log] [screenshots] |
| Procedure: 'getMonitorCount' |
|
Return the total number of monitors.
|
| [Summary] [qfs.qft] [qfs] [run-log] [screenshots] |
| Procedure: 'logImageOfComponent' |
|
Write an image of a component into the run-log.
|
| [Summary] [qfs.qft] [qfs] [run-log] [screenshots] |
| Procedure: 'logScreenshot' |
|
Write a screenshot of the whole screen into the run-log.
|
| [Summary] [qfs.qft] [qfs] [run-log] [screenshots] |
| Procedure: 'logScreenshotOfMonitor' |
|
Write a screenshots of a given monitor into the run-log.
|
| [Summary] [qfs.qft] [qfs] |
| Package: 'shellutils' |
|
Utility procedures for shell commands.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Copy a given file or directory to a given target. | |||
| Delete a file. | |||
| Check whether a given file or directory exists. | |||
| Return the basename of the given file or directory. | |||
| Return the parent directory of the given file or directory. | |||
| Create a given directory. | |||
| Move a given file or directory to a given target. | |||
| Remove a given directory. | |||
| Create a given file or update the last modified date of an existing file. |
| [Summary] [qfs.qft] [qfs] [shellutils] |
| Procedure: 'copy' |
|
Copy a given file or directory to a given target. If the target is a directory, copy source into that directory. If target's parent directory does not exist, create it.
|
| [Summary] [qfs.qft] [qfs] [shellutils] |
| Procedure: 'deleteFile' |
|
Delete a file.
|
| [Summary] [qfs.qft] [qfs] [shellutils] |
| Procedure: 'exists' |
|
Check whether a given file or directory exists.
|
| [Summary] [qfs.qft] [qfs] [shellutils] |
| Procedure: 'getBasename' |
|
Return the basename of the given file or directory. If the root directory is specified as parameter an empty string will returned.
|
| [Summary] [qfs.qft] [qfs] [shellutils] |
| Procedure: 'getParentdirectory' |
|
Return the parent directory of the given file or directory. If the root directory is specified as parameter an empty string will returned.
|
| [Summary] [qfs.qft] [qfs] [shellutils] |
| Procedure: 'mkdir' |
|
Create a given directory. It also creates non-existing parent directories.
|
| [Summary] [qfs.qft] [qfs] [shellutils] |
| Procedure: 'move' |
|
Move a given file or directory to a given target. If the target is a directory, copy source into that directory. If target's parent directory does not exist, create it. If an error happens during copying, source is not changed.
|
| [Summary] [qfs.qft] [qfs] [shellutils] |
| Procedure: 'removeDirectory' |
|
Remove a given directory.
|
| [Summary] [qfs.qft] [qfs] [shellutils] |
| Procedure: 'touch' |
|
Create a given file or update the last modified date of an existing file. For creation it also creates non-existing parent directories.
|
| [Summary] [qfs.qft] [qfs] |
| Package: 'swing' |
|
Procedures for advanced manipulation of swing components.
|
| [Summary] [qfs.qft] [qfs] [swing] |
| Package: 'checkbox' |
|
Procedures to set the state of checkboxes.
(Swing component
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Deselect a checkbox .If the checkbox is already de-selected, no action is performed. | |||
| Select a checkbox. | |||
| Set checkbox to the given state. |
| [Summary] [qfs.qft] [qfs] [swing] [checkbox] |
| Procedure: 'deselect' |
|
Deselect a checkbox .If the checkbox is already de-selected, no action is performed.
|
| [Summary] [qfs.qft] [qfs] [swing] [checkbox] |
| Procedure: 'select' |
|
Select a checkbox. If the checkbox is already selected, no action is performed.
|
| [Summary] [qfs.qft] [qfs] [swing] [checkbox] |
| Procedure: 'set' |
|
Set checkbox to the given state.
|
| [Summary] [qfs.qft] [qfs] [swing] |
| Package: 'cleanup' |
|
The procedures in this package are useful for generic cleanup after an exception is thrown. In some cases a menu or modal dialog may have been left open, causing future events for the SUT to be blocked.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Close all dialogs. | |||
| Close all menus unconditionally. | |||
| Close all modal dialogs. | |||
| This procedure encompasses the usage of other cleanup procedures in this package and is the recommended operation to perform after an exception occurs and is implicitly caught. |
| [Summary] [qfs.qft] [qfs] [swing] [cleanup] |
| Procedure: 'closeAllDialogs' |
|
Close all dialogs.
|
| [Summary] [qfs.qft] [qfs] [swing] [cleanup] |
| Procedure: 'closeAllMenus' |
|
Close all menus unconditionally. A menu left open (or even just selected) will cause events for the SUT to be blocked. This procedure is recommened for cleanup after an exception occurs.
|
| [Summary] [qfs.qft] [qfs] [swing] [cleanup] |
| Procedure: 'closeAllModalDialogs' |
|
Close all modal dialogs. A modal dialog that is left open will cause events for the SUT to be blocked. Ensuring that modal dialogs are closed is a good operation to conduct in a setup/cleanup sequence.
|
| [Summary] [qfs.qft] [qfs] [swing] [cleanup] |
| Procedure: 'implicitExceptionHandler' |
|
This procedure encompasses the usage of other cleanup procedures in this package and is the recommended operation to perform after an exception occurs and is implicitly caught. Calling this procedure should be the first step in the cleanup sequence of any Test node with the "Implicitly catch exceptions" attribute set.
|
| [Summary] [qfs.qft] [qfs] [swing] |
| Package: 'combobox' |
|
Procedures to handle Comboboxes.
(Swing component
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Return the number of items of a given combo-box. | |||
| Select specified value of a given combobox. | |||
| Set a value in the combobox. | |||
| Select specified value of a given combobox using a SUT script. |
| [Summary] [qfs.qft] [qfs] [swing] [combobox] |
| Procedure: 'getItemCount' |
|
Return the number of items of a given combo-box. It uses the method getModel().getSize() to get the number.
|
| [Summary] [qfs.qft] [qfs] [swing] [combobox] |
| Procedure: 'setValue' |
|
Select specified value of a given combobox. If the given value is empty, no action will take place.
|
| [Summary] [qfs.qft] [qfs] [swing] [combobox] |
| Procedure: 'setValueViaIndex' |
|
Set a value in the combobox.
|
| [Summary] [qfs.qft] [qfs] [swing] [combobox] |
| Procedure: 'setValueViaSUTScript' |
|
Select specified value of a given combobox using a SUT script.
It uses the API-method If the given value is empty, no action will take place.
|
| [Summary] [qfs.qft] [qfs] [swing] |
| Package: 'filechooser' |
|
Procedures for accessing file chooser dialogs.
(Swing component
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Uninstall the JFileChooser name resolver. |
|||
| Install the JFileChooser name resolver. |
|||
| Select a file in a JFileChooser dialog. |
| [Summary] [qfs.qft] [qfs] [swing] [filechooser] |
| Procedure: 'disableNameResolver' |
|
Uninstall the
|
| [Summary] [qfs.qft] [qfs] [swing] [filechooser] |
| Procedure: 'enableNameResolver' |
|
Install the
|
| [Summary] [qfs.qft] [qfs] [swing] [filechooser] |
| Procedure: 'selectFile' |
|
Select a file in a The filechooser dialog must already be open (or at least be triggered to open).
|
| [Summary] [qfs.qft] [qfs] [swing] |
| Package: 'general' |
|
Procedures, which work for any Swing component.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Click on a given component, but only if the according parameter is set to true. | |||
| Delete the current association of PriorityAwtSwingComponent. | |||
| Click on a given component. | |||
| Set the location of a given component. | |||
| Set a given component to the PriorityAwtSwingComponent. | |||
| Set the wdith and the height of a given component. |
| [Summary] [qfs.qft] [qfs] [swing] [general] |
| Procedure: 'clickAtComponent' |
|
Click on a given component, but only if the according parameter is set to true.
|
| [Summary] [qfs.qft] [qfs] [swing] [general] |
| Procedure: 'deleteOverrideComponent' |
|
Delete the current association of PriorityAwtSwingComponent.
|
| [Summary] [qfs.qft] [qfs] [swing] [general] |
| Procedure: 'doClick' |
|
Click on a given component.
|
| [Summary] [qfs.qft] [qfs] [swing] [general] |
| Procedure: 'setLocation' |
|
Set the location of a given component. It uses setLocation(x,y) to set the location.
|
| [Summary] [qfs.qft] [qfs] [swing] [general] |
| Procedure: 'setOverrideComponent' |
|
Set a given component to the PriorityAwtSwingComponent.
|
| [Summary] [qfs.qft] [qfs] [swing] [general] |
| Procedure: 'setSize' |
|
Set the wdith and the height of a given component. It uses setSize(width, height) to set the size.
|
| [Summary] [qfs.qft] [qfs] [swing] |
| Package: 'list' |
|
Procedures for accessing lists.
(Swing component
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Return the current index of a given item. | |||
| Return the number of items of a given list. | |||
| Return the text of a given item. | |||
| Select a given item by a mouse-click on it. |
| [Summary] [qfs.qft] [qfs] [swing] [list] |
| Procedure: 'getIndexOfItem' |
|
Return the current index of a given item. Sample usage: Can be used to determine the numeric index of an item like 'Price'.
|
| [Summary] [qfs.qft] [qfs] [swing] [list] |
| Procedure: 'getItemCount' |
|
Return the number of items of a given list. It uses the method getModel().getSize() to get the number.
|
| [Summary] [qfs.qft] [qfs] [swing] [list] |
| Procedure: 'getValueOfItem' |
|
Return the text of a given item. Sample usage: Determine the text of the second item.
|
| [Summary] [qfs.qft] [qfs] [swing] [list] |
| Procedure: 'selectItem' |
|
Select a given item by a mouse-click on it.
|
| [Summary] [qfs.qft] [qfs] [swing] [list] |
| Package: 'checks' |
|
Procedures for checking a list.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Check the number of items of a given list according to a specified comparison mode. |
| [Summary] [qfs.qft] [qfs] [swing] [list] [checks] |
| Procedure: 'checkNumberOfItems' |
|
Check the number of items of a given list according to a specified comparison mode. It uses JList.getModel().getSize() to get the number. Sample usage: You can check, that a list has exactly 6 items or that the table has less then 10 items.
|
| [Summary] [qfs.qft] [qfs] [swing] [list] |
| Package: 'selection' |
|
Procedures to (de-)select certain items of a list.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Deselect all items. | |||
| Deselect a given item, specified by its index. | |||
| Deselect a range of items, specified by their index. | |||
| Select all items. | |||
| Select a given item, specified by its index. | |||
| Select a range of items, specified by their index. |
| [Summary] [qfs.qft] [qfs] [swing] [list] [selection] |
| Procedure: 'deselectAllItems' |
|
Deselect all items. It uses
|
| [Summary] [qfs.qft] [qfs] [swing] [list] [selection] |
| Procedure: 'deselectItem' |
|
Deselect a given item, specified by its index. It uses
|
| [Summary] [qfs.qft] [qfs] [swing] [list] [selection] |
| Procedure: 'deselectItemRange' |
|
Deselect a range of items, specified by their index. It uses
|
| [Summary] [qfs.qft] [qfs] [swing] [list] [selection] |
| Procedure: 'selectAllItems' |
|
Select all items. It uses
|
| [Summary] [qfs.qft] [qfs] [swing] [list] [selection] |
| Procedure: 'selectItem' |
|
Select a given item, specified by its index. It uses
|
| [Summary] [qfs.qft] [qfs] [swing] [list] [selection] |
| Procedure: 'selectItemRange' |
|
Select a range of items, specified by their index. It uses
|
| [Summary] [qfs.qft] [qfs] [swing] |
| Package: 'menu' |
|
Procedures to select menu items and checkbox menu items.
(Swing components
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Select an item from a menu. | |||
| Select an item within a submenu. | |||
| Select a checkbox menu item. | |||
| Select a checkbox menu item within within a submenu. |
| [Summary] [qfs.qft] [qfs] [swing] [menu] |
| Procedure: 'selectItem' |
|
Select an item from a menu. For example: for the File -> Open action, the component ID of "File" is the menu, and the ID for "Open" is the item.
|
| [Summary] [qfs.qft] [qfs] [swing] [menu] |
| Procedure: 'selectSubItem' |
|
Select an item within a submenu. For example: for the View -> Terminal -> Show action, the component ID of "View" is the menu, the ID for "Terminal" is the item, and the ID for "Show" is the sub-item to select.
|
| [Summary] [qfs.qft] [qfs] [swing] [menu] |
| Procedure: 'setCheckItem' |
|
Select a checkbox menu item. For example: for the View -> Show Details action, the component ID of "View" is the menu, and the ID for "Show Details" is the checbox item to set (to true or false).
|
| [Summary] [qfs.qft] [qfs] [swing] [menu] |
| Procedure: 'setSubCheckItem' |
|
Select a checkbox menu item within within a submenu. For example: for the View -> Terminal -> Wrap Lines action, the component ID of "View" is the menu, the ID for "Terminal" is the item and the ID for "Wrap Lines" is the checkbox menu item to set (to true or false).
|
| [Summary] [qfs.qft] [qfs] [swing] |
| Package: 'optionpane' |
|
Procedures for accessing standard error/message dialogs.
(Swing component
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Uninstall the JOptionPane name resolver. |
|||
| Install the JOptionPane name resolver. |
| [Summary] [qfs.qft] [qfs] [swing] [optionpane] |
| Procedure: 'disableNameResolver' |
|
Uninstall the
|
| [Summary] [qfs.qft] [qfs] [swing] [optionpane] |
| Procedure: 'enableNameResolver' |
|
Install the
|
| [Summary] [qfs.qft] [qfs] [swing] |
| Package: 'popupmenu' |
|
Procedures to select items and checkbox menu items from popup menus. Note that for all procedures, the popup menu must first be opened by the calling test-suite, as the popup menu is component-dependent. See package "menu" for more details about menus and sub-menus.
(Swing components
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Select an item in a popup menu. | |||
| Select an item within a submenu of a popup menu. | |||
| Select a checkbox menu item in a popup menu. | |||
| Select a checkbox menu item within a submenu of a popup menu. |
| [Summary] [qfs.qft] [qfs] [swing] [popupmenu] |
| Procedure: 'selectItem' |
|
Select an item in a popup menu.
|
| [Summary] [qfs.qft] [qfs] [swing] [popupmenu] |
| Procedure: 'selectSubItem' |
|
Select an item within a submenu of a popup menu.
|
| [Summary] [qfs.qft] [qfs] [swing] [popupmenu] |
| Procedure: 'setCheckItem' |
|
Select a checkbox menu item in a popup menu.
|
| [Summary] [qfs.qft] [qfs] [swing] [popupmenu] |
| Procedure: 'setSubCheckItem' |
|
Select a checkbox menu item within a submenu of a popup menu.
|
| [Summary] [qfs.qft] [qfs] [swing] |
| Package: 'slider' |
|
Procedures to access sliders.
(Swing component
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Return the value of a slider component. | |||
| Set the value of a slider component. |
| [Summary] [qfs.qft] [qfs] [swing] [slider] |
| Procedure: 'getValue' |
|
Return the value of a slider component.
|
| [Summary] [qfs.qft] [qfs] [swing] [slider] |
| Procedure: 'setValue' |
|
Set the value of a slider component.
|
| [Summary] [qfs.qft] [qfs] [swing] [slider] |
| Package: 'checks' |
|
Procedure for checking slider values.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Check the value of a slider component |
| [Summary] [qfs.qft] [qfs] [swing] [slider] [checks] |
| Procedure: 'checkValue' |
|
Check the value of a slider component
|
| [Summary] [qfs.qft] [qfs] [swing] |
| Package: 'startup' |
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Set delays for the QF-Test SUT initialization process. |
| [Summary] [qfs.qft] [qfs] [swing] [startup] |
| Procedure: 'setDelays' |
|
Set delays for the QF-Test SUT initialization process. The Java WebStart launcher has several race conditions where initialization of QF-Test SUT client wrapper can lead to problems, even to crashes. By calling this procedure before SUT startup with one or more of the following parameters it is possible to delay QF-Tests's SUT initialization at critical points. Unfortunately there is no single optimal setting. In case you experience problems with SUT startup you will need to experiment with these values. Start with few parameters and values between 5000 and 10000.
|
| [Summary] [qfs.qft] [qfs] [swing] |
| Package: 'tabbedpane' |
|
Procedure to work with TabbedPanes.
(Swing component
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Close a tab via clicking on the "X "button. | |||
| Select a tab in a given TabbedPane. |
| [Summary] [qfs.qft] [qfs] [swing] [tabbedpane] |
| Procedure: 'closeTab' |
|
Close a tab via clicking on the "X "button. The procedure assumes that the "X" button is located 10 pixel away from the right corner. If this doesn't work for you, you can configure this via the parameter "wdiff".
|
| [Summary] [qfs.qft] [qfs] [swing] [tabbedpane] |
| Procedure: 'selectTab' |
|
Select a tab in a given TabbedPane.
|
| [Summary] [qfs.qft] [qfs] [swing] |
| Package: 'table' |
|
Procedures to access tables.
(Swing component
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Return the number of columns of a given table. | |||
| Return the current index of a given column. | |||
| Return the header text of a given column. | |||
| Return the number of rows of a given table. | |||
| Return the row number of a given cell. | |||
| Return the text of a given cell. | |||
| Rezise width of a table column. | |||
| Select a given cell. |
| [Summary] [qfs.qft] [qfs] [swing] [table] |
| Procedure: 'getColumnCount' |
|
Return the number of columns of a given table.
It uses the method
|
| [Summary] [qfs.qft] [qfs] [swing] [table] |
| Procedure: 'getIndexOfColumn' |
|
Return the current index of a given column. Sample usage: Can be used to determine the numeric index of a column like 'Price'.
|
| [Summary] [qfs.qft] [qfs] [swing] [table] |
| Procedure: 'getNameOfColumn' |
|
Return the header text of a given column. Sample usage: Determine the title of the second colum.
|
| [Summary] [qfs.qft] [qfs] [swing] [table] |
| Procedure: 'getRowCount' |
|
Return the number of rows of a given table. It uses the method JTable.getRowCount() to get the number.
|
| [Summary] [qfs.qft] [qfs] [swing] [table] |
| Procedure: 'getRowIndexOfCell' |
|
Return the row number of a given cell. Sample usage: Can be used to determine, in which row a dedicated cell is located.
|
| [Summary] [qfs.qft] [qfs] [swing] [table] |
| Procedure: 'getValueOfCell' |
|
Return the text of a given cell. Sample usage: Can be used to determine the text of the cell in the first column and first row.
|
| [Summary] [qfs.qft] [qfs] [swing] [table] |
| Procedure: 'resizeColumn' |
|
Rezise width of a table column.
|
| [Summary] [qfs.qft] [qfs] [swing] [table] |
| Procedure: 'selectCell' |
|
Select a given cell.
|
| [Summary] [qfs.qft] [qfs] [swing] [table] |
| Package: 'checkbox' |
|
Procedures to set the state of checkboxes in a table-cell. These procedures become necessary, because checkboxes in tables cannot be treated like normale checkboxes.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Deselect a checkbox in a table-cell .If the checkbox is already de-selected, no action is performed. | |||
| Select a checkbox in a table-cell. | |||
| Set checkbox in a table-cell to the given state. |
| [Summary] [qfs.qft] [qfs] [swing] [table] [checkbox] |
| Procedure: 'deselect' |
|
Deselect a checkbox in a table-cell .If the checkbox is already de-selected, no action is performed.
|
| [Summary] [qfs.qft] [qfs] [swing] [table] [checkbox] |
| Procedure: 'select' |
|
Select a checkbox in a table-cell. If the checkbox is already selected, no action is performed.
|
| [Summary] [qfs.qft] [qfs] [swing] [table] [checkbox] |
| Procedure: 'set' |
|
Set checkbox in a table-cell to the given state.
|
| [Summary] [qfs.qft] [qfs] [swing] [table] |
| Package: 'checks' |
|
Procedures for checking a table.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Check the number of rows of a given table according to a specified comparison mode. |
| [Summary] [qfs.qft] [qfs] [swing] [table] [checks] |
| Procedure: 'checkNumberOfRows' |
|
Check the number of rows of a given table according to a specified comparison mode. It uses the method JTable.getRowCount() to get the number. Sample usage: You can check, that a table has exactly 6 rows or that the table has less then 10 rows.
|
| [Summary] [qfs.qft] [qfs] [swing] [table] |
| Package: 'selection' |
|
Procedures to (de-)select certain rows of a table.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Deselect all rows. | |||
| Deselect a given row, specified by its index. | |||
| Deselect a range of rows, specified by their index. | |||
| Select all rows. | |||
| Select a given row, specified by its index. | |||
| Select a range of rows, specified by their index. |
| [Summary] [qfs.qft] [qfs] [swing] [table] [selection] |
| Procedure: 'deselectAllRows' |
|
Deselect all rows. It uses
|
| [Summary] [qfs.qft] [qfs] [swing] [table] [selection] |
| Procedure: 'deselectRow' |
|
Deselect a given row, specified by its index. It uses
|
| [Summary] [qfs.qft] [qfs] [swing] [table] [selection] |
| Procedure: 'deselectRowRange' |
|
Deselect a range of rows, specified by their index. It uses
|
| [Summary] [qfs.qft] [qfs] [swing] [table] [selection] |
| Procedure: 'selectAllRows' |
|
Select all rows. It uses
|
| [Summary] [qfs.qft] [qfs] [swing] [table] [selection] |
| Procedure: 'selectRow' |
|
Select a given row, specified by its index. It uses
|
| [Summary] [qfs.qft] [qfs] [swing] [table] [selection] |
| Procedure: 'selectRowRange' |
|
Select a range of rows, specified by their index. It uses
|
| [Summary] [qfs.qft] [qfs] [swing] |
| Package: 'text' |
|
Procedures to access text fields and text areas.
(Swing components
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Clear a multi-line text area. | |||
| Clear a simple text field. | |||
| Set a given text to a given text-field or text-area. | |||
| Read the content of a given file and set its content to a given text-field. |
| [Summary] [qfs.qft] [qfs] [swing] [text] |
| Procedure: 'clearArea' |
|
Clear a multi-line text area.
|
| [Summary] [qfs.qft] [qfs] [swing] [text] |
| Procedure: 'clearField' |
|
Clear a simple text field.
|
| [Summary] [qfs.qft] [qfs] [swing] [text] |
| Procedure: 'setText' |
|
Set a given text to a given text-field or text-area. If the text is empty, no action will take place.
|
| [Summary] [qfs.qft] [qfs] [swing] [text] |
| Procedure: 'setTextFromFile' |
|
Read the content of a given file and set its content to a given text-field.
|
| [Summary] [qfs.qft] [qfs] [swing] |
| Package: 'tree' |
|
Procedures to access trees.
(Swing component
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Example for a callback procedure used by expandNodes. | |||
| Collapse a tree node. | |||
| Collapse a tree node. | |||
| Expand a tree node. | |||
| Expand a tree node. | |||
| Expand a tree node recursively. | |||
| Return the current index of a given node. | |||
| Return the number of rows of a given tree. | |||
| Return the text of a given node. | |||
| Select a given node. |
| [Summary] [qfs.qft] [qfs] [swing] [tree] |
| Procedure: 'callbackPrintNodeText' |
|
Example for a callback procedure used by expandNodes.
|
| [Summary] [qfs.qft] [qfs] [swing] [tree] |
| Procedure: 'collapse' |
|
Collapse a tree node.
|
| [Summary] [qfs.qft] [qfs] [swing] [tree] |
| Procedure: 'collapseNode' |
|
Collapse a tree node.
|
| [Summary] [qfs.qft] [qfs] [swing] [tree] |
| Procedure: 'expand' |
|
Expand a tree node.
|
| [Summary] [qfs.qft] [qfs] [swing] [tree] |
| Procedure: 'expandNode' |
|
Expand a tree node.
|
| [Summary] [qfs.qft] [qfs] [swing] [tree] |
| Procedure: 'expandNodes' |
|
Expand a tree node recursively.
|
| [Summary] [qfs.qft] [qfs] [swing] [tree] |
| Procedure: 'getIndexOfNode' |
|
Return the current index of a given node. Sample usage: Can be used to determine the numeric index of a node like '/Root/Price'.
|
| [Summary] [qfs.qft] [qfs] [swing] [tree] |
| Procedure: 'getRowCount' |
|
Return the number of rows of a given tree. It uses the method getRowCount() to get the number.
|
| [Summary] [qfs.qft] [qfs] [swing] [tree] |
| Procedure: 'getValueOfNode' |
|
Return the text of a given node. Sample usage: Determine the text value for a node referenced by index like /0/1.
|
| [Summary] [qfs.qft] [qfs] [swing] [tree] |
| Procedure: 'selectNode' |
|
Select a given node.
|
| [Summary] [qfs.qft] [qfs] [swing] [tree] |
| Package: 'checks' |
|
Procedures for checking a tree.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Check the number of visilble rows of a given tree according to a specified comparison mode. |
| [Summary] [qfs.qft] [qfs] [swing] [tree] [checks] |
| Procedure: 'checkNumberOfRows' |
|
Check the number of visilble rows of a given tree according to a specified comparison mode. It uses JTree.getRowCount to determine the current number of rows. Sample usage: You can check, that a tree has exactly 6 visible rows or that the tree has less then 10 visible rows.
|
| [Summary] [qfs.qft] [qfs] |
| Package: 'swt' |
|
Procedures for advanced manipulation of SWT components.
|
| [Summary] [qfs.qft] [qfs] [swt] |
| Package: 'checkbox' |
|
Procedures to set the state of checkboxes.
(SWT component
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Deselect a checkbox .If the checkbox is already de-selected, no action is performed. | |||
| Select a checkbox. | |||
| Set checkbox to the given state. |
| [Summary] [qfs.qft] [qfs] [swt] [checkbox] |
| Procedure: 'deselect' |
|
Deselect a checkbox .If the checkbox is already de-selected, no action is performed.
|
| [Summary] [qfs.qft] [qfs] [swt] [checkbox] |
| Procedure: 'select' |
|
Select a checkbox. If the checkbox is already selected, no action is performed.
|
| [Summary] [qfs.qft] [qfs] [swt] [checkbox] |
| Procedure: 'set' |
|
Set checkbox to the given state.
|
| [Summary] [qfs.qft] [qfs] [swt] |
| Package: 'cleanup' |
|
The procedures in this package are useful for generic cleanup after an exception is thrown. In some cases a menu or modal dialog may have been left open, causing future events for the SUT to be blocked.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Close all modal dialogs. | |||
| Close all menus unconditionally. | |||
| This procedure encompasses the usage of other cleanup procedures in this package and is the recommended operation to perform after an exception occurs and is implicitly caught. |
| [Summary] [qfs.qft] [qfs] [swt] [cleanup] |
| Procedure: 'closeAllDialogsAndModalShells' |
|
Close all modal dialogs.
A modal dialog that is left open will cause events for the SUT to be blocked. Ensuring that modal dialogs are closed is a good operation to conduct in a setup/cleanup sequence.
Closing all instances of
|
| [Summary] [qfs.qft] [qfs] [swt] [cleanup] |
| Procedure: 'closeAllMenus' |
|
Close all menus unconditionally. A menu left open (or even just selected) will cause events for the SUT to be blocked. This procedure is recommened for cleanup after an exception occurs.
|
| [Summary] [qfs.qft] [qfs] [swt] [cleanup] |
| Procedure: 'implicitExceptionHandler' |
|
This procedure encompasses the usage of other cleanup procedures in this package and is the recommended operation to perform after an exception occurs and is implicitly caught. Calling this procedure should be the first step in the cleanup sequence of any Test node with the "Implicitly catch exceptions" attribute set.
|
| [Summary] [qfs.qft] [qfs] [swt] |
| Package: 'colordialog' |
|
Procedures to handle Colordialogs.
(SWT component
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Select a specified color of a ColorDialog. |
| [Summary] [qfs.qft] [qfs] [swt] [colordialog] |
| Procedure: 'selectColor' |
|
Select a specified color of a ColorDialog. The color should be in RGB values, e.g. #FF0000 for red. If no color is specified, it will close the dialog without selection.
|
| [Summary] [qfs.qft] [qfs] [swt] |
| Package: 'combo' |
|
Procedures to handle Comboboxes.
(SWT component
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Return the number of items of a given combo-box. | |||
| Select specified value of a given combobox using a selection event. | |||
| Select specified value of a given combobox using a SUT script. |
| [Summary] [qfs.qft] [qfs] [swt] [combo] |
| Procedure: 'getItemCount' |
|
Return the number of items of a given combo-box. It uses the method getItemCount() to get the number.
|
| [Summary] [qfs.qft] [qfs] [swt] [combo] |
| Procedure: 'setValue' |
|
Select specified value of a given combobox using a selection event. If the given value is empty, no action will take place.
|
| [Summary] [qfs.qft] [qfs] [swt] [combo] |
| Procedure: 'setValueViaSUTScript' |
|
Select specified value of a given combobox using a SUT script.
It used the API-method If the given value is empty, no action will take place.
|
| [Summary] [qfs.qft] [qfs] [swt] |
| Package: 'ctabfolder' |
|
Procedures for SWT CTabFolder widgets.
(SWT component
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| This procedure raises an error, if a given tab is not dirty. | |||
| Close a tab in a generic CTabFolder that is identified only by the fact that it contains the desired tab. | |||
| Open the View Menu for a generic CTabFolder that is identified only by the fact that it contains the desired tab. | |||
| Select a tab in a generic CTabFolder that is identified only by the fact that it contains the desired tab. |
| [Summary] [qfs.qft] [qfs] [swt] [ctabfolder] |
| Procedure: 'checkTabIsDirty' |
|
This procedure raises an error, if a given tab is not dirty. This procedure checks for the standard dirty marker, i.e. a * at the beginning of the tab name.
|
| [Summary] [qfs.qft] [qfs] [swt] [ctabfolder] |
| Procedure: 'closeTab' |
|
Close a tab in a generic CTabFolder that is identified only by the fact that it contains the desired tab. Even the target window is arbitrary.
|
| [Summary] [qfs.qft] [qfs] [swt] [ctabfolder] |
| Procedure: 'openViewMenu' |
|
Open the View Menu for a generic CTabFolder that is identified only by the fact that it contains the desired tab. Even the target window is arbitrary.
|
| [Summary] [qfs.qft] [qfs] [swt] [ctabfolder] |
| Procedure: 'selectTab' |
|
Select a tab in a generic CTabFolder that is identified only by the fact that it contains the desired tab. Even the target window is arbitrary.
|
| [Summary] [qfs.qft] [qfs] [swt] |
| Package: 'directorydialog' |
|
Procedures for accessing directory dialogs.
(SWT component
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Select a directory in a DirectoryDialog dialog. |
| [Summary] [qfs.qft] [qfs] [swt] [directorydialog] |
| Procedure: 'selectDirectory' |
|
Select a directory in a The Directorydialog must already be open (or at least be triggered to open).
|
| [Summary] [qfs.qft] [qfs] [swt] |
| Package: 'filedialog' |
|
Procedures for accessing file dialogs.
(SWT component
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Select a file in a FileDialog dialog. |
| [Summary] [qfs.qft] [qfs] [swt] [filedialog] |
| Procedure: 'selectFile' |
|
Select a file in a The filechooser dialog must already be open (or at least be triggered to open).
|
| [Summary] [qfs.qft] [qfs] [swt] |
| Package: 'general' |
|
Procedures, which work for any SWT component.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Click on a given component, but only if the according parameter is set to true. | |||
| Delete the current association of PrioritySwtComponent. | |||
| Click on a given component. | |||
| Set the location of a given component. | |||
| Set a given component to the PrioritySwtWidget. | |||
| Set the wdith and the height of a given component. |
| [Summary] [qfs.qft] [qfs] [swt] [general] |
| Procedure: 'clickAtComponent' |
|
Click on a given component, but only if the according parameter is set to true.
|
| [Summary] [qfs.qft] [qfs] [swt] [general] |
| Procedure: 'deleteOverrideComponent' |
|
Delete the current association of PrioritySwtComponent.
|
| [Summary] [qfs.qft] [qfs] [swt] [general] |
| Procedure: 'doClick' |
|
Click on a given component.
|
| [Summary] [qfs.qft] [qfs] [swt] [general] |
| Procedure: 'setLocation' |
|
Set the location of a given component. It uses setLocation(x,y) to set the location.
|
| [Summary] [qfs.qft] [qfs] [swt] [general] |
| Procedure: 'setOverrideComponent' |
|
Set a given component to the PrioritySwtWidget.
|
| [Summary] [qfs.qft] [qfs] [swt] [general] |
| Procedure: 'setSize' |
|
Set the wdith and the height of a given component. It uses setSize(width, height) to set the size.
|
| [Summary] [qfs.qft] [qfs] [swt] |
| Package: 'instrument' |
|
Procedures for SWT instrumentation.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Instrument an Eclipse/RCP based or standalone SWT application for use with QF-Test. |
| [Summary] [qfs.qft] [qfs] [swt] [instrument] |
| Procedure: 'setup' |
|
Instrument an Eclipse/RCP based or standalone SWT application for use with QF-Test. Manual chapter 4 describes the effects in detail.
|
| [Summary] [qfs.qft] [qfs] [swt] |
| Package: 'list' |
|
Procedures for accessing lists.
(SWT component
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Return the number of items of a given list. | |||
| Return the text of a given item. | |||
| Select a given item by a mouse-click on it. |
| [Summary] [qfs.qft] [qfs] [swt] [list] |
| Procedure: 'getItemCount' |
|
Return the number of items of a given list. It uses the method list.getItemCount() to get the number.
|
| [Summary] [qfs.qft] [qfs] [swt] [list] |
| Procedure: 'getValueOfItem' |
|
Return the text of a given item. Sample usage: Determine the text of the second item.
|
| [Summary] [qfs.qft] [qfs] [swt] [list] |
| Procedure: 'selectItem' |
|
Select a given item by a mouse-click on it.
|
| [Summary] [qfs.qft] [qfs] [swt] [list] |
| Package: 'checks' |
|
Procedures for checking a list.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Check the number of items of a given list according to a specified comparison mode. |
| [Summary] [qfs.qft] [qfs] [swt] [list] [checks] |
| Procedure: 'checkNumberOfItems' |
|
Check the number of items of a given list according to a specified comparison mode. It uses the method list.getItemCount() to get the number. Sample usage: You can check, that a list has exactly 6 items or that the table has less then 10 items.
|
| [Summary] [qfs.qft] [qfs] [swt] [list] |
| Package: 'selection' |
|
Procedures to (de-)select certain items of a list.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Deselect all items. | |||
| Deselect a given item, specified by its index. | |||
| Deselect a range of items, specified by their index. | |||
| Select all items. | |||
| Select a given item, specified by its index. | |||
| Select a range of items, specified by their index. |
| [Summary] [qfs.qft] [qfs] [swt] [list] [selection] |
| Procedure: 'deselectAllItems' |
|
Deselect all items. It uses
|
| [Summary] [qfs.qft] [qfs] [swt] [list] [selection] |
| Procedure: 'deselectItem' |
|
Deselect a given item, specified by its index. It uses
|
| [Summary] [qfs.qft] [qfs] [swt] [list] [selection] |
| Procedure: 'deselectItemRange' |
|
Deselect a range of items, specified by their index. It uses
|
| [Summary] [qfs.qft] [qfs] [swt] [list] [selection] |
| Procedure: 'selectAllItems' |
|
Select all items. It uses
|
| [Summary] [qfs.qft] [qfs] [swt] [list] [selection] |
| Procedure: 'selectItem' |
|
Select a given item, specified by its index. It uses
|
| [Summary] [qfs.qft] [qfs] [swt] [list] [selection] |
| Procedure: 'selectItemRange' |
|
Select a range of items, specified by their index. It uses
|
| [Summary] [qfs.qft] [qfs] [swt] |
| Package: 'menu' |
|
Procedures to select menu items and checkbox menu items.
(SWT components
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Select an item from a menu. | |||
| Select an item within a submenu. | |||
| Select a checkbox menu item. | |||
| Select a checkbox menu item within within a submenu. |
| [Summary] [qfs.qft] [qfs] [swt] [menu] |
| Procedure: 'selectItem' |
|
Select an item from a menu. For example: for the File -> Open action, the component ID of "File" is the menu, and the ID for "Open" is the item.
|
| [Summary] [qfs.qft] [qfs] [swt] [menu] |
| Procedure: 'selectSubItem' |
|
Select an item within a submenu. For example: for the View -> Terminal -> Show action, the component ID of "View" is the menu, the ID for "Terminal" is the item, and the ID for "Show" is the sub-item to select.
|
| [Summary] [qfs.qft] [qfs] [swt] [menu] |
| Procedure: 'setCheckItem' |
|
Select a checkbox menu item. For example: for the View -> Show Details action, the component ID of "View" is the menu, and the ID for "Show Details" is the checbox item to set (to true or false).
|
| [Summary] [qfs.qft] [qfs] [swt] [menu] |
| Procedure: 'setSubCheckItem' |
|
Select a checkbox menu item within within a submenu. For example: for the View -> Terminal -> Wrap Lines action, the component ID of "View" is the menu, the ID for "Terminal" is the item and the ID for "Wrap Lines" is the checkbox menu item to set (to true or false).
|
| [Summary] [qfs.qft] [qfs] [swt] |
| Package: 'popupmenu' |
|
Procedures to select items and checkbox menu items from popup menus. Note that for all procedures, the popup menu must first be opened by the calling test-suite, as the popup menu is component-dependent. See package "menu" for more details about menus and sub-menus.
(SWT components
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Select an item in a popup menu. | |||
| Select an item within a submenu of a popup menu. | |||
| Select a checkbox menu item in a popup menu. | |||
| Select a checkbox menu item within a submenu of a popup menu. |
| [Summary] [qfs.qft] [qfs] [swt] [popupmenu] |
| Procedure: 'selectItem' |
|
Select an item in a popup menu.
|
| [Summary] [qfs.qft] [qfs] [swt] [popupmenu] |
| Procedure: 'selectSubItem' |
|
Select an item within a submenu of a popup menu.
|
| [Summary] [qfs.qft] [qfs] [swt] [popupmenu] |
| Procedure: 'setCheckItem' |
|
Select a checkbox menu item in a popup menu.
|
| [Summary] [qfs.qft] [qfs] [swt] [popupmenu] |
| Procedure: 'setSubCheckItem' |
|
Select a checkbox menu item within a submenu of a popup menu.
|
| [Summary] [qfs.qft] [qfs] [swt] |
| Package: 'sash' |
|
Procedures to work with sash components.
(SWT component
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Move a sash by a given distance. | |||
| Move a sash to a given position. |
| [Summary] [qfs.qft] [qfs] [swt] [sash] |
| Procedure: 'moveSash' |
|
Move a sash by a given distance.
|
| [Summary] [qfs.qft] [qfs] [swt] [sash] |
| Procedure: 'moveSashTo' |
|
Move a sash to a given position.
|
| [Summary] [qfs.qft] [qfs] [swt] |
| Package: 'scrollbar' |
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Scroll a component one page downwards by simulating a hard mouse click below the scrollbar's thumb. | |||
| Scroll a component one page to the left by simulating a hard mouse click to the left of the scrollbar's thumb. | |||
| Scroll a component one page to the right by simulating a hard mouse click to the right of the scrollbar's thumb. | |||
| Scroll a component one page upwards by simulating a hard mouse click above the scrollbar's thumb. | |||
| Scroll a component downwards by simulating a hard mouse click on the down arrow button of its vertical scrollbar. | |||
| Scroll a component to the left by simulating a hard mouse click on the left arrow button of its horizontal scrollbar. | |||
| Scroll a component to the right by simulating a hard mouse click on the right arrow button of its horizontal scrollbar. | |||
| Scroll a component upwards by simulating a hard mouse click on the up arrow button of its vertical scrollbar. |
| [Summary] [qfs.qft] [qfs] [swt] [scrollbar] |
| Procedure: 'pageDown' |
|
Scroll a component one page downwards by simulating a hard mouse click below the scrollbar's thumb.
|
| [Summary] [qfs.qft] [qfs] [swt] [scrollbar] |
| Procedure: 'pageLeft' |
|
Scroll a component one page to the left by simulating a hard mouse click to the left of the scrollbar's thumb.
|
| [Summary] [qfs.qft] [qfs] [swt] [scrollbar] |
| Procedure: 'pageRight' |
|
Scroll a component one page to the right by simulating a hard mouse click to the right of the scrollbar's thumb.
|
| [Summary] [qfs.qft] [qfs] [swt] [scrollbar] |
| Procedure: 'pageUp' |
|
Scroll a component one page upwards by simulating a hard mouse click above the scrollbar's thumb.
|
| [Summary] [qfs.qft] [qfs] [swt] [scrollbar] |
| Procedure: 'scrollDown' |
|
Scroll a component downwards by simulating a hard mouse click on the down arrow button of its vertical scrollbar.
|
| [Summary] [qfs.qft] [qfs] [swt] [scrollbar] |
| Procedure: 'scrollLeft' |
|
Scroll a component to the left by simulating a hard mouse click on the left arrow button of its horizontal scrollbar.
|
| [Summary] [qfs.qft] [qfs] [swt] [scrollbar] |
| Procedure: 'scrollRight' |
|
Scroll a component to the right by simulating a hard mouse click on the right arrow button of its horizontal scrollbar.
|
| [Summary] [qfs.qft] [qfs] [swt] [scrollbar] |
| Procedure: 'scrollUp' |
|
Scroll a component upwards by simulating a hard mouse click on the up arrow button of its vertical scrollbar.
|
| [Summary] [qfs.qft] [qfs] [swt] |
| Package: 'tabfolder' |
|
Procedures for SWT TabFolder widgets.
(SWT component
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Close a tab via sending a "close" selection event. | |||
| Select a tab in a given Tabfolder. |
| [Summary] [qfs.qft] [qfs] [swt] [tabfolder] |
| Procedure: 'closeTab' |
|
Close a tab via sending a "close" selection event.
|
| [Summary] [qfs.qft] [qfs] [swt] [tabfolder] |
| Procedure: 'selectTab' |
|
Select a tab in a given Tabfolder.
|
| [Summary] [qfs.qft] [qfs] [swt] |
| Package: 'table' |
|
Procedures to access tables.
(SWT component
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Return the number of columns of a given table. | |||
| Return the header text of a given column. | |||
| Return the number of rows of a given table. | |||
| Return the text of a given cell. | |||
| Select a given cell. |
| [Summary] [qfs.qft] [qfs] [swt] [table] |
| Procedure: 'getColumnCount' |
|
Return the number of columns of a given table. It uses the method getColumnCount() do get the number.
|
| [Summary] [qfs.qft] [qfs] [swt] [table] |
| Procedure: 'getNameOfColumn' |
|
Return the header text of a given column. Sample usage: Determine the title of the second colum.
|
| [Summary] [qfs.qft] [qfs] [swt] [table] |
| Procedure: 'getRowCount' |
|
Return the number of rows of a given table. It uses the method Table.getItemCount() to get the number.
|
| [Summary] [qfs.qft] [qfs] [swt] [table] |
| Procedure: 'getValueOfCell' |
|
Return the text of a given cell. Sample usage: Can be used to determine the text of the cell in the first column and first row.
|
| [Summary] [qfs.qft] [qfs] [swt] [table] |
| Procedure: 'selectCell' |
|
Select a given cell.
|
| [Summary] [qfs.qft] [qfs] [swt] [table] |
| Package: 'checks' |
|
Procedures for checking a table.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Check the number of rows of a given table according to a specified comparison mode. |
| [Summary] [qfs.qft] [qfs] [swt] [table] [checks] |
| Procedure: 'checkNumberOfRows' |
|
Check the number of rows of a given table according to a specified comparison mode. It uses the method Table.getItemCount() to get the number. Sample usage: You can check, that a table has exactly 6 rows or that the table has less then 10 rows.
|
| [Summary] [qfs.qft] [qfs] [swt] [table] |
| Package: 'selection' |
|
Procedures to (de-)select certain rows of a table.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Deselect all rows. | |||
| Deselect a given row, specified by its index. | |||
| Deselect a range of rows, specified by their index. | |||
| Select all rows. | |||
| Select a given row, specified by its index. | |||
| Select a range of rows, specified by their index. |
| [Summary] [qfs.qft] [qfs] [swt] [table] [selection] |
| Procedure: 'deselectAllRows' |
|
Deselect all rows. It uses
|
| [Summary] [qfs.qft] [qfs] [swt] [table] [selection] |
| Procedure: 'deselectRow' |
|
Deselect a given row, specified by its index. It uses
|
| [Summary] [qfs.qft] [qfs] [swt] [table] [selection] |
| Procedure: 'deselectRowRange' |
|
Deselect a range of rows, specified by their index. It uses
|
| [Summary] [qfs.qft] [qfs] [swt] [table] [selection] |
| Procedure: 'selectAllRows' |
|
Select all rows. It uses
|
| [Summary] [qfs.qft] [qfs] [swt] [table] [selection] |
| Procedure: 'selectRow' |
|
Select a given row, specified by its index. It uses
|
| [Summary] [qfs.qft] [qfs] [swt] [table] [selection] |
| Procedure: 'selectRowRange' |
|
Select a range of rows, specified by their index. It uses
|
| [Summary] [qfs.qft] [qfs] [swt] |
| Package: 'text' |
|
Procedures to access text fields and text areas. It should work with any SWT components representing textfields or textareas, e.g.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Clear a multi-line text area. | |||
| Clear a simple text field. | |||
| Set a given text to a given text-field or text-area. | |||
| Read the content of a given file and set its content to a given text-field. |
| [Summary] [qfs.qft] [qfs] [swt] [text] |
| Procedure: 'clearArea' |
|
Clear a multi-line text area.
|
| [Summary] [qfs.qft] [qfs] [swt] [text] |
| Procedure: 'clearField' |
|
Clear a simple text field.
|
| [Summary] [qfs.qft] [qfs] [swt] [text] |
| Procedure: 'setText' |
|
Set a given text to a given text-field or text-area. If the text is empty, no action will take place.
|
| [Summary] [qfs.qft] [qfs] [swt] [text] |
| Procedure: 'setTextFromFile' |
|
Read the content of a given file and set its content to a given text-field.
|
| [Summary] [qfs.qft] [qfs] [swt] |
| Package: 'tree' |
|
Procedures to access trees.
(SWT component
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Example for a callback procedure used by expandNodes. | |||
| Collapse a tree node. | |||
| Collapse a tree node. | |||
| Expand a tree node. | |||
| Expand a tree node. | |||
| Expand a tree node recursively. | |||
| Return the number of rows of a given tree. | |||
| Return the text of a given node. | |||
| Select a given node. |
| [Summary] [qfs.qft] [qfs] [swt] [tree] |
| Procedure: 'callbackPrintNodeText' |
|
Example for a callback procedure used by expandNodes.
|
| [Summary] [qfs.qft] [qfs] [swt] [tree] |
| Procedure: 'collapse' |
|
Collapse a tree node.
|
| [Summary] [qfs.qft] [qfs] [swt] [tree] |
| Procedure: 'collapseNode' |
|
Collapse a tree node.
|
| [Summary] [qfs.qft] [qfs] [swt] [tree] |
| Procedure: 'expand' |
|
Expand a tree node.
|
| [Summary] [qfs.qft] [qfs] [swt] [tree] |
| Procedure: 'expandNode' |
|
Expand a tree node.
|
| [Summary] [qfs.qft] [qfs] [swt] [tree] |
| Procedure: 'expandNodes' |
|
Expand a tree node recursively.
|
| [Summary] [qfs.qft] [qfs] [swt] [tree] |
| Procedure: 'getRowCount' |
|
Return the number of rows of a given tree. It uses the method Tree.getItemCount() to get the number.
|
| [Summary] [qfs.qft] [qfs] [swt] [tree] |
| Procedure: 'getValueOfNode' |
|
Return the text of a given node. Sample usage: Determine the text value for a node referenced by index like /0/1.
|
| [Summary] [qfs.qft] [qfs] [swt] [tree] |
| Procedure: 'selectNode' |
|
Select a given node.
|
| [Summary] [qfs.qft] [qfs] [swt] [tree] |
| Package: 'checks' |
|
Procedures for checking a tree.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Check the number of visilble rows of a given tree according to a specified comparison mode. |
| [Summary] [qfs.qft] [qfs] [swt] [tree] [checks] |
| Procedure: 'checkNumberOfRows' |
|
Check the number of visilble rows of a given tree according to a specified comparison mode. It uses Tree.getItemCount() to determine the current number of rows. Sample usage: You can check, that a tree has exactly 6 visible rows or that the tree has less then 10 visible rows.
|
| [Summary] [qfs.qft] [qfs] |
| Package: 'utils' |
|
Miscellaneous utility procedures.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Trigger a full thread dump in the SUT if possible. | |||
| Dump the heap of the Java VM. | |||
| Return a date, default is the current date in current locale. | |||
| Return the time in the current format. | |||
| Return a timestamp, which reprents the current time in milliseconds. | |||
| Kill all running clients. | |||
| Kill a client. | |||
| Log all available methods of a given component. | |||
| Log current memory use. | |||
| Print a given message to STDOUT. | |||
| Print the content of a variable. | |||
| Read the content of a given file. | |||
| ||||
| Write a given message into a given file. |
| [Summary] [qfs.qft] [qfs] [utils] |
| Procedure: 'createThreadDump' |
|
Trigger a full thread dump in the SUT if possible.
|
| [Summary] [qfs.qft] [qfs] [utils] |
| Procedure: 'dumpHeap' |
|
Dump the heap of the Java VM.
|
| [Summary] [qfs.qft] [qfs] [utils] |
| Procedure: 'getDate' |
|
Return a date, default is the current date in current locale.
|
| [Summary] [qfs.qft] [qfs] [utils] |
| Procedure: 'getTime' |
|
Return the time in the current format. Default is now, timestamps in the past or in future can be specified via the offset parameter.
|
| [Summary] [qfs.qft] [qfs] [utils] |
| Procedure: 'getTimestamp' |
|
Return a timestamp, which reprents the current time in milliseconds.
|
| [Summary] [qfs.qft] [qfs] [utils] |
| Procedure: 'killAllClients' |
|
Kill all running clients.
|
| [Summary] [qfs.qft] [qfs] [utils] |
| Procedure: 'killClient' |
|
Kill a client.
|
| [Summary] [qfs.qft] [qfs] [utils] |
| Procedure: 'logAllMethodsOfAGivenComponent' |
|
Log all available methods of a given component. This script can be used to look for dedicated methods of objects. NOTE: If you use custom classloaders, the procedure could fail.
|
| [Summary] [qfs.qft] [qfs] [utils] |
| Procedure: 'logMemory' |
|
Log current memory use.
|
| [Summary] [qfs.qft] [qfs] [utils] |
| Procedure: 'printMessage' |
|
Print a given message to STDOUT.
|
| [Summary] [qfs.qft] [qfs] [utils] |
| Procedure: 'printVariable' |
|
Print the content of a variable.
|
| [Summary] [qfs.qft] [qfs] [utils] |
| Procedure: 'readTextFromFile' |
|
Read the content of a given file.
|
| [Summary] [qfs.qft] [qfs] [utils] |
| Procedure: 'sendEmail' |
|
Deprecated. Use qfs.utils.email.sendEmail or qfs.utils.email.sendEmail_SMTPHost instead.
|
| [Summary] [qfs.qft] [qfs] [utils] |
| Procedure: 'writeMessageIntoFile' |
|
Write a given message into a given file. NOTE: You cannot use special characters like \n or \t in the message.
|
| [Summary] [qfs.qft] [qfs] [utils] |
| Package: 'clipboard' |
|
Accessing the clipboard from procedures.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Return the current text on the system clipboard. |
| [Summary] [qfs.qft] [qfs] [utils] [clipboard] |
| Procedure: 'getTextFromClipboard' |
|
Return the current text on the system clipboard.
|
| [Summary] [qfs.qft] [qfs] [utils] |
| Package: 'email' |
|
Procedures for sending E-Mails.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Send an e-mail. | |||
| Send an e-mail. |
| [Summary] [qfs.qft] [qfs] [utils] [email] |
| Procedure: 'sendEmail' |
|
Send an e-mail. This procedure uses the smtplib module from Jython, which requires a SMTP server on localhost for sending e-mails. It is possible that you have to copy that script and use it as template for your own script, because your mail-server requires a different authentication.
|
| [Summary] [qfs.qft] [qfs] [utils] [email] |
| Procedure: 'sendEmail_SMTPHost' |
|
Send an e-mail. This procedure uses the smtplib module from Jython, which requires a SMTP server for sending e-mails. This procedure performs a login of a given user to a given SMTP server before sending the e-mail. It is possible that you have to copy that script and use it as template for your own script, because your mail-server requires a different authentication.
|
| [Summary] [qfs.qft] [qfs] [utils] [email] |
| Package: 'pop3' |
|
Procedures for interacting with a POP3 server.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Delete all messages from a pop3 account. | |||
| Fetch a message from a pop3 account. |
| [Summary] [qfs.qft] [qfs] [utils] [email] [pop3] |
| Procedure: 'deleteMessages' |
|
Delete all messages from a pop3 account.
|
| [Summary] [qfs.qft] [qfs] [utils] [email] [pop3] |
| Procedure: 'fetchMessage' |
|
Fetch a message from a pop3 account.
|
| [Summary] [qfs.qft] [qfs] [utils] |
| Package: 'files' |
|
Contain procedures to work with files.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Check, whether a given file contain a specific value. | |||
| Check, whether a given file contain a specific value in a line. |
| [Summary] [qfs.qft] [qfs] [utils] [files] |
| Procedure: 'checkFileForContent' |
|
Check, whether a given file contain a specific value. The value has to be a regular expression. It checks the whole text of the file for the value, so you can also specify text containing line breaks, if required.
|
| [Summary] [qfs.qft] [qfs] [utils] [files] |
| Procedure: 'checkFileForExistingLine' |
|
Check, whether a given file contain a specific value in a line. If valueRegex is set to true, it checks for a regular expression. If valueRegex is set to false the text has in a row has to match exactly.
|
| [Summary] [qfs.qft] [qfs] [utils] |
| Package: 'random' |
|
Procedures for generating random string.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Return a random string created of parts of a specified area. | |||
| Return a random number. | |||
| Return a random number between two given numbers. | |||
| Return a random string containing small letters. |
| [Summary] [qfs.qft] [qfs] [utils] [random] |
| Procedure: 'getEntriesOfArea' |
|
Return a random string created of parts of a specified area. The length of the string can also be specified as parameter.
|
| [Summary] [qfs.qft] [qfs] [utils] [random] |
| Procedure: 'getNumber' |
|
Return a random number.
|
| [Summary] [qfs.qft] [qfs] [utils] [random] |
| Procedure: 'getNumberFromRange' |
|
Return a random number between two given numbers. If you call it with lowest 0 and highest 3. The procedure could return 0, 1 or 2.
|
| [Summary] [qfs.qft] [qfs] [utils] [random] |
| Procedure: 'getString' |
|
Return a random string containing small letters.
|
| [Summary] [qfs.qft] [qfs] [utils] |
| Package: 'testrun' |
|
Procedures for handling the test execution.
|
| [Summary] [qfs.qft] [qfs] [utils] [testrun] |
| Package: 'skip' |
|
Procedures for skipping test-steps.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Skip the execution of the current test-case. | |||
| Skip the execution of the current test-set. |
| [Summary] [qfs.qft] [qfs] [utils] [testrun] [skip] |
| Procedure: 'skipTestCase' |
|
Skip the execution of the current test-case.
|
| [Summary] [qfs.qft] [qfs] [utils] [testrun] [skip] |
| Procedure: 'skipTestSet' |
|
Skip the execution of the current test-set.
|
| [Summary] [qfs.qft] [qfs] [utils] [testrun] |
| Package: 'stop' |
|
Procedures for stopping test-steps.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Stop the execution of the current test-case | |||
| Stop the complete test-run. | |||
| Stop the execution of the current test-set. |
| [Summary] [qfs.qft] [qfs] [utils] [testrun] [stop] |
| Procedure: 'stopTestCase' |
|
Stop the execution of the current test-case
|
| [Summary] [qfs.qft] [qfs] [utils] [testrun] [stop] |
| Procedure: 'stopTestRun' |
|
Stop the complete test-run.
|
| [Summary] [qfs.qft] [qfs] [utils] [testrun] [stop] |
| Procedure: 'stopTestSet' |
|
Stop the execution of the current test-set.
|
| [Summary] [qfs.qft] [qfs] [utils] |
| Package: 'variables' |
|
Procedures for working with variables.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Delete all global QF-Test variables. | |||
| Delete a given global QF-Test variable. |
| [Summary] [qfs.qft] [qfs] [utils] [variables] |
| Procedure: 'deleteAllGlobalVariables' |
|
Delete all global QF-Test variables.
|
| [Summary] [qfs.qft] [qfs] [utils] [variables] |
| Procedure: 'deleteOneGlobalVariable' |
|
Delete a given global QF-Test variable.
|
| [Summary] [qfs.qft] [qfs] [utils] |
| Package: 'xml' |
|
Procedures for working with XML files.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Compare two XML files for full identity. |
| [Summary] [qfs.qft] [qfs] [utils] [xml] |
| Procedure: 'compareXMLFiles' |
|
Compare two XML files for full identity. It writes an error for each different tag, if differences were found. The script uses a DOM parser, which could cause memory troubles for huge XML files! If you want to compare the XML structure of two XML files, but you don't want to compare the content of a tag, e.g. '
|
| [Summary] [qfs.qft] [qfs] [web] |
| Package: 'ajax' |
|
AJAX procedures.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Installs a special resolver for given AJAX toolkit to improve recorded component types and hierarchy and therefore achieves improved component recognition. |
| [Summary] [qfs.qft] [qfs] [web] [ajax] |
| Procedure: 'installToolkitResolver' |
|
Installs a special resolver for given AJAX toolkit to improve recorded component types and hierarchy and therefore achieves improved component recognition.
|
| [Summary] [qfs.qft] [qfs] [web] [browser] |
| Package: 'dialogs' |
|
Procedures for handling Error-Dialogs opened within the Browser.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Uses the Java AWT Robot Methods to automatically close an open Certificate Warning Dialog. | |||
| Uses the Java AWT Robot Methods to automatically close an open Javascript Warning Dialog. | |||
| Handle the native Windows Upload dialog (especially for Internet Explorer 8). |
| [Summary] [qfs.qft] [qfs] [web] [browser] [dialogs] |
| Procedure: 'closeCertificateWarning' |
|
Uses the Java AWT Robot Methods to automatically close an open Certificate Warning Dialog.
|
| [Summary] [qfs.qft] [qfs] [web] [browser] [dialogs] |
| Procedure: 'closeJavascriptWarning' |
|
Uses the Java AWT Robot Methods to automatically close an open Javascript Warning Dialog.
|
| [Summary] [qfs.qft] [qfs] [web] [browser] [dialogs] |
| Procedure: 'upload' |
|
Handle the native Windows Upload dialog (especially for Internet Explorer 8).
|
| [Summary] [qfs.qft] [qfs] [web] [browser] |
| Package: 'dom' |
|
Procedures for handling DOM access.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Checks or unchecks all (enabled) Checkboxes which are situated in the DOM-Tree beneath the given Parent. |
| [Summary] [qfs.qft] [qfs] [web] [browser] [dom] |
| Procedure: 'selectAllCheckboxes' |
|
Deprecated. Use qfs.web.checkbox.setAll instead. Checks or unchecks all (enabled) Checkboxes which are situated in the DOM-Tree beneath the given Parent. In most of the cases the parent should be set to the form-Element which contains the checkboxes.
|
| [Summary] [qfs.qft] [qfs] [web] [browser] |
| Package: 'general' |
|
General browser procedures.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Check for the browser and if is not running than start it. | |||
| Checks if running Browser-Engine has embedded Internet Explorer 6. | |||
| Open a new window in an already running browser. | |||
| Show a different URL in an open browser window. | |||
| Ensures the given browser executable is started as a new process. |
| [Summary] [qfs.qft] [qfs] [web] [browser] [general] |
| Procedure: 'checkForRunningBrowserEngine' |
|
Check for the browser and if is not running than start it.
|
| [Summary] [qfs.qft] [qfs] [web] [browser] [general] |
| Procedure: 'isIE6' |
|
Checks if running Browser-Engine has embedded Internet Explorer 6. If true it sets the global variable "isIE6" to true.
|
| [Summary] [qfs.qft] [qfs] [web] [browser] [general] |
| Procedure: 'openNewWindow' |
|
Open a new window in an already running browser.
|
| [Summary] [qfs.qft] [qfs] [web] [browser] [general] |
| Procedure: 'showUrl' |
|
Show a different URL in an open browser window.
|
| [Summary] [qfs.qft] [qfs] [web] [browser] [general] |
| Procedure: 'startAsNewProcess' |
|
Ensures the given browser executable is started as a new process. This is especially important when testing an applet in the browser. Otherwise the applet is not properly recognized by QF-Test. In case there are already running instances of the given browser type, those may need to be terminated. In interactive mode a dialog asks for permission to do so, in batch mode it's simply done.
|
| [Summary] [qfs.qft] [qfs] [web] [browser] |
| Package: 'mozilla' |
|
Mozilla utility procedures.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Check whether a Mozilla home directory contains the necessary GRE (Gecko Runtime Environment) files to allow testing. |
| [Summary] [qfs.qft] [qfs] [web] [browser] [mozilla] |
| Procedure: 'checkGRE' |
|
Check whether a Mozilla home directory contains the necessary GRE (Gecko Runtime Environment) files to allow testing. SeaMonkey browsers < version 1.1 used has GRE located under common files which requires manual copying into the browser installation directory.
|
| [Summary] [qfs.qft] [qfs] [web] [browser] |
| Package: 'settings' |
|
The procedures in this package are useful for customizing browser settings.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Delete cookies. | |||
| Disable cookies in the browser. | |||
| Do startup settings for the browser. | |||
| Empty the browser cache. | |||
| Sets the Compatibility-Mode in Internet Explorer. | |||
| Enable cookies in the browser. | |||
| Enable/Disables the MutationListeners in the QF-Test browser engine for a specific document or globally for all documents. | |||
| Set preferred language for in the displaying web pages in the browser. | |||
| Set a proxy server for the browser. |
| [Summary] [qfs.qft] [qfs] [web] [browser] [settings] |
| Procedure: 'deleteCookies' |
|
Delete cookies.
|
| [Summary] [qfs.qft] [qfs] [web] [browser] [settings] |
| Procedure: 'disableCookies' |
|
Disable cookies in the browser.
|
| [Summary] [qfs.qft] [qfs] [web] [browser] [settings] |
| Procedure: 'doStartupSettings' |
|
Do startup settings for the browser. This procedure is used by the Quickstart Wizard.
|
| [Summary] [qfs.qft] [qfs] [web] [browser] [settings] |
| Procedure: 'emptyCache' |
|
Empty the browser cache.
|
| [Summary] [qfs.qft] [qfs] [web] [browser] [settings] |
| Procedure: 'enableCompatibilityMode' |
|
Sets the Compatibility-Mode in Internet Explorer. (This procedure is only working at browser startup)
|
| [Summary] [qfs.qft] [qfs] [web] [browser] [settings] |
| Procedure: 'enableCookies' |
|
Enable cookies in the browser.
|
| [Summary] [qfs.qft] [qfs] [web] [browser] [settings] |
| Procedure: 'enableMutationListeners' |
|
Enable/Disables the MutationListeners in the QF-Test browser engine for a specific document or globally for all documents.
|
| [Summary] [qfs.qft] [qfs] [web] [browser] [settings] |
| Procedure: 'setLocale' |
|
Set preferred language for in the displaying web pages in the browser.
|
| [Summary] [qfs.qft] [qfs] [web] [browser] [settings] |
| Procedure: 'setProxy' |
|
Set a proxy server for the browser.
|
| [Summary] [qfs.qft] [qfs] [web] |
| Package: 'checkbox' |
|
Procedures to set the state of checkboxes.
(Web component
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Deselect a checkbox. | |||
| Select a checkbox. | |||
| Set checkbox to the given state. | |||
| Set all (enabled) checkboxes inside a given parent. |
| [Summary] [qfs.qft] [qfs] [web] [checkbox] |
| Procedure: 'deselect' |
|
Deselect a checkbox. If the checkbox is already de-selected, no action is performed.
|
| [Summary] [qfs.qft] [qfs] [web] [checkbox] |
| Procedure: 'select' |
|
Select a checkbox. If the checkbox is already selected, no action is performed.
|
| [Summary] [qfs.qft] [qfs] [web] [checkbox] |
| Procedure: 'set' |
|
Set checkbox to the given state.
|
| [Summary] [qfs.qft] [qfs] [web] [checkbox] |
| Procedure: 'setAll' |
|
Set all (enabled) checkboxes inside a given parent. In most of the cases the parent should be set to the form-Element which contains the checkboxes.
|
| [Summary] [qfs.qft] [qfs] [web] |
| Package: 'checks' |
|
Procedures for handling different web checks.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Checks an attribute of a component. | |||
| Negates a normal Elementcheck in select elements to allow NegationChecks. | |||
| Checks if the given element (option-element-text) is in the select-element (combo-box). | |||
| Negates a normal WaitForComponentCheck to allow VisibilityChecks. | |||
| Negates a normal Textcheck to allow NegationChecks. | |||
| Checks the title of the BrowserWindow. |
| [Summary] [qfs.qft] [qfs] [web] [checks] |
| Procedure: 'checkAttribute' |
|
Checks an attribute of a component. It writes an error into the run-log, if the check fails.
|
| [Summary] [qfs.qft] [qfs] [web] [checks] |
| Procedure: 'checkElements(negative)' |
|
Negates a normal Elementcheck in select elements to allow NegationChecks. It writes an error into the run-log, if the check fails.
|
| [Summary] [qfs.qft] [qfs] [web] [checks] |
| Procedure: 'checkForElement' |
|
Checks if the given element (option-element-text) is in the select-element (combo-box). It writes an error into the run-log, if the element is not found.
|
| [Summary] [qfs.qft] [qfs] [web] [checks] |
| Procedure: 'checkInvisibility' |
|
Negates a normal WaitForComponentCheck to allow VisibilityChecks. It writes an error into the run-log, if the check fails.
|
| [Summary] [qfs.qft] [qfs] [web] [checks] |
| Procedure: 'checkText(negative)' |
|
Negates a normal Textcheck to allow NegationChecks. It writes an error into the run-log, if the check fails.
|
| [Summary] [qfs.qft] [qfs] [web] [checks] |
| Procedure: 'checkTitle' |
|
Checks the title of the BrowserWindow. It writes an error into the run-log, if the check fails.
|
| [Summary] [qfs.qft] [qfs] [web] |
| Package: 'general' |
|
Procedures, which work for any Web component.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Click on a given component, but only if the according parameter is set to true. | |||
| Delete the current association of PriorityWebComponent. | |||
| Click on a given component. | |||
| Set a given component to the PriorityWebComponent. |
| [Summary] [qfs.qft] [qfs] [web] [general] |
| Procedure: 'clickAtComponent' |
|
Click on a given component, but only if the according parameter is set to true.
|
| [Summary] [qfs.qft] [qfs] [web] [general] |
| Procedure: 'deleteOverrideComponent' |
|
Delete the current association of PriorityWebComponent.
|
| [Summary] [qfs.qft] [qfs] [web] [general] |
| Procedure: 'doClick' |
|
Click on a given component.
|
| [Summary] [qfs.qft] [qfs] [web] [general] |
| Procedure: 'setOverrideComponent' |
|
Set a given component to the PriorityWebComponent.
|
| [Summary] [qfs.qft] [qfs] [web] |
| Package: 'input' |
|
Procedures to access INPUT elements.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Set the value of the INPUT:FILE node by whatever means that are applicable for the browser. |
| [Summary] [qfs.qft] [qfs] [web] [input] |
| Procedure: 'fileUpload' |
|
Set the value of the INPUT:FILE node by whatever means that are applicable for the browser.
|
| [Summary] [qfs.qft] [qfs] [web] |
| Package: 'text' |
|
Procedures to access text fields and text areas. It should work with any INPUT:TEXT elements.
|
| Procedure/Dependency | Description | |||
|---|---|---|---|---|
| Clear a multi-line text area. | |||
| Clear a simple text field. | |||
| Set a given text to a given text-field or text-area. | |||
| Read the content of a given file and set its content to a given text-field. |
| [Summary] [qfs.qft] [qfs] [web] [text] |
| Procedure: 'clearArea' |
|
Clear a multi-line text area.
|
| [Summary] [qfs.qft] [qfs] [web] [text] |
| Procedure: 'clearField' |
|
Clear a simple text field.
|
| [Summary] [qfs.qft] [qfs] [web] [text] |
| Procedure: 'setText' |
|
Set a given text to a given text-field or text-area. If the text is empty, no action will take place.
|
| [Summary] [qfs.qft] [qfs] [web] [text] |
| Procedure: 'setTextFromFile' |
|
Read the content of a given file and set its content to a given text-field.
|
|
Created: 2012-04-23 14:38:53
|