# 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._
```al
[Test]
procedure Test()
```
> IMPORTANT
> The above signature requires the Test method to be global. See https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-al-methods.md%23local-and-global-scope.
## Remarks
Use test methods to test specific units of application business logic. The transaction behavior of a test method depends on its TransactionModel<devenv-transactionmodel-attribute> setting.
See Test Codeunits and Test Functions<../devenv-test-codeunits-and-test-methods>.
## Related information
Get Started with AL<../devenv-get-started>
Developing Extensions<../devenv-dev-overview>
Test Codeunits and Test Functions<../devenv-test-codeunits-and-test-methods>
devenv-transactionmodel-attribute

Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/attributes/devenv-test-attribute, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact. https://jonas-paprotka.de/docs/dev-itpro/developer/attributes/devenv-test-attribute/
