<TestCase>

JavaScript: lz.TestCase
extends <Test> » <DebugObject> » <view> » <node> » lz.Eventable »
TestCase implements an individual test case. See the documentation for <TestSuite> for an example of this tag.

Attributes

Name Type (tag) Type (js) Default Category
name expression any   read/write
  The name of the TestCase
testnames expression any null read/write
   

Attributes inherited from <Test>

formatter

Attributes inherited from <DebugObject>

debugWrite

Methods

addTest()
TestCase.addTest(testname);
Parameter Name Type Description
testname    

addTests()
TestCase.addTests();

construct()
TestCase.construct(parent, args);
Parameter Name Type Description
parent    
args    

debugFields()
TestCase.debugFields();

run()
TestCase.run(theTestResult, theTestName);
Run the setUp, execute the named test case, run tearDown
Parameter Name Type Description
theTestResult    
theTestName   (optional) the test to run, if not supplied the test with the name of the TestCase is run

setUp()
TestCase.setUp();
Set up any framework needed to execute the test case. Override this method in individual TestCases to provide a framework.

tearDown()
TestCase.tearDown();
Tear down any framework after the execution of the test case. Override this method in individual TestCases to dismantle the framework.

xmlequals()
TestCase.xmlequals(x1, x2);
Parameter Name Type Description
x1    
x2    

xmlstringequals()
TestCase.xmlstringequals(str1, str2);
Parameter Name Type Description
str1    
str2    

Methods inherited from lz.Eventable

destroy, setAttribute

Events

Events inherited from <node>

onconstruct, ondata, oninit

Events inherited from lz.Eventable

ondestroy