Skip to main content

%UnitTest.Result.TestCase

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

SQL Table Name: %UnitTest_Result.TestCase

Object and SQL projection of a UnitTest TestCase

Property Inventory

Method Inventory

Properties

property Duration as %Numeric (SCALE = 6);
Duration of the execution of the TestCase, 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 TestCase
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 TestCase.
Property methods: StatusDisplayToLogical(), StatusGet(), StatusGetStored(), StatusIsValid(), StatusLogicalToDisplay(), StatusNormalize(), StatusSet(), StatusXSDToLogical()
relationship TestMethods as array of %UnitTest.Result.TestMethod [ InitialExpression = $listbuild("%UnitTest.Result.TestMethod","TestCase",+$this,"children",1,1) , Transient , Inverse = TestCase , Cardinality = children ];
List of TestMethods in this TestCase
Property methods: TestMethodsGet(), TestMethodsGetObject(), TestMethodsGetObjectId(), TestMethodsGetSwizzled(), TestMethodsIsEmpty(), TestMethodsIsValid(), TestMethodsNewObject(), TestMethodsRClose(), TestMethodsRExec(), TestMethodsRFetch(), TestMethodsRelate(), TestMethodsSQLCompute(), TestMethodsSet(), TestMethodsUnRelate()
relationship TestSuite as %UnitTest.Result.TestSuite [ Required , Inverse = TestCases , Cardinality = parent ];
The parent TestSuite containing this TestCase
Property methods: TestSuiteGet(), TestSuiteGetObject(), TestSuiteGetObjectId(), TestSuiteGetStored(), TestSuiteGetSwizzled(), TestSuiteIsValid(), TestSuiteNewObject(), TestSuiteOnDelete(), TestSuiteRClose(), TestSuiteRExec(), TestSuiteRFetch(), TestSuiteRelate(), TestSuiteSQLCompute(), TestSuiteSet(), TestSuiteSetObject(), TestSuiteSetObjectId(), TestSuiteUnRelate(), TestSuiteUnSwizzle()

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.TestCase)

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