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.
- Timers can span multiple scripts. In this case, you define the start point in one script, define the stop point in another, and use these scripts together in a JST.
- Any timers for which you have not specified a stop point are not valid timers and will not show up in the results log.
- Timers display results in seconds. A time less than one second appears as
-1
in the log file.
To add a timer to your test:
- 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
- Type a descriptive name for the timer in the Timer name field.
- To set the start point, click Start.
JavaStar inserts a line of code into your script to start the timer.
- Click Continue to resume recording.
- 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.
- 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.
- 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.