Skipping test cases with test handlers
Skipping test cases with test handlers
Handlers can skip test cases, for example AI tests once a monthly token limit is exceeded.
Area: Developer tools. Status: GA. Developer relevance: medium. Airtime: 1 min across 1 video.
Status evidence
- Nothing said about status; launch event convention: generally available unless stated otherwise.
Where they talk about it
Quotes
- 8:46 "if you're using those you will need to migrate across to this if you want to take advantage of these functionalities" - Existing event-based test code needs migration to use test handlers.
- 9:05 "one common use case nowadays for us internally is we use it for managing token consumption" - A practical use case: skipping AI tests when the token or credit budget is used up.
Documented features match
- Build extensible and data-driven AL test suites - medium confidence (llm). Docs say: General availability, roadmap id 573333. Handler capability
- Product documentation: TestHandlerContext.Skip(Text) Method, checked 2026-10-02. Marks the current test case or procedure to be skipped. When called from a before-hook, the test body is not executed and the case is reported as skipped. Note: Runtime 18.0 (wave 2). Lifecycle handler article is preview with runtime 18 prerelease.
Docs checked on 2026-10-02: the match is against Microsoft's what's new pages for the wave as they were on that date. Microsoft keeps filling the documentation, so "no documented item" can go stale.
Tags: testing, ai, al, performance
Generated by pipeline step 06. Source: YouTube auto-captions of the launch event videos, see the deep links. Not official.