|
|||||||||
| 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.TestProgram
|
+--satin.testing.TestScript
public abstract class TestScript
extends TestProgram
Base class for a test script.
This class, along with the Testcase class, establishes the
framework for all test scripts, and provides the following support:
run to execute the body of the test, which
in turn calls:setupexecuteverifycleanup
TestScript class recognizes all of the
command-line switches recognized by
TestProgram.
-params fileName...
-data fileName...
Your script can define and handle its own command-line arguments
by overriding the
defineCmdLineArgs method.
public class MY_TEST_SCRIPT extends TestScript
{
public MY_TEST_SCRIPT (TestLog log, String args[]) throws Exception
{ super(log, args); }
public static void main (String args[]) throws Exception
{ (new MY_TEST_SCRIPT(null, args)).run(); }
protected void execute () throws Exception
{
// the body of your test script
}
}
| Fields inherited from class satin.testing.TestProgram |
log |
| Fields inherited from class satin.testing.Test |
lastException |
| Constructor Summary | |
TestScript(TestLog log,
java.lang.String[] cmdLineArgs)
The constructor. |
|
| Method Summary | |
protected final DataParams |
createDataParamSet()
Creates the data parameter set. |
protected final void |
createParams()
Creates the parameter sets for the test script |
protected final ScriptParams |
createScriptParamSet()
Creates the script parameter set. |
protected void |
defineCmdLineArgs(CmdLineParser p)
Defines command line arguments. |
final DataParams |
getDataParams()
Returns the data parameter set for the script. |
final ScriptParams |
getScriptParams()
Returns the script parameter set for the script. |
protected void |
logSummary()
Logs summary information about the test script. |
protected void |
printConsoleSummary()
Prints summary information to the console. |
| Methods inherited from class satin.testing.TestProgram |
createLogFile, doSetup, getLog |
| Methods inherited from class satin.testing.Test |
cleanup, doCleanup, doExecute, doVerify, execute, run, setup, verify |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TestScript(TestLog log,
java.lang.String[] cmdLineArgs)
throws java.lang.Exception
logcmdLineArgs| Method Detail |
protected void defineCmdLineArgs(CmdLineParser p)
TestProgram
define***
methods of CmdLineParser.
If you override this method, be sure to call the inherited method
first, before defining your own arguments.
defineCmdLineArgs in class TestProgram
protected final void createParams()
throws ParamError
createParams in class TestProgram
protected final ScriptParams createScriptParamSet()
throws ParamError
protected final DataParams createDataParamSet()
throws ParamError
protected void logSummary()
throws java.io.IOException
protected void printConsoleSummary()
throws java.io.IOException
public final ScriptParams getScriptParams()
public final DataParams getDataParams()
| Revision History |
7/31/01 Ed Stauff - made changes per code review.
5/31/01 Ed Stauff - moved logBlock from public to private scope.
5/16/01 Andy Griffin - fixed up parameter stuff
5/15/01 Ed Stauff - changes per 2nd API review.
4/25/01 Ed Stauff - plugged in parameter stuff.
4/10/01 Ed Stauff - broke out TestProgram class.
3/27/01 Ed Stauff - made changes per API review.
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 | ||||||||
TestScript.java (PRIVATE SOURCES)