Uses of Class
com.sun.javatest.TestDescription
Packages that use TestDescription
Package
Description
This package provides facilities for reading, executing
and monitoring tests.
The Test Manager Tool provides a GUI for opening, browsing, configuring,
and running tests and test suites, and for browsing the results.
Test Finders are used to locate and read test descriptions,
which give details about the tests in a test suite.
This package contains miscellaneous library code
that may be used by tests and frameworks.
-
Uses of TestDescription in com.sun.javatest
Fields in com.sun.javatest declared as TestDescriptionModifier and TypeFieldDescriptionprotected TestDescription
Script.td
The test description for the test being performed.Methods in com.sun.javatest that return TestDescriptionModifier and TypeMethodDescriptionTestResult.getDescription()
Get the description of the test from which this result was created.Script.getTestDescription()
Get the test description for the test which this script will run.TestFinder.getTests()
Get the test descriptions that were found by the most recent call of read.TestFinderQueue.next()
Get the next test description if one is available, or null when all have been returned.Methods in com.sun.javatest that return types with arguments of type TestDescriptionModifier and TypeMethodDescriptionTestResultTable.TreeIterator.getFilterStats()
Find out which filters rejected which tests.Methods in com.sun.javatest with parameters of type TestDescriptionModifier and TypeMethodDescriptionboolean
AllTestsFilter.accepts
(TestDescription td) boolean
CompositeFilter.accepts
(TestDescription td) boolean
CompositeFilter.accepts
(TestDescription td, TestFilter.Observer o) boolean
ExcludeListFilter.accepts
(TestDescription td) boolean
InitialUrlFilter.accepts
(TestDescription td) boolean
KeywordsFilter.accepts
(TestDescription td) boolean
LastRunFilter.accepts
(TestDescription td) boolean
LastRunFilter.accepts
(TestDescription td, TestFilter.Observer o) boolean
ParameterFilter.accepts
(TestDescription td) boolean
ParameterFilter.accepts
(TestDescription td, TestFilter.Observer o) boolean
StatusFilter.accepts
(TestDescription td) abstract boolean
TestFilter.accepts
(TestDescription td) Determines whether a TestDescription should be accepted or rejected by this filter.boolean
TestFilter.accepts
(TestDescription td, TestFilter.Observer o) Determines whether a TestDescription should be accepted or rejected by this filter; if rejected, it is reported to the provided observer.TestSuite.createScript
(TestDescription td, String[] exclTestCases, TestEnvironment scriptEnv, WorkDirectory workDir, BackupPolicy backupPolicy) Create and initialize a Script that can be used to run a test.void
TestFinderQueue.Observer.done
(TestDescription td) A test description that was previously put in the test finder queue has been taken from the queue and passed back to the client caller.void
TestFinderQueue.Observer.error
(TestDescription td, String msg) An error was reported by the test finder while reading a file.boolean
ExcludeList.excludesAllOf
(TestDescription td) Test if a specific test is completely excluded according to the table.boolean
ExcludeList.excludesAnyOf
(TestDescription td) Test if a specific test is partially or completely excluded according to the table.void
TestFinderQueue.Observer.found
(TestDescription td) A test description has been found.protected void
TestFinder.foundTestDescription
(TestDescription td) Report that a test description has been found.TestResultTable.getCachedResult
(TestDescription td) This method returns TestResult from map of test results, collected by TestResultCache worker.URL[]
TestSuite.getDocsForTest
(TestDescription td) This method should be overridden in subclassesString[]
TestRunner.getExcludedTestCases
(TestDescription td) Get the names of the test cases to be excluded when running a specific test.URL[]
TestSuite.getFilesForTest
(TestDescription td) Get a list of associated files for a specified test description.String[]
ExcludeList.getTestCases
(TestDescription td) Get the test cases to be excluded for a test.static String
TestResult.getWorkRelativePath
(TestDescription td) Get the path name for the results file for a test, relative to the work directory.void
TestFinderQueue.Observer.ignored
(TestDescription td, TestFilter f) A test description which was previously found, has been rejected by a test filter, and so has not been put in the queue of tests to be executed.void
Script.initTestDescription
(TestDescription td) Initialize the test description to be run by the script.boolean
KnownFailuresList.listsAllOf
(TestDescription td) Test if a specific test is completely excluded according to the table.boolean
KnownFailuresList.listsAnyOf
(TestDescription td) Test if a specific test is partially or completely excluded according to the table.TestResultTable.lookup
(TestDescription td) Find a specific instance of a test result.static TestResult
TestResult.notRun
(TestDescription td) Create a placeholder TestResult for a test that has not yet been run.void
TestFilter.Observer.rejected
(TestDescription d, TestFilter rejector) Notification method called when a test has been rejected.void
TestFinderQueue.repeat
(TestDescription... tds) Deprecated.retained for historical purposesabstract Status
Script.run
(String[] args, TestDescription td, TestEnvironment env) The primary method to be provided by Scripts.protected boolean
DefaultTestRunner.runTest
(TestDescription td) Method parameters in com.sun.javatest with type arguments of type TestDescriptionModifier and TypeMethodDescriptionvoid
Harness.notifyOfTheFinalStats
(Map<TestFilter, List<TestDescription>> filterStats, int... stats) Informs all the observers of the final stats gathered after the test rundefault void
Harness.Observer.notifyOfTheFinalStats
(Map<TestFilter, List<TestDescription>> filterStats, int... stats) Is called when final test run stats are available for evaluation.boolean
DefaultTestRunner.runTests
(Iterator<TestDescription> testIter) boolean
DefaultTestRunner2.runTests
(Iterator<TestDescription> testIter) Deprecated.protected abstract boolean
TestRunner.runTests
(Iterator<TestDescription> testIter) Run the tests obtained from an iterator.Constructors in com.sun.javatest with parameters of type TestDescriptionModifierConstructorDescriptionConstruct a test result object that will be built as the test runs.TestResult
(TestDescription td, Status s) Create a temporary test result for which can be handed around in situations where a reasonable test result can't be created.TestResult
(TestDescription td, WorkDirectory workDir) Reconstruct the results of a previously run test. -
Uses of TestDescription in com.sun.javatest.exec
Fields in com.sun.javatest.exec declared as TestDescription -
Uses of TestDescription in com.sun.javatest.finder
Methods in com.sun.javatest.finder that return TestDescriptionModifier and TypeMethodDescriptionBinaryTestFinder.TestTree.Node.getTest
(int index, File root, File path, BinaryTestFinder.TestTable testTable) Get a TestDescription from this node, using the data in a test table.ChameleonTestFinder.getTests()
RandomTestFinder.getTests()
ReverseTestFinder.getTests()
TestFinderDecorator.getTests()
-
Uses of TestDescription in com.sun.javatest.lib
Methods in com.sun.javatest.lib with parameters of type TestDescriptionModifier and TypeMethodDescriptionAPIScript.run
(String[] args, TestDescription td, TestEnvironment env) The method that interprets the tags provided in the test description and performs actions accordingly.KeywordScript.run
(String[] args, TestDescription td, TestEnvironment env) ReportScript.run
(String[] args, TestDescription td, TestEnvironment env) This method should not be called; for this class, its identity is significant, not its implementation.StdTestScript.run
(String[] args, TestDescription td, TestEnvironment env)