Use script services
The Script Support Functions dialog box contains tabs that enable you to insert code into the current Functional Tester script to perform a variety of tasks, such as inserting a callScript command, a log message. a timer, a sleep command, or a comment into a Functional Tester script.
The Script Support Functions dialog box has the following tabs:
- Call Script -- Use to insert a statement to call another test script.
- Log Entry -- Use to insert a log message into the test script. During playback, this information is displayed in the log.
- Timer -- Use to insert a timer into the current script and to stop the timer. Timers remain running until you stop them explicitly or exit Functional Tester.
- Sleep -- Use to insert a sleep command into your Functional Tester script to delay the script.
- Comment -- Use to insert a comment into a Functional Tester script.
- Clipboard -- Use to insert a system clipboard commands into a Functional Tester script.
To open: If recording, click the Insert Script Support Commands button on the Recording Monitor toolbar. If editing, click the Insert Recording into Active Functional Tester Script button on the Functional Tester toolbar and click the Insert Script Support Commands button on the Recording Monitor toolbar.
- Calling a script from a functional test script
While recording or editing a functional test script, you can insert a call to a previously recorded script. This lets you avoid repeatedly recording similar actions on the application-under-test by taking advantage of scripts that already exist.- Insert a log message into a functional test script
You can insert a log message into a functional test script and indicate whether it is a message, a warning, or an error. During playback, Functional Tester inserts this information into the log.- Use timers with functional test scripts
You can insert any number of timers with different names into the same script to measure the time it takes to perform a variety of separate tasks. You can nest timers within other timers (starting and stopping the second timer before stopping the first timer), and you can overlap timers (stopping the second timer after stopping the first timer).- Setting delays and sleep states for functional test script playback
You can insert a sleep command into your functional test script to delay the script for the amount of time you specify.- Insert comments into a functional test script
During recording or editing, you can insert lines of comment text into a Functional Tester script. Comments are helpful for documenting and editing scripts.- Insert clipboard commands into a functional test script
During recording or editing, you can insert system clipboard commands into a functional test script. You can also insert into a functional test script a verification point test command against the active content in the system clipboard.- Call Script tab: Script Support Functions dialog box
You use the Call Script tab to insert a callScript command into your Functional Tester script.- Comment tab: Script Support Functions dialog box
You use the Comment tab to insert a comment into a Functional Tester script.- Log Entry tab: Script Support Functions dialog box
You use the Log Entry tab to insert a log message into a Functional Tester script and indicate whether it is a message, warning, or an error. During playback, Functional Tester inserts this information into the log.- Sleep tab: Script Support Functions dialog box
You use the Sleep tab to insert a sleep command into your Functional Tester script to delay the script the length of time you specify.- Timer tab: Script Support Functions dialog box
You use the Timer tab to insert a timer into the current script and to stop the timer. Timers remain running until you stop them explicitly or exit Functional Test.