SysTestCase.useSingleInstance Method [AX 2012]

Determines the lifetime of the test case instance used to execute the test methods of the test case.


public boolean useSingleInstance()

Run On


Return Value

Type: boolean
true if the test framework should use the same test case class instance to execute all test methods; otherwise, false.


When this method returns false, the test framework will create a new instance of the test case class for each test method. This enables each test method to run independently.

Override this method to instruct the framework to use the same instance of the test case class to execute all test methods.

The default is to return false.

See Also


SysTestCase Class