Class ThreadLifeCycleListener

The Lifecycle listener used to send data from the tests threads to the main thread

class ThreadLifeCycleListener
  : LifeCycleListeners ;

Fields

NameTypeDescription
instance LifeCycleListenersThe global instange.

Properties

NameTypeDescription
isRunning[get] boolTrue if the tests are being executed
runningTest[get] stringReturn an unique name for the current running test. If there is no test running it will return an empty string

Methods

NameDescription
add (listener) Add a listener to the collection
attach (attachment) Send the attachment to all listeners
begin (testCount) Send the begin run event to all listeners
begin (suite) Send the begin suite event to all listeners
begin (suite, test) Send the begin test event to all listeners
begin (suite, test, step) Send the begin step event to all listeners
beginExecution (tests) Send the begin execution with the test case list to the executor listener
end (result) Send the end runer event to all listeners
end (suite) Send the end suite event to all listeners
end (suite, test) Send the end test event to all listeners
end (suite, test, step) Send the end step event to all listeners
endExecution () Send the end execution the executor listener
execute (func) Send the execute test to the executor listener
getTestCases ()
update () Send the update event to all listeners