Export (0) Print
Expand All
Expand Minimize

TestIsolation Property

Microsoft Dynamics NAV 2013

Specifies which changes to the database to roll back after the tests in the test runner codeunit execute.

Test runner codeunits. A test runner codeunit has the SubType Property (Codeunit) set to TestRunner.

Value Description

Disabled

Do not roll back any changes to the database. Tests are not isolated from each other.

This is the default value.

Codeunit

Roll back all changes to the database after each test codeunit executes.

Function

Roll back all changes to the database after each test function executes.

We recommend that you design tests to be independent of each other. Tests might read from and write to the same database, which means that tests can interact with each other. If tests interact, then you may experience incorrect test results. To eliminate test interactions, use the TestIsolation property to roll back changes to the database after each test function or after each test codeunit.

JJ551738.note(en-us,NAV.70).gifNote
If you specify that you want to roll back database changes, then all database changes are rolled back, including changes that were explicitly committed to the database during the test by using the COMMIT function.

Show:
© 2014 Microsoft