TestComponent
IntroductionThe base class for test components. DiscussionTest suites are a composite of components. The basic unit is a single TestCase, which may be tested as is. Several instances of TestCase are grouped in a TestSuite, which can test all its tests. A TestSuite object may contain other TestSuite objects, which may contain other suites. Testing a composite returns a TestResult object. Member Functions
acceptImplemented by sub classes. on accept( aVisitor) ParametersisCompositeTells whether this is a composite test. on isComposite() Return Value[boolean] true if this a composite test; false otherwise. DiscussionAllows transparent handling of components, avoiding try... on error, e.g., if a's isComposite() then a's add(foo). testRuns a test. on test() Return Value[script] A TestResult object. |