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.
Related information
Get Started with AL
Developing Extensions
Test Codeunits and Test Functions