Test Attribute
Version: Available or changed with runtime version 1.0.
Specifies that the method is a test method.
Applies To
- Method
Note
The Test attribute can only be set inside codeunits with the SubType property set to Test.
Syntax
Version: Available or changed with runtime version 1.0.
[Test]
procedure Test()
Important
The above signature requires the Test method to be global. For more information, see Local and global scope in AL methods.
Remarks
You use test methods that include AL code that tests the business logic in the application, where each method covers a transaction.
For more information, see Test Codeunits and Test Functions.
See Also
Get Started with AL
Developing Extensions
Test Codeunits and Test Functions
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for