Recording Scripts: Inserting Timers


You can insert timers into your test that start and stop as you specify. When you run the test, the time values for each timer is written into the results log file.

To add a timer to your test:

  1. While in record mode, click the Timers button when you reach a point in your test where you want to begin a timer.
    This pauses recording and opens the timer screen in the right side of the Record/Playback window.

    Timer screen

  2. Type a descriptive name for the timer in the Timer name field.

  3. To set the start point, click Start.
    JavaStar inserts a line of code into your script to start the timer.

  4. Click Continue to resume recording.

  5. If you want to stop the timer in this script, click the Timers button when you reach a point in your test where you want to insert the timer stop point.
    Record mode pauses and the timers screen opens again.

  6. Double-click on the name of the timer you want to terminate and click Stop.
    Make sure that the timer name shows up in the Timer Name field--it won't if you single-click. Alternatively, you can type the name of the timer. Once you click Stop, JavaStar inserts the timer stop command into your script, and the timer is removed from the list of Existing Timers.

  7. Click Continue to resume record mode.



Send feedback to JavaStar-feedback@suntest.com
Copyright © 1998 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, CA 94303. All rights reserved.