Skip to main content

%UnitTest.Result.TestMethod

persistent class %UnitTest.Result.TestMethod extends %Library.Persistent, %XML.Adaptor [ Final ]

SQL Table Name: %UnitTest_Result.TestMethod

Object and SQL projection of a UnitTest TestMethod

Property Inventory

Method Inventory

Properties

property Duration as %Numeric (SCALE = 6);
Duration of the execution of the TestMethod, in seconds
Property methods: DurationDisplayToLogical(), DurationGet(), DurationGetStored(), DurationIsValid(), DurationLogicalToDisplay(), DurationNormalize(), DurationSet(), DurationXSDToLogical()
property ErrorAction as %String;
If the Status is failed, this is the action that logged the error
Property methods: ErrorActionDisplayToLogical(), ErrorActionGet(), ErrorActionGetStored(), ErrorActionIsValid(), ErrorActionLogicalToDisplay(), ErrorActionLogicalToOdbc(), ErrorActionNormalize(), ErrorActionSet()
property ErrorDescription as %String;
If the Status is failed, this is the description of the error
Property methods: ErrorDescriptionDisplayToLogical(), ErrorDescriptionGet(), ErrorDescriptionGetStored(), ErrorDescriptionIsValid(), ErrorDescriptionLogicalToDisplay(), ErrorDescriptionLogicalToOdbc(), ErrorDescriptionNormalize(), ErrorDescriptionSet()
property Name as %String [ Required ];
Name of the TestMethod
Property methods: NameDisplayToLogical(), NameGet(), NameGetStored(), NameIsValid(), NameLogicalToDisplay(), NameLogicalToOdbc(), NameNormalize(), NameSet()
property Status as %Integer (DISPLAYLIST = ",failed,passed,skipped", VALUELIST = ",0,1,2");
The status of the TestMethod.
Property methods: StatusDisplayToLogical(), StatusGet(), StatusGetStored(), StatusIsValid(), StatusLogicalToDisplay(), StatusNormalize(), StatusSet(), StatusXSDToLogical()
relationship TestAsserts as array of %UnitTest.Result.TestAssert [ InitialExpression = $listbuild("%UnitTest.Result.TestAssert","TestMethod",+$this,"children",1,1) , Transient , Inverse = TestMethod , Cardinality = children ];
List of TestAsserts in this TestMethod
Property methods: TestAssertsGet(), TestAssertsGetObject(), TestAssertsGetObjectId(), TestAssertsGetSwizzled(), TestAssertsIsEmpty(), TestAssertsIsValid(), TestAssertsNewObject(), TestAssertsRClose(), TestAssertsRExec(), TestAssertsRFetch(), TestAssertsRelate(), TestAssertsSQLCompute(), TestAssertsSet(), TestAssertsUnRelate()
relationship TestCase as %UnitTest.Result.TestCase [ Required , Inverse = TestMethods , Cardinality = parent ];
The parent TestCase containing this TestMethod
Property methods: TestCaseGet(), TestCaseGetObject(), TestCaseGetObjectId(), TestCaseGetStored(), TestCaseGetSwizzled(), TestCaseIsValid(), TestCaseNewObject(), TestCaseOnDelete(), TestCaseRClose(), TestCaseRExec(), TestCaseRFetch(), TestCaseRelate(), TestCaseSQLCompute(), TestCaseSet(), TestCaseSetObject(), TestCaseSetObjectId(), TestCaseUnRelate(), TestCaseUnSwizzle()

Methods

classmethod FileIndicesRecursive(id) as %Status

Indexes

index (IdKeyIndex on Name) [IdKey, Type = key];
Index methods: IdKeyIndexCheck(), IdKeyIndexDelete(), IdKeyIndexExists(), IdKeyIndexOpen(), IdKeyIndexSQLCheckUnique(), IdKeyIndexSQLExists(), IdKeyIndexSQLFindPKeyByConstraint(), IdKeyIndexSQLFindRowIDByConstraint()
index (idxName on Name);
Index methods: idxNameExists()

Inherited Members

Inherited Methods

Storage

Storage Model: Storage (%UnitTest.Result.TestMethod)

{%%PARENT}(ID)
=
Status
Duration
ErrorAction
ErrorDescription
FeedbackOpens in a new tab