Overview | File | Class | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## Class TestCaseRunner

    Object
       |
       +--TestCaseRunner

class TestCaseRunner

Class implementing a test case harness
Defined in TestRunner.js

Field Summary
`Object` | `selected`
`Object` | `testCase`
`Object` | `testGroupRunner`
`Object` | `xml`

Constructor Summary
`TestCaseRunner(testGroupRunner, testCase)` Construct a TestCaseRunner object

Method Summary
`void` | `actionListener(<Object> source, <String> actionName)` Event listener for context menu
`void` | `addLog(<String> log)` Add a log entry to the test case node
`void` | `clearResult()` Clear result of test
`void` | `enable(<Boolean> state)` Enable or disable test
`Object` | `getLog()`
`Object` | `getXML()` Return describing XML element
`void` | `hasFailed(<String> log)` Listener for failed notifications
`void` | `hasPassed(<String> log)` Listener for passed notifications
`boolean` | `isEnabled()` Tell test runner if case is enabled
`void` | `run()` Run this test case

Field Detail

### selected

    Object selected

### testCase

    Object testCase

### testGroupRunner

    Object testGroupRunner

### xml

    Object xml

Constructor Detail

### TestCaseRunner

    TestCaseRunner(testGroupRunner, testCase)

Construct a TestCaseRunner object

Parameters:

`the` - parent test group runner

`the` - test case name

Method Detail

### actionListener

    void actionListener(<Object> source, <String> actionName)

Event listener for context menu

Parameters:

`source` - the outline node for which the action was invoked

`actionName` - the name of the action selected

### addLog

    void addLog(<String> log)

Add a log entry to the test case node

Parameters:

`log` - the test log

### clearResult

    void clearResult()

Clear result of test

### enable

    void enable(<Boolean> state)

Enable or disable test

Parameters:

`state` - true for enabled

### getLog

    Object getLog()

### getXML

    Object getXML()

Return describing XML element

Returns:

the XML element for this test case

### hasFailed

    void hasFailed(<String> log)

Listener for failed notifications

Parameters:

`log` - the test log

### hasPassed

    void hasPassed(<String> log)

Listener for passed notifications

Parameters:

`log` - the test log

### isEnabled

    boolean isEnabled()

Tell test runner if case is enabled

Returns:

true if enabled

### run

    void run()

Run this test case

Overview | File | Class | Tree | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Documentation generated by JSDoc on Thu Jun 25 17:01:35 2026