oTest.$opentestsuite()

Function group Execute on client Platform(s)
oTest NO All

Syntax

oTest.$opentestsuite([rSelection, bRun=kFalse])

Description

Opens the Test Suites window with rSelection ticked, or brings it to the front with that selection, and runs it when bRun is kTrue. Returns kTrue if the window is open.

$opentestsuite() opens the Test Suites window with the test classes in a selection ticked. If the Test Suites window is already open, it is brought to the front with the new selection instead, since there is only ever one Test Suites window. It returns kTrue if the window is open.

The parameters are as follows:

Parameter Description
rSelection Optional. The test classes to tick, as a row returned by oTest.$newselection(). If omitted or empty, every test class is ticked.
bRun Optional. kTrue to run the ticked classes as soon as the window has shown them. The default is kFalse.

The selection is only a starting point: the user can change the ticks, choose tags and run the classes in the window as usual.

If the window is already running tests, it is brought to the front but keeps the selection it is running, and no new run is started. If another test run is already in progress, for example one started with oTest.$runsuite(), a run requested with bRun is refused and the reason is shown in the window, since only one test run can be in progress at a time.

For example, to open the Test Suites window on the Billing folder of myLib, without its subfolders, and run it:

Do oTest.$opentestsuite(oTest.$newselection("","myLib.Billing",kFalse),kTrue)