End Page Timer Command

Description:

This command switches off the named stopwatch page timer and writes an "end page timer" record in the statistics log, even if the page timer is already switched off.
A stopwatch timer is switched on by the START PAGE TIMER command.

Format:

End Page Timer pageTimerName;
End Page Timer pageTimerName Complete complete_period;

Parameters:

pageTimerName

A string literal defining the page timer name.

complete_period

An integer expression defining the minimum number of milliseconds the Script must be suspended.

Example:

integer iTestPageValue;
integer iMyTimerValue;

Start Page Timer "MyTimer";
Start Page Timer "TestPage";
HTTP GET HOST "localhost" URL "/test.html";
End Page Timer "TestPage" Complete 2000;
End Page Timer "MyTimer";

Load Timer "TestPage" into iTestPageValue;
Load Timer "MyTimer" into iMyTimerValue;
log "Time to load test.html = " + ToString(iTestPageValue) + " ms";
log "MyTimer duration = " + ToString(iMyTimerValue) + " ms";

Output:

Time to load test.html = 160 ms
MyTimer duration = 2000 ms





Go back to the Learning center:


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