Package | Description |
---|---|
com.sun.javatest |
This package provides facilities for reading, executing
and monitoring tests.
|
com.sun.javatest.finder |
Test Finders are used to locate and read test descriptions,
which give details about the tests in a test suite.
|
com.sun.javatest.interview |
This package provides a configuration interview for legacy test
suites which do not provide their own interview, and also provides
sub-interviews which may be used to build a custom interview with
standard questions for the standard sections.
|
com.sun.javatest.lib |
This package contains miscellaneous library code
that may be used by tests and frameworks.
|
Modifier and Type | Field and Description |
---|---|
protected TestEnvironment |
Script.env
The test environment for the test being performed.
|
protected TestEnvironment |
TestFinder.env
Deprecated.
This feature was available in earlier versions of
JT Harness but does not interact well with JT Harness 3.0's GUI features.
Use with discretion, if at all.
|
Modifier and Type | Method and Description |
---|---|
TestEnvironment |
TestEnvironment.copy()
Create a copy of the current environment.
|
TestEnvironment |
Harness.getEnv()
Get the current test environment being used by the harness.
|
TestEnvironment |
InterviewParameters.getEnv() |
TestEnvironment |
Parameters.getEnv()
Get the environment of test-suite-specific configuration values,
to be passed to the script used to run each test.
|
TestEnvironment |
Parameters.EnvParameters.getEnv()
Get the environment of test-suite-specific configuration values,
to be passed to the script used to run each test.
|
TestEnvironment |
FileParameters.getEnv() |
TestEnvironment |
TestEnvContext.getEnv(java.lang.String name)
Get a environment from this set of environments.
|
TestEnvironment |
TestRunner.getEnvironment()
Get the test environment to be used to execute the tests that will
be run by this test runner.
|
Modifier and Type | Method and Description |
---|---|
Script |
TestSuite.createScript(TestDescription td,
java.lang.String[] exclTestCases,
TestEnvironment scriptEnv,
WorkDirectory workDir,
BackupPolicy backupPolicy)
Create and initialize a Script that can be used to run a test.
|
TestFilter |
TestSuite.createTestFilter(TestEnvironment filterEnv)
Create a test suite specific filter to be used to filter the tests
to be selected for a test run.
|
void |
TestFinder.init(java.lang.String[] args,
java.io.File testSuiteRoot,
java.io.File[] tests,
TestFilter[] filters,
TestEnvironment env)
Deprecated.
Use one of the other init() methods. This functionality is no
longer supported. Methods on TestResultTable should yield similar
results.
|
void |
TestFinder.init(java.lang.String[] args,
java.io.File testSuiteRoot,
TestEnvironment env)
Initialize the data required by the finder.
|
void |
Script.initTestEnvironment(TestEnvironment env)
Initialize the environment to be used when running the test.
|
abstract Status |
Script.run(java.lang.String[] args,
TestDescription td,
TestEnvironment env)
The primary method to be provided by Scripts.
|
void |
TestResult.setEnvironment(TestEnvironment environment)
Set the environment used by this test.
|
Constructor and Description |
---|
TestEnvironment(TestEnvironment o) |
Modifier and Type | Method and Description |
---|---|
void |
BinaryTestFinder.init(java.lang.String[] args,
java.io.File testSuiteRoot,
TestEnvironment env)
Initialize a new BinaryTestFinder.
|
void |
ReverseTestFinder.init(java.lang.String[] args,
java.io.File testSuiteRoot,
TestEnvironment env)
Initialize the test finder.
|
void |
ChameleonTestFinder.init(java.lang.String[] args,
java.io.File testSuiteRoot,
TestEnvironment env)
Generic initialization routine.
|
void |
ExpandTestFinder.init(java.lang.String[] args,
java.io.File testSuiteRoot,
TestEnvironment env) |
Modifier and Type | Method and Description |
---|---|
TestEnvironment |
SimpleInterviewParameters.getEnv() |
TestEnvironment |
EnvironmentInterview.getEnv()
Get the environment specified by the environment files and environment name,
or null, if it cannot be determined.
|
Modifier and Type | Method and Description |
---|---|
Status |
StdTestScript.run(java.lang.String[] args,
TestDescription td,
TestEnvironment env) |
Status |
KeywordScript.run(java.lang.String[] args,
TestDescription td,
TestEnvironment env) |
Status |
APIScript.run(java.lang.String[] args,
TestDescription td,
TestEnvironment env)
The method that interprets the tags provided in the test description and
performs actions accordingly.
|
Status |
ReportScript.run(java.lang.String[] args,
TestDescription td,
TestEnvironment env)
This method should not be called; for this class, its identity
is significant, not its implementation.
|
Copyright (c) 1996, 2011, Oracle and/or its affiliates. All rights reserved.