Class Reference
IRIS for UNIX 2019.2
InterSystems: The power behind what matters   
Documentation  Search
  [ENSLIB] >  [%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.

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
2 9


Summary

Properties
Debug SkipTest

Methods
%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 Checkout
CreateTestConfig CreateTestDomain DropTestConfig
DropTestDomain IsFileOrderSame IsFileSame
IsIKnowSupported LogLoadErrors LogMessage
OnAfterAllTests OnAfterOneTest OnBeforeAllTests
OnBeforeOneTest getline parseSQLFile


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() as %Boolean
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


Copyright (c) 2019 by InterSystems Corporation. Cambridge, Massachusetts, U.S.A. All rights reserved. Confidential property of InterSystems Corporation.