Calling a Script from a Functional Tester Script

While recording or editing a Functional Tester 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.

To call a script from a Functional Tester script:

  1. If recording, click the Insert Script Support Commands button nsert Script Support Commands on the Recording Monitor toolbar.

If editing:

    1. Position the pointer in the script where you want to place the callScript command.

    2. Click the Insert Recording into Active Functional Tester Script button Insert Recording into Active Functional Tester Script on the Functional Tester toolbar.

    3. Click the Insert Script Support Commands button Insert Script Support Commands on the Recording Monitor toolbar.

  1. Click the Call Script tab in the Script Support Functions dialog box.

  1. In the Script Name field, select from the list the name of the script you want to call or enter the name.

  2. In the Datapool Iterator Count field, do one of the following:

  1. Click Insert Code.

Functional Tester inserts the callScript("scriptname") code at the cursor location, where scriptname is the name you selected in the Script Name field.

  1. Click Close to remove the Script Support Functions dialog box from the screen.

Note: In Functional Tester, Java Scripting, you can also insert one or more callScript commands from the Functional Tester Projects view. In Functional Tester, VB.NET Scripting, you can also insert one or more callScript commands from the Solution Explorer.

Related Topic:

Starting a Script from within a Script

Terms of use | Feedback
(C) Copyright IBM Corporation 2002, 2004. All Rights Reserved.