Package com.sun.javatest.lib
Class StdTestScript
java.lang.Object
com.sun.javatest.Script
com.sun.javatest.lib.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
FieldsModifier and TypeFieldDescriptionstatic final int
An integer signifying that the execution mode is to perform a certification run, executing precompiled classes.static final int
An integer signifying that the execution mode is to compile and execute the tests.static final int
An integer signifying that the execution mode is to precompile but not otherwise execute the tests.static final int
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getMode()
Get the execution mode for this script.run
(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 com.sun.javatest.Script
compileIfNecessary, compileIfNecessary, compileIfNecessary, compileIfNecessary, compileIndividually, compileIndividually, compileIndividually, compileIndividually, compileOne, compileOne, compileOne, compileOne, compileTogether, compileTogether, compileTogether, compileTogether, exclude, execute, execute, execute, execute, filesToStrings, getJTRIfPassed, getTestDescription, getTestResult, getTestTimeout, getTimeoutProvider, initArgs, initBackupPolicy, initClassLoader, initDelegate, initExcludedTestCases, initTestDescription, initTestEnvironment, initTestResult, initWorkDir, invokeCommand, rmiCompile, rmiCompile, run, setAlarm, setAlarm, setDefaultCommandStreamNames, setJTRIfPassed, setNotifier, setTimeoutProvider, useNotifier
-
Field Details
-
UNKNOWN
public static final int UNKNOWNAn integer signifying that the execution mode is unknown.- See Also:
-
CERTIFY
public static final int CERTIFYAn integer signifying that the execution mode is to perform a certification run, executing precompiled classes.- See Also:
-
PRECOMPILE
public static final int PRECOMPILEAn integer signifying that the execution mode is to precompile but not otherwise execute the tests.- See Also:
-
DEVELOPER
public static final int DEVELOPERAn integer signifying that the execution mode is to compile and execute the tests.- See Also:
-
-
Constructor Details
-
StdTestScript
public StdTestScript()
-
-
Method Details
-
run
Description copied from class:Script
The primary method to be provided by Scripts. It is responsible for compiling and executing the test appropriately. Normally, a script should call `init' and then decode any script-specific options it is given in `args'. It should then examine the test description it is given so that it can compile and execute the test as appropriate. Various convenience routines are provided to simplify the task of running the compiler, an interpreter or any other commands, which can be specified in a flexible manner by properties in the TestEnvironment. -
getMode
public int getMode()Get the execution mode for this script. The default mode is CERTIFY.- Returns:
- an integer signifying the execution mode for this script
- See Also:
-
setMode
public void setMode(int mode) Set the execution mode for this script.- Parameters:
mode
- an integer signifying the execution mode for this script- See Also:
-