Home > Class Reference > ENSLIB namespace > %UnitTest.IKnowRegression
Private  Storage   


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.


Parameters Properties Methods Queries Indices ForeignKeys Triggers
2 9


Debug SkipTest

%AddToSaveSet %ClassIsLatestVersion %ClassName
%ConstructClone %DispatchClassMethod %DispatchGetModified
%DispatchGetProperty %DispatchMethod %DispatchSetModified
%DispatchSetMultidimProperty %DispatchSetProperty %Extends
%GetParameter %IsA %IsModified
%New %NormalizeObject %ObjectModified
%OnNew %OriginalNamespace %PackageName
%RemoveFromSaveSet %SerializeObject %SetModified
%ValidateObject AssertEqualsViaMacro AssertFailureViaMacro
AssertFilesSQLUnorderedSameViaMacro AssertFilesSameViaMacro AssertNotEqualsViaMacro
AssertNotTrueViaMacro AssertSkippedViaMacro AssertStatusEqualsViaMacro
AssertStatusNotOKViaMacro AssertStatusOKViaMacro AssertSuccessViaMacro
AssertTrueViaMacro BatchLoad CreateTestConfig
CreateTestDomain DropTestConfig DropTestDomain
IsFileOrderSame IsFileSame IsIKnowSupported
LogLoadErrors LogMessage OnAfterAllTests
OnAfterOneTest OnBeforeAllTests OnBeforeOneTest
getline parseSQLFile


• parameter TESTCONFIGNAME = "TestConfig";
• parameter TESTDOMAINNAME = "TestDomain";


• 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