The renewal maintenance has officially ended for Progress iMacros effective November 30, 2023.
This Wiki site will also no longer be moderated from the Progress side.
Thank you again for your business and support.
Sincerely, The Progress Team
STOPWATCH
Measures the time in seconds between two STOPWATCH commands with the same identifier.
This command can be used for website response time measurement. Using different IDs in one macro different processes can be timed separately from each other. By default the measured data is stored in the download directory of iMacros. You can change the file location with the !FILESTOPWATCH variable. (PRO and SCRIPTING Editions only).
Syntax
STOPWATCH ID=id
Parameters
- ID
- Specifies an unique identifier for a timing measurement. Up to 100 different identifiers can be used.
Examples
The following screenshots are taken from our web testing workshop slides:
Example macro:
VERSION BUILD=6220323 SET !FILESTOPWATCH mydata.csv STOPWATCH ID=total URL GOTO=http://www.iopus.com/iim/ STOPWATCH ID=1 TAG POS=1 TYPE=A ATTR=HREF:http://www.iopus.com/iim/compare STOPWATCH ID=1 STOPWATCH ID=store TAG POS=1 TYPE=A ATTR=TXT:US$<SP>149 TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:order ATTR=NAME:ORDER_PRODUCT_NOW&&VALUE:Order<SP>Now TAG POS=1 TYPE=A ATTR=HREF:http://www.iopus.com/store STOPWATCH ID=store STOPWATCH ID=total
The file "mydata.csv" contains the measurement data. By default the data is saved to the Downloads\ directory of your iMacros installation. The values are comma separated (CSV format) so they can be viewed with any text editor or imported directly in Excel or any other software you use to view your data.
Example file Format: Date, Time, Macro name, ID, time (s)
"2008/08/3","11:56:23","mymacro","1","1.272" "2008/08/3","11:56:32","mymacro","store","8.943" "2008/08/3","11:56:32","mymacro","total","10.21"
See Also
!FILESTOPWATCH, !STOPWATCHTIME, REFRESH, CLEAR, Demo-Stopwatch, Get-Response-Times.vbs