|
eValid -- Automated Web Quality Solution
Browser-Based, Client-Side, Functional Testing & Validation,
Load & Performance Tuning, Page Timing, Website Analysis,
and Rich Internet Application Monitoring.
© Copyright 2000-2008 by Software Research, Inc.
|
|
eValid -- SaveRecord Command
eValid Home
Summary
This command is intended for use in situations where eValid is monitoring
a complex transaction and where the need is to have a simplified record
of timing data.
Command Description
| Monitoring SaveRecord Command |
| KEY |
COMMAND SYNTAX: Name(...) |
ORIGIN |
EXPLANATION |
COMMENTS |
| PROF |
SaveRecord File "Formatted String" [OVERWRITE] |
Edit |
Writes information to the named file based on the
contents of the "Formatted String".
If the optional tag OVERWRITE is present,
the named file is deleted (if it exists) and
THIS is the first record in the new file.
| |
Meaning of Parameters in Formatted String
- %E = Elapsed cumlative time of the current playback.
- %e = Elapsed cumlative time since the last instance of a SaveRecord command.
- %K = Total number of bytes downloaded so far in the current playback.
- %k = Total number of bytes downloaded since the last instance of a SaveRecord command.
- /t = Escaped symbol implying a tab character.
- All of the C runtime function strftime's formatting codes (see complete list below),
including for example:
- %T = The current date/time in the format: YYYY/MM/DD HH:MM:SS.
- %I = The current time in 12-hour format.
- %Z = The current time zone abbreviation code (e.g. PDT).
|
Example Standard File
Here is how a typical SaveRecord file would appear when a test is run with multiple instances
of SaveRecord commands.
| Contents of Script File
|
...
SaveRecord "c:\\file.log" "%T\tLogin\t%E\t%e\tStartup of shopping activity." OVERWRITE
SaveRecord "c:\\file.log" "%T\tShopping\t%E\t%e\tGo ahead and shop."
SaveRecord "c:\\file.log" "%T\tPick\t%E\t%e\tPick an item for the cart."
SaveRecord "c:\\file.log" "%T\tCheckout\t%E\t%e\tCheckout process has concluded."
...
|
| Contents of "File" produced during playback... |
2007/09/26 13:25:34 Login 241 0 Startup of shopping activity.
2007/09/26 13:26:45 Shopping 2436 1800 Go ahead and shop.
2007/09/26 13:27:56 Pick 3150 1222 Pick an item for the cart.
2007/09/26 13:32:39 Checkout 8192 2200 Checkout process has concluded.
...
|
Notes:
- The sample output above could also be done with TimeStamp commands.
- The order and presentation of data in the named file is under user control.
- Conversions of %E, %e, %B, and %b have precedence over the corresponding
standard strftime codes.
Example XML-Style Format
Here is how you would use SaveRecord to create an XML-style output:
SaveRecord "c:\file.xml" "<RECORD tag='Login' time1='%E' time2='%e' timestamp='%T'/>"
Complete List of Available Time Variables
Here is the complete list of available symbols:
- %a is replaced by the locale's abbreviated weekday name.
- %A is replaced by the locale's full weekday name.
- %b is replaced by the locale's abbreviated month name.
- %B is replaced by the locale's full month name.
- %c is replaced by the locale's appropriate date and time representation.
- %C is replaced by the century number (the year divided by 100
and truncated to an integer) as a decimal number [00-99].
- %d is replaced by the day of the month as a decimal number [01,31].
- %D same as %m/%d/%y.
- %h same as %b.
- %H is replaced by the hour (24-hour clock) as a decimal number [00,23].
- %I is replaced by the hour (12-hour clock) as a decimal number [01,12].
- %j is replaced by the day of the year as a decimal number [001,366].
- %m is replaced by the month as a decimal number [01,12].
- %M is replaced by the minute as a decimal number [00,59].
- %n is replaced by a newline character.
- %p is replaced by the locale's equivalent of either a.m. or p.m.
- %r is replaced by the time in a.m. and p.m. notation; in the POSIX
locale this is equivalent to %I:%M: %S %p.
- %R is replaced by the time in 24 hour notation (%H: %M).
- %S is replaced by the second as a decimal number [00,61].
- %t is replaced by a tab character.
- %T is replaced by the time ( %H:%M:%S).
- %u is replaced by the weekday as a decimal number [1,7],
with 1 representing Monday.
- %U is replaced by the week number of the year (Sunday
as the first day of the week) as a decimal number [00,53].
- %V is replaced by the week number of the year
(Monday as the first day of the week) as a decimal number [01,53].
If the week containing 1 January has four or more days in the new year,
then it is considered week 1.
Otherwise, it is the last week of the previous year,
and the next week is week 1.
- %w is replaced by the weekday as a decimal number [0,6],
with 0 representing Sunday.
- %W is replaced by the week number of the year
(Monday as the first day of the week)
as a decimal number [00,53].
All days in a new year preceding the first Monday are considered to be in week 0.
- %x is replaced by the locale's appropriate date representation.
- %X is replaced by the locale's appropriate time representation.
- %y is replaced by the year without century as a decimal number [00,99].
- %Y is replaced by the year with century as a decimal number.
- %Z is replaced by the timezone name or abbreviation,
or by no bytes if no timezone information exists.
- %% is replaced by %.