|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | CONST | FIELD | CONSTR | METHOD | DETAIL: CONST | FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--satin.testing.Test
|
+--satin.testing.TestComponent
|
+--satin.testing.TestGroup
public abstract class TestGroup
extends TestComponent
A group of Testcases.
This is a simple mechanism for grouping together Testcase
objects. It provides the following capabilities:
continueOnFailure).
In your derived class, all you need to do is override the constructor,
in which you will instantiate the contained ("child") test objects,
adding each one to the list of child objects by calling the
add method.
When your test object is run by calling the
run method, the
execute method will
iterate over the list of child tests in the order they were
added, running each one by calling its run method.
You need not override the execute method, though
you can do so if you need more sophisticated behaviour.
| Field Summary | |
protected final java.lang.String |
description
The description string that was passed to the constructor. |
final TestLog |
log
The log for this test. |
protected final java.util.Vector |
subTests
The list of testcases contained by this test. |
| Fields inherited from class satin.testing.Test |
lastException |
| Constructor Summary | |
TestGroup(TestLog log,
java.lang.String description)
The constructor. |
|
| Method Summary | |
void |
add(Testcase t)
Adds a testcase to this group. |
protected boolean |
continueOnFailure(TestComponent failedTest)
Returns whether to continue the test if a testcase fails. |
protected void |
execute()
This method calls run on
on each of the testcases, in the order they were added. |
final TestLog |
getLog()
Returns the log file. |
| Methods inherited from class satin.testing.Test |
cleanup, doCleanup, doExecute, doSetup, doVerify, run, setup, verify |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public final TestLog log
getLog
method interchangeably.protected final java.util.Vector subTests
protected final java.lang.String description
| Constructor Detail |
public TestGroup(TestLog log,
java.lang.String description)
logdescription| Method Detail |
public void add(Testcase t)
TestGroup.
t
protected void execute()
throws java.lang.Exception
run on
on each of the testcases, in the order they were added.
execute in class Testprotected boolean continueOnFailure(TestComponent failedTest)
true by default; override it
if you want it to return false.
failedTestpublic final TestLog getLog()
log
field interchangeably.
getLog in class Test| Revision History |
7/31/01 Ed Stauff - made changes per code review.
5/21/01 Ed Stauff - removed overridden run method.
5/15/01 Ed Stauff - changes per 2nd API review.
4/10/01 - added TestComponent class.
3/22/01 - API reviewed by Test Automation team.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | CONST | FIELD | CONSTR | METHOD | DETAIL: CONST | FIELD | CONSTR | METHOD | ||||||||
TestGroup.java (PRIVATE SOURCES)