Start Page Timer Command

Description:

This command switches on the named stopwatch page timer. Page timers are used to collect statistics about pages. Some "Start Page Timer" statements are automatically added to the script during the capture just before the PRIMARY HTTP requests. "End Page Timer" statements are also added just after the last secondary HTTP requests associated to each PRIMARY HTTP request.
A stopwatch timer is switched off by the END PAGE TIMER command.

Format:

Start Page Timer pageTimerName;
    statements
End Page Timer pageTimerName;

Parameters:

pageTimerName

A string literal defining the page timer name.

Example:

integer iTimerValue;

Start Page Timer "MyTimer";

HTTP GET HOST "localhost" URL "/test.html";

End Page Timer "MyTimer";

Load Timer "MyTimer" into iTimerValue;
log "Time to load test.html = " + ToString(iTimerValue) + " ms";

Output:

Time to load test.html = 160 ms





Go back to the Learning center:


Copyright © AgileLoad. All rights reserved.
Agile Load testing tool| Contact AgileLoad | Terms of Use | Sitemap