Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Version: Available or changed with runtime version 1.0.
Specifies a value that can be used to determine which permission sets are used on tests that are run by a test method.
Applies to
- Method
Note
The TestPermissions attribute can only be set inside codeunits with the SubType property set to Test.
Syntax
[TestPermissions(TestPermissions: TestPermissions)]
Arguments
TestPermissions
Type: TestPermissions
Specifies the permission sets used on tests that are run by the test method.
Remarks
The InheritFromTestCodeunit value applies only to test methods. It makes a test method use the TestPermissions property of its test codeunit. On a test codeunit, this value resolves to Restrictive at runtime.
Apart from InheritFromTestCodeunit, the values don't perform operations by themselves. Add code to a test runner codeunit to define which permission sets each value applies at runtime.
Note
To specify the permission sets that are used by all the tests run by a test codeunit, use the TestPermissions Property.
Related information
AL Method Reference
Method Attributes
TestPermissions Property