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.

To insert a log message into a functional test script:


Procedure

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

    If editing:

    • Position the pointer in the script where you want the log message.

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

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

  2. Click the Log Entry tab in the Script Support Functions dialog box.

  3. In the Message to write to the log field, enter the message text.

  4. In the Result section, select either Information, Warning, or Error.

  5. Click Insert Code.

    Functional Tester inserts code in the script based on the option you selected in the Result section, where message is the text you entered:

    logInfo(" message")

    logWarning(" message")

    logError(" message")

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

Related tasks

Calling a script from a functional test script

Use timers with functional test scripts

Setting delays and sleep states for functional test script playback

Insert comments into a functional test script

Insert clipboard commands into a functional test script

+

Search Tips   |   Advanced Search