|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.javatest.Script
com.sun.javatest.lib.StdTestScript
public class StdTestScript
A Script to compile/execute a standard test.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.sun.javatest.Script |
---|
Script.TimeoutProvider |
Field Summary | |
---|---|
static int |
CERTIFY
An integer signifying that the execution mode is to perform a certification run, executing precompiled classes. |
static int |
DEVELOPER
An integer signifying that the execution mode is to compile and execute the tests. |
static int |
PRECOMPILE
An integer signifying that the execution mode is to precompile but not otherwise execute the tests. |
static int |
UNKNOWN
An integer signifying that the execution mode is unknown. |
Fields inherited from class com.sun.javatest.Script |
---|
alarmTimer, backupPolicy, cmdOut1Name, cmdOut2Name, env, error_badExecuteArgs, error_badTestClassDir, error_compFailUnexp, error_noActionSpecified, error_noExecuteClass, error_noExtnInSource, error_noRMIClasses, error_noSource, excludedTestCases, fail_compFailUnexp, fail_compSuccUnexp, fail_execSuccUnexp, loader, noExtnInSource, noSource, notifier, pass_compFailExp, pass_compSuccExp, pass_execFailExp, scriptArgs, td, trOut, workDir |
Constructor Summary | |
---|---|
StdTestScript()
|
Method Summary | |
---|---|
int |
getMode()
Get the execution mode for this script. |
Status |
run(java.lang.String[] args,
TestDescription td,
TestEnvironment env)
The primary method to be provided by Scripts. |
void |
setMode(int mode)
Set the execution mode for this script. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int UNKNOWN
public static final int CERTIFY
public static final int PRECOMPILE
public static final int DEVELOPER
Constructor Detail |
---|
public StdTestScript()
Method Detail |
---|
public Status run(java.lang.String[] args, TestDescription td, TestEnvironment env)
Script
run
in class Script
args
- Any script-specific options specified in the script propertytd
- The test description for the test to be performedenv
- The test environment giving the details of how to run the test
Script.compileIndividually(java.lang.String[])
,
Script.compileTogether(java.lang.String[])
,
Script.execute(java.lang.String, java.lang.String)
,
Script.invokeCommand(java.lang.String)
public int getMode()
setMode(int)
,
UNKNOWN
,
CERTIFY
,
PRECOMPILE
,
DEVELOPER
public void setMode(int mode)
mode
- an integer signifying the execution mode for this scriptgetMode()
,
UNKNOWN
,
CERTIFY
,
PRECOMPILE
,
DEVELOPER
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |