Skip to main content

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
Get a clone of a resolved object - macro GetClone
classmethod GetObject(pKey, Output pSC As %Status = $$$OK) as HS.Test.Types.Base
Get a resolved object - macro GetObject
classmethod GetPropertyList(pObject As %RegisteredObject, Output pProperties) as %Status
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
    Get a resolved script object
    classmethod LoadObject(pKey, Output pObject As HS.Test.Types.Base) as %Status
    Get an object from the session or XML import
    classmethod LookupGatewayService(pName As %String, Output pSC As %Status = $$$OK) as %String
    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)
    Merge results from one list into another
    classmethod OverrideObject(pTarget As %RegisteredObject, pOverride As %RegisteredObject) as %Status
    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
    Resolve references from an object
    classmethod ResolveObjectProperties(ByRef pObject As HS.Test.Types.Base) as %Status
    Resolve references from an object's properties
    classmethod StreamEquals(pStream1 As %Stream.Object, pStream2 As %Stream.Object) as %Status
    Tests stream equality
    classmethod Transformer() as HS.Util.XSLTTransformer
    Get the XSLT transformer for this session
    classmethod UnitTest(pTestNum As %Integer = 0)
    Examples and tests for object resolution
    classmethod xmlCanonical(pInput, Output pOutput, pIndent=1, pNoDecl=1, pAsStream=1) as %Status
    Utility method to get canonical form of a XML stream
    classmethod xmlDump(pObject, pIndent=1, pNoDecl=1)
    Utility method for dumping a trace of an object as pretty-printed XML
    classmethod xmlDumpStream(pStream, pIndent=1, pNoDecl=1) as %Status
    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
    Utility method to get Canonical form of an object XML export
    classmethod xmlExportWriter(pObject, Output pOutput, pIndent=1, pNoDecl=1, pAsStream=1) as %Status
    Utility to get an XMLExport of an object using a %XML.Writer

    Subclasses

    FeedbackOpens in a new tab