Name

TestCase

Synopsis

LZX: TestCase
JavaScript: TestCase
Type: Class
Access: public
Topic: Development.Unit Testing
Declared in: lps/components/lzunit/lzunit.lzx

Description

TestCase implements an individual test case. See the documentation for TestSuite for an example of this tag.

Superclass Chain

node (LzNode) » view (LzView) » DebugObject » Test » TestCase

Known Subclasses

Known Direct Subclasses: SyncTester

Details

Properties (1)

name
<attribute name="name" />
public var name;
The name of the TestCase

Methods (6)

construct()
<method name="construct" args="parent, args" />
public function construct(parent, args);
_dbg_typename()
<method name="_dbg_typename" />
public function _dbg_typename();
debugFields()
<method name="debugFields" />
public function debugFields();
run()
<method name="run" args="theTestResult, theTestName" />
public function run(theTestResult, theTestName);
Run the setUp, execute the named test case, run tearDown
setUp()
<method name="setUp" />
public function setUp();
Set up any framework needed to execute the test case. Override this method in individual TestCases to provide a framework.
tearDown()
<method name="tearDown" />
public function tearDown();
Tear down any framework after the execution of the test case. Override this method in individual TestCases to dismantle the framework.

LZX Synopsis

<class name="TestCase" extends=" Test ">
  <attribute name=" name " />
  <method name=" construct " args="parent, args" />
  <method name=" _dbg_typename " />
  <method name=" debugFields " />
  <method name=" run " args="theTestResult, theTestName" />
  <method name=" setUp " />
  <method name=" tearDown " />
</class>

JavaScript Synopsis

public TestCase extends  Test  {
  public var name ;
  prototype public function construct (parent, args);
  prototype public function _dbg_typename ();
  prototype public function debugFields ();
  prototype public function run (theTestResult, theTestName);
  prototype public function setUp ();
  prototype public function tearDown ();
}