Edit

TestHandlerContext.Skip(Text) Method

Version: Available or changed with runtime version 18.0.

Marks the current test case or procedure to be skipped. When called from a before-hook (OnBeforeTestCaseRun or OnBeforeTestProcedureRun), the test body is not executed and the case is reported as skipped. Calling it from an after-hook has no effect.

Syntax

 TestHandlerContext.Skip(Reason: Text)

Parameters

TestHandlerContext
 Type: TestHandlerContext
An instance of the TestHandlerContext data type.

Reason
 Type: Text
The reason the case is being skipped, surfaced in the test result and log.

TestHandlerContext data type
Test codeunits and test methods in AL
Getting started with AL
Developing extensions