Home > Class Reference > HSLIB namespace > HS.Test.Util

HS.Test.Util

abstract class HS.Test.Util

Utility methods for TestCases/Scripts

Method Inventory

Parameters

parameter DOMAIN = HS;
Domain used for localization.

Methods

classmethod GetClone(pKey, Output pSC As %Status = $$$OK) as HS.Test.Types.Base [ Language = objectscript ]
Get a clone of a resolved object - macro GetClone
classmethod GetObject(pKey, Output pSC As %Status = $$$OK) as HS.Test.Types.Base [ Language = objectscript ]
Get a resolved object - macro GetObject
classmethod GetPropertyList(pObject As %RegisteredObject, Output pProperties) as %Status [ Language = objectscript ]
Returns list of property values without swizzling The following properties will be omitted:
  • Calculated
  • System (beginning with a %)
  • Private
  • Multidimensional Returns list as a multidimensional array of property values
  • classmethod GetScript(pScriptKey, Output pScriptObject As HS.Test.Types.Base) as %Status [ Language = objectscript ]
    Get a resolved script object
    classmethod LoadObject(pKey, Output pObject As HS.Test.Types.Base) as %Status [ Language = objectscript ]
    Get an object from the session or XML import
    classmethod LookupGatewayService(pName As %String, Output pSC As %Status = $$$OK) as %String [ Language = objectscript ]
    Converts a service name beginning with a colon by matching on gateway name
    classmethod MergeErrors(ByRef pTarget As HS.Types.IHE.Errors, pSource As HS.Types.IHE.Errors) [ Language = objectscript ]
    Merge results from one list into another
    classmethod OverrideObject(pTarget As %RegisteredObject, pOverride As %RegisteredObject) as %Status [ Language = objectscript ]
    Deep copy values skipping empty ones -- skips "", but not $C(0)
    classmethod ResolveObject(pObject As HS.Test.Types.Base, pResolved As HS.Test.Types.Base) as %Status [ Language = objectscript ]
    Resolve references from an object
    classmethod ResolveObjectProperties(ByRef pObject As HS.Test.Types.Base) as %Status [ Language = objectscript ]
    Resolve references from an object's properties
    classmethod StreamEquals(pStream1 As %Stream.Object, pStream2 As %Stream.Object) as %Status [ Language = objectscript ]
    Tests stream equality
    classmethod Transformer() as HS.Util.XSLTTransformer [ Language = objectscript ]
    Get the XSLT transformer for this session
    classmethod UnitTest(pTestNum As %Integer = 0) [ Language = objectscript ]
    Examples and tests for object resolution
    classmethod xmlCanonical(pInput, Output pOutput, pIndent=1, pNoDecl=1, pAsStream=1) as %Status [ Language = objectscript ]
    Utility method to get canonical form of a XML stream
    classmethod xmlDump(pObject, pIndent=1, pNoDecl=1) [ Language = objectscript ]
    Utility method for dumping a trace of an object as pretty-printed XML
    classmethod xmlDumpStream(pStream, pIndent=1, pNoDecl=1) as %Status [ Language = objectscript ]
    Utility method to dumping a trace of a stream as pretty-printed XML
    classmethod xmlExportCanonical(pObject, Output pOutput, pIndent=1, pNoDecl=1, pAsStream=1) as %Status [ Language = objectscript ]
    Utility method to get Canonical form of an object XML export
    classmethod xmlExportWriter(pObject, Output pOutput, pIndent=1, pNoDecl=1, pAsStream=1) as %Status [ Language = objectscript ]
    Utility to get an XMLExport of an object using a %XML.Writer

    Subclasses