End Conditions
setABM
Sets the "Activity Based Measurement" mode. The valid values are:
0 - Disabled (Web 1.0 - Measure based off of document complete)
1 - Enabled (Web 2.0 - Measure until activity stops)
The default if not specified in the script is 1 (Enabled).
Browser Support: IE, Chrome, Firefox
usage: setABM <mode>
example: setABM 0
<mode> - ABM mode to use
setActivityTimeout
Overrides the timeout value for the time after the last network activity before a test is considered complete (defaults to 2000 which is 2 seconds).
Browser Support: IE, Chrome, Firefox, Safari
usage: setActivityTimeout <timeout in milliseconds>
example: setActivityTimeout 5000
<timeout in milliseconds> - Number of milliseconds after the last network activity (after onload) before calling a test done.
setTimeout
Overrides the timeout value for the individual script steps.
Browser Support: IE, Chrome, Firefox, Safari
usage: setTimeout <timeout in seconds>
example: setTimeout 240
<timeout in seconds> - Number of seconds to allow for the navigation/step to complete.
waitFor
Poll the page waiting for the supplied script to evaluate to true. Must be set before the navigation step that is to be measured and persists until cleared (by providing an empty script).
usage: waitFor <JavaScript snippet>
example: waitFor document.getElementById('results-with-statistics') && document.getElementById('results-with-statistics').innerText.length > 0
<JavaScript snippet> - Code to evaluate periodically to test for complete. Should evaluate to true when the step is to stop.
waitInterval
Set the polling interval (in seconds) for the waitFor command. Defaults to a 5-second polling interval to minimize overhead.
usage: waitInterval <interval in seconds>
example: waitInterval 1.5
<interval in seconds> - Polling interval (in seconds). Supports sub-second values as a float.
Updated about 1 month ago