Name

TestSuite

Synopsis

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

Description

A TestSuite is a view with any number of children. The children that are TestCases will have all their test... methods run when the TestSuite is displayed. The TestSuite creates a TestResult as its first child, uses it to accumulate the results of running the TestCases, and finally to display the results of the tests.

Superclass Chain

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

Known Subclasses

Details

Methods (4)

addTest()
<method name="addTest" args="theTest" />
public function addTest(theTest);
Manually add a TestCase to the TestSuite.
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();

Events (5)

onsuitefinish
<attribute name="onsuitefinish" />
public event onsuitefinish;
onsuitestart
<attribute name="onsuitestart" />
public event onsuitestart;
ontestfail
<attribute name="ontestfail" />
public event ontestfail;
ontestfinish
<attribute name="ontestfinish" />
public event ontestfinish;
onteststart
<attribute name="onteststart" />
public event onteststart;

LZX Synopsis

<class name="TestSuite" extends=" Test ">
  <method name=" addTest " args="theTest" />
  <method name=" construct " args="parent, args" />
  <method name=" _dbg_typename " />
  <method name=" debugFields " />
  <event name=" onsuitefinish " />
  <event name=" onsuitestart " />
  <event name=" ontestfail " />
  <event name=" ontestfinish " />
  <event name=" onteststart " />
</class>

JavaScript Synopsis

public TestSuite extends  Test  {
  prototype public function addTest (theTest);
  prototype public function construct (parent, args);
  prototype public function _dbg_typename ();
  prototype public function debugFields ();
  prototype public event onsuitefinish ;
  prototype public event onsuitestart ;
  prototype public event ontestfail ;
  prototype public event ontestfinish ;
  prototype public event onteststart ;
}