Skip to main content

%UnitTest.IKnowRegression

This class provides utility methods for unit tests based on the Aviation Event demo data. Both the classes and data from SAMPLES are stored separately in Perforce, ensuring the test can be run on an instance that didn't include the SAMPLES namespace.

Method Inventory

Parameters

parameter TESTCONFIGNAME = TestConfig;
parameter TESTDOMAINNAME = TestDomain;

Methods

method BatchLoad(pDomainId As %Integer, ByRef pData, pMessage As %String = "Processing batch") as %Status
method CreateTestConfig(ByRef pConfigName As %String = ..#TESTCONFIGNAME, pLanguages As %String, pUserDict As %String = "") as %Status
method CreateTestDomain(Output pDomainId As %Integer, pDomainName As %String = ..#TESTDOMAINNAME, pBuildFlags As %String = "") as %Status
method DropTestConfig(pConfigName As %String = ..#TESTCONFIGNAME) as %Status
method DropTestDomain(pDomainName As %String = ..#TESTDOMAINNAME) as %Status
method IsIKnowSupported()
This method needs to be invoked at the start of all Test* methods using iKnow. It returns 1 if iKnow is supported (primarily just a check if the OS isn't VMS), or 0 otherwise, calling $$$AssertSkipped along the way.
classmethod LogLoadErrors(pDomainId As %Integer, pLoader As %iKnow.Source.Loader = "", pMaxErrors As %Integer = 10) as %Status

Inherited Members

Inherited Properties

Inherited Methods

FeedbackOpens in a new tab