Home > Class Reference > ENSLIB namespace > EnsLib.ITK.Validation.UnitTests
Private  Storage   


class EnsLib.ITK.Validation.UnitTests extends %UnitTest.TestCase


Parameters Properties Methods Queries Indices ForeignKeys Triggers
3 5 9


Debug Fault Name RequestSync ResponseSync
SkipTest SubDir

%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 GetLogFile IsFileOrderSame
IsFileSame LogMessage OnAfterAllTests
OnAfterOneTest OnBeforeAllTests OnBeforeOneTest
TestCertificate TestConfig TestResponseRelatesTo
TestSOAPAction TestTimestamp fixPath
getline parseSQLFile


• parameter ACTIONRESPSUFFIX = "Response";
• parameter ADDRESSINGFAULT = "http://www.w3.org/2005/08/addressing/fault";
• parameter ADDRESSINGSOAPFAULT = "http://www.w3.org/2005/08/addressing/soap/fault";


• property Fault as %Boolean;
• property Name as %String;
• property RequestSync as %Boolean;
• property ResponseSync as %Boolean;
• property SubDir as %String;


• method GetLogFile(pInstance As %Integer, pIsRequest As %Boolean) as %String
• method OnAfterAllTests() as %Status
Run by RunTest once after all test methods in the test class are run. Can be used to tear down a test environment that was set up by OnBeforeAllTests See example in OnBeforeAllTests.
• method OnBeforeAllTests() as %Status
Run by RunTest once before any test methods in the test class are run. Can be used to set up a test environment that will be later cleaned up by OnAfterAllTests.
NOTE: OnBeforeAllTests does not currently support skipping tests. Calls to $$$AssertSkipped in OnBeforeAllTests may result in tests appearing to pass rather than being skipped.

Example: Setup and Cleanup of an environment:
Method OnBeforeAllTests() As %Status
	//do setup stuff here
 	set ^inputMessage = "input message"
	quit $$$OK
Method OnAfterAllTests() As %Status
	//do clean up stuff here
	kill ^inputMessage
	quit $$$OK
• method TestCertificate()
• method TestConfig()
• method TestResponseRelatesTo()
• method TestSOAPAction()
• method TestTimestamp()
• classmethod fixPath(path As %String) as %String