SysTestCase.testsElementType Method [AX 2012]

Gets the type of the code coverage element.

Syntax

public UtilElementType testsElementType()

Run On

Called

Return Value

Type: UtilElementType Enumeration
The type of the element.

Remarks

Code coverage will be recorded for the element returned by this method and the testsElementName method. The default behavior is to return the UtilElementType::Class enumeration value. Override this method to record code coverage for a different element type. When returning the UtilElementType::Table enumeration value, make sure to also set the test case to run on the server tier; otherwise, code coverage is not recorded.

See Also

SysTestCase Class

Unit Test Framework

Walkthrough: Testing a Class Using the Unit Test Framework