oTest.$isrunning()
| Function group | Execute on client | Platform(s) |
|---|---|---|
| oTest | NO | All |
Syntax
oTest.$isrunning() – no params
Description
Returns kTrue while tests are running. Only one run can be in progress at a time.
$isrunning() returns kTrue while a test run is in progress, and kFalse otherwise. It covers every way of running tests: the test class editor, the Test Suites window, oTest.$runsuite(), oTest.$runtestcase() and the MCP server's execute_test tool.
Only one test run can be in progress at a time, so check $isrunning() before starting a run if you would rather not handle the error a refused run returns. Inside a test, $isrunning() returns kTrue, because the run executing the test is in progress.