Skip to content

Scripting API / inspection/tests/TestListener

inspection/tests/TestListener

Modules

Module Description
External -

Classes

TestListener

Extends

Methods

addEventListener()

addEventListener(eventType, handler): ScriptEventSubscription

Binds the given function to an event fired by one or more sub-inspections. Returns a GUID that can be used to remove the added event

Parameters
Parameter Type Description
eventType TestEventType Type of event to bind to (e.g. 'afterStart'). Valid types are determined by the EventType generic.
handler EventHandler<TestEventOptions> -
Returns

ScriptEventSubscription

Inherited from

GSEventListener.addEventListener

Type Aliases

TestEventOptions

TestEventOptions = object

Properties

Property Type
scriptId? string
subInspectionId? string
testType? InspectionTest