|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.javatest.BasicParameters
com.sun.javatest.FileParameters
public class FileParameters
An implementation of Parameters, using data read from a .jtp file.
| Nested Class Summary |
|---|
| Field Summary |
|---|
| Fields inherited from class com.sun.javatest.BasicParameters |
|---|
concurrencyError, excludeListError, keywordsError, testSuiteError, timeoutFactorError, workDirError |
| Fields inherited from interface com.sun.javatest.Parameters.MutableTestsParameters |
|---|
ALL_TESTS, SPECIFIED_TESTS |
| Fields inherited from interface com.sun.javatest.Parameters.MutableExcludeListParameters |
|---|
CHECK_EVERY_RUN, CHECK_EVERY_X_DAYS, CUSTOM_EXCLUDE_LIST, INITIAL_EXCLUDE_LIST, LATEST_EXCLUDE_LIST, NO_EXCLUDE_LIST |
| Fields inherited from interface com.sun.javatest.Parameters.MutableKeywordsParameters |
|---|
ALL_OF, ANY_OF, EXPR, MATCH_KEYWORDS, NO_KEYWORDS |
| Fields inherited from interface com.sun.javatest.Parameters.MutablePriorStatusParameters |
|---|
MATCH_PRIOR_STATUS, NO_PRIOR_STATUS |
| Fields inherited from interface com.sun.javatest.Parameters.ConcurrencyParameters |
|---|
MAX_CONCURRENCY, MIN_CONCURRENCY |
| Fields inherited from interface com.sun.javatest.Parameters.TimeoutFactorParameters |
|---|
MAX_TIMEOUT_FACTOR, MIN_TIMEOUT_FACTOR |
| Constructor Summary | |
|---|---|
FileParameters()
Create an empty FileParameters object. |
|
FileParameters(java.io.File file)
Create a FileParameters object, based on data read from a parameter file. |
|
FileParameters(java.lang.String[] args)
Create a FileParameters object, based on command-line-like args. |
|
| Method Summary | |
|---|---|
java.io.File[] |
getAbsoluteEnvFiles()
Get the set of files which define the environment used to run the tests. |
TestEnvironment |
getEnv()
Get the environment of test-suite-specific configuration values, to be passed to the script used to run each test. |
java.io.File[] |
getEnvFiles()
Get the set of files which define the environment used to run the tests. |
java.lang.String |
getEnvName()
Get the name of the environment to be used, from the set of environments contained in the fles set by setEnvFiles. |
Parameters.EnvParameters |
getEnvParameters()
Get an object which provides access to the environment of test-suite-specific configuration values to be used when each test is run. |
TestEnvContext |
getEnvTable()
Get an object containing the environments read from the environment files. |
java.lang.String |
getErrorMessage()
If there is an error in any of the configuration values, as indicated by isValid, this method will provide a detail message about one or more of the invalid values. |
java.io.File |
getReportDir()
Get the report directory given in the parameters. |
static boolean |
isParameterFile(java.io.File file)
Determine if the specified file is a parameter file, as determined by whether its extension is .jtp or not. |
boolean |
isValid()
Determine whether all the configuration values are valid. |
void |
setEnvFiles(java.io.File[] files)
Set the files which contain the environment used to run the tests. |
void |
setEnvName(java.lang.String name)
Set the name of the environment to be used, from the set of environments contained in the fles set by setEnvFiles. |
void |
setReportDir(java.io.File dir)
Set the report directory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileParameters()
public FileParameters(java.io.File file)
throws java.io.FileNotFoundException,
java.io.IOException
file - the file to be read to initialize this object
java.io.FileNotFoundException - if the file does not exist
java.io.IOException - if there is a problem reading the filepublic FileParameters(java.lang.String[] args)
-t testsuite-testsuite testsuite
-keywords expr
-status status-list>
passed,
failed,
error,
notRun
-exclude exclude-list-file
-envFile environment-file
-env environment-name
-concurrency number
-timeoutFactor number
-report report-dir-r report-dir
-workDir work-dir-w work-dir
args - The args used to initialize the FileParameters object.
java.lang.IllegalArgumentException - If an unrecognized argument is found.| Method Detail |
|---|
public static boolean isParameterFile(java.io.File file)
file - the file to be checked
public Parameters.EnvParameters getEnvParameters()
Parameters
getEnvParameters in interface Parameterspublic java.io.File[] getEnvFiles()
Parameters.LegacyEnvParameters
getEnvFiles in interface Parameters.LegacyEnvParametersParameters.LegacyEnvParameters.getAbsoluteEnvFiles(),
Parameters.LegacyEnvParameters.setEnvFiles(java.io.File[])public java.io.File[] getAbsoluteEnvFiles()
Parameters.LegacyEnvParameters
getAbsoluteEnvFiles in interface Parameters.LegacyEnvParametersParameters.LegacyEnvParameters.getEnvFiles(),
Parameters.LegacyEnvParameters.setEnvFiles(java.io.File[])public void setEnvFiles(java.io.File[] files)
Parameters.LegacyEnvParameters
setEnvFiles in interface Parameters.LegacyEnvParametersfiles - the set of files which contain the environment
to be usedParameters.LegacyEnvParameters.getEnvFiles(),
Parameters.LegacyEnvParameters.getAbsoluteEnvFiles()public java.lang.String getEnvName()
Parameters.LegacyEnvParameters
getEnvName in interface Parameters.LegacyEnvParametersParameters.LegacyEnvParameters.setEnvName(java.lang.String)public void setEnvName(java.lang.String name)
Parameters.LegacyEnvParameters
setEnvName in interface Parameters.LegacyEnvParametersname - the name of the environment to be used to run the testsParameters.LegacyEnvParameters.getEnvName()public TestEnvContext getEnvTable()
setEnvFiles(java.io.File[]),
setEnvName(java.lang.String)public TestEnvironment getEnv()
Parameters.EnvParameters
getEnv in interface ParametersgetEnv in interface Parameters.EnvParametersParameters.getEnv()public boolean isValid()
Parameters
isValid in interface ParametersisValid in class BasicParametersParameters.getErrorMessage()public java.lang.String getErrorMessage()
Parameters
getErrorMessage in interface ParametersgetErrorMessage in class BasicParametersParameters.isValid()public java.io.File getReportDir()
setReportDir(java.io.File)public void setReportDir(java.io.File dir)
dir - the report directorygetReportDir()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||