TestElementExecutionWrappingAction
An action wrapping a TestElement's execution.
elementAction can be the element's primary action, or a cumulative action, which includes wrapping actions, plus the elements primary action.
Requirements:
An TestElementExecutionWrappingAction must invoke
elementActionexactly once.
Requirements for TestElements of type Test:
If
elementActionthrows, it is considered a test failure. If TestElementExecutionWrappingAction catches the exception, it should re-throw, or the test failure will be muted.TestElementExecutionWrappingAction may throw an exception on its own initiative, which will be considered a test failure.
Requirements for TestElements of types other than Test:
If
elementActionthrows, it is considered a failure of the test framework.TestElementExecutionWrappingAction should not throw to indicate a failing test or to block further tests from executing.