Using the API to edit functional test scripts
These advanced topics provide information for testers who want to make changes to Functional Test scripts. As a general rule, your modifications should emulate as closely as possible the desired user interaction with the application-under-test.
You can start by making some of these simple modifications to recorded Functional Test scripts:
- Change a user action, such as
Object().Drag() to Object().Click()
. - Delete recorded commands.
- Place an often repeated sequence of actions into a method.
- Writing messages to the log
- Modifying options for script execution
- Starting a Functional Test script from within a script
- Querying values of object properties
- Unregistering references to test objects
- Handling ambiguous recognition
- Adding manual and dynamic verification points
- Handling unexpected active Windows
- Determining the values of cells in a table
- Reading the Windows registry with Rational Functional Tester
- Iterating through items in a tree control using the GetTestData method
- Iterating through table cells using the GetTestData method
- Passing parameters to the CallScript method
- Extracting data from a ComboBox/List control
- Searching for test objects
- Searching for SAP TestObjects
- Using dynamic find() when recording in a Notepad or Windows application