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
Difference between revisions of "STOPWATCH"
(→See Also: added link to iimGetStopWatch) |
|||
Line 55: | Line 55: | ||
=== See Also === | === See Also === | ||
− | [[!FILESTOPWATCH]], [[!STOPWATCHTIME]], [[REFRESH]], [[CLEAR]], [[Demo-Stopwatch]], [[Get-Response-Times.vbs]] | + | [[!FILESTOPWATCH]], [[!STOPWATCHTIME]], [[REFRESH]], [[CLEAR]], [[Demo-Stopwatch]], [[Get-Response-Times.vbs]], [[iimGetStopwatch]] |
Revision as of 06:06, 23 October 2012
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
Note that you need a matching pair, as this command returns the difference between two STOPWATCH commands.
Since V6.85+ you can also get the absolute time since macro start with
STOPWATCH LABEL=id
Since STOPWATCH label returns the time since macro start, only one command per measurement is required.
Note: iMacros for Firefox V6.6.5 and later already contains the new iMacros V7 style stopwatch format. Please see this discussion for details and to give feedback.
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, iimGetStopwatch