|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectavrora.test.AutomatedTester
The AutomatedTester is a class that is designed to be an
in-program test facility. It is capable of reading in test cases from
files, extracting properties specified in those test cases, and then
creating a test case of the right form for the right system.
TestHarness,
which is capable of creating instances of the TestCase class
that are collected by this framework.
TestHarness,
TestCase,
TestResult| Constructor Summary | |
AutomatedTester(TestHarness th)
The constructor for the AutomatedTester class accepts
an instance of TestHarness that is used to create the
specific test cases for each file name. |
|
| Method Summary | |
void |
runTests(java.lang.String[] fnames)
The runTests() method runs the testing framework on each
of the specified filenames. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AutomatedTester(TestHarness th)
AutomatedTester class accepts
an instance of TestHarness that is used to create the
specific test cases for each file name.
th - the test harness| Method Detail |
public void runTests(java.lang.String[] fnames)
throws java.io.IOException
runTests() method runs the testing framework on each
of the specified filenames. The name of the target for the testcase is
specified in the text of each file. The testing framework extracts that
name and passes that to the test harness which can create an instance of
TestCase. Each test case is then run and the results are
tabulated.
fnames - an array of the filenames of tests to run
java.io.IOException - if there is a problem loading the test cases
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||