%UnitTest.Result.TestMethod
Class %UnitTest.Result.TestMethod Extends (%Persistent, %XML.Adaptor) [ Final, Owner = {%Developer}, System = 4 ]
Object and SQL projection of a UnitTest TestMethod
Properties
Name
Property Name As %String;
Name of the TestMethod
Status
Property Status As %Integer(DISPLAYLIST = ",failed,passed,skipped", VALUELIST = ",0,1,2");
The status of the TestMethod.
Duration
Property Duration As %Numeric(SCALE = 6);
Duration of the execution of the TestMethod, in seconds
ErrorAction
Property ErrorAction As %String;
If the Status is failed, this is the action that logged the error
ErrorDescription
Property ErrorDescription As %String;
If the Status is failed, this is the description of the error
TestCase
Relationship TestCase As %UnitTest.Result.TestCase [ Cardinality = parent, Inverse = TestMethods ];
The parent TestCase containing this TestMethod
TestAsserts
Relationship TestAsserts As %UnitTest.Result.TestAssert [ Cardinality = children, Inverse = TestMethod ];
List of TestAsserts in this TestMethod
Methods
FileIndicesRecursive
ClassMethod FileIndicesRecursive(id) As %Status