End Timer Command

Description:

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

Format:

End Timer timerName;
End Timer timerName Complete complete_period;

Parameters:

timerName

A character string expression defining the timer name.

complete_period

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

Example:

integer iTestPageValue;
integer iMyTimerValue;
String MyTimerNameVar;

MyTimerNameVar= "My Timer is a variable";

Start Timer MyTimerNameVar;
    Start Timer "TestPage";
        NAVIGATE "http://localhost/test.html";
    End Timer "TestPage" Complete 2000;
End Timer MyTimerNameVar;

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