Class LifeCycleListeners

The lifecycle listeners collections. You must use this instance in order to extend the runner. You can have as many listeners as you want. The only restriction is for ITestExecutor, which has no sense to have more than one instance for a run

class 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 Add a listener to the collection
attach Send the attachment to all listeners
begin Send the begin run event to all listeners
begin Send the begin suite event to all listeners
begin Send the begin test event to all listeners
begin Send the begin step event to all listeners
beginExecution Send the begin execution with the test case list to the executor listener
end Send the end runer event to all listeners
end Send the end suite event to all listeners
end Send the end test event to all listeners
end Send the end step event to all listeners
endExecution Send the end execution the executor listener
execute Send the execute test to the executor listener
getTestCases
update Send the update event to all listeners