Uses of Class
com.sun.javatest.TestResult
Packages that use TestResult
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.
This package provides API for generating reports about test runs.
-
Uses of TestResult in com.sun.javatest
Methods in com.sun.javatest that return TestResultModifier and TypeMethodDescriptionTestResultTable.getCachedResult
(TestDescription td) This method returns TestResult from map of test results, collected by TestResultCache worker.Script.getTestResult()
Get the test result object to be used for the results of the test run.TestResultTable.TreeNode.getTestResults()
Get any immediate children of this node which are test result objects.TRT_TreeNode.getTestResults()
TestResultTable.lookup
(TestDescription td) Find a specific instance of a test result.Find a specific instance of a test result.Finds a TestResult in this node with the given name.TestResultTable.TreeIterator.next()
TestResultTable.TreeIterator.nextElement()
static TestResult
TestResult.notRun
(TestDescription td) Create a placeholder TestResult for a test that has not yet been run.TestResultTable.resetTest
(TestResult tr) This method purges the given test, including attempting to delete the associated JTR file, then replaces it with a basicNOT_RUN
test of the same name.This method purges the given test, including attempting to delete the associated JTR file, then replaces it with a basicNOT_RUN
test of the same name.Methods in com.sun.javatest that return types with arguments of type TestResultModifier and TypeMethodDescriptionTestResultTable.elements()
List all the tests in the tree.TestResultTable.elements
(TestFilter... filters) Same description as getIterator() method with same args.static Enumeration
<TestResult> TestResultTable.elements
(TestResultTable.TreeNode node) List all the tests under this node.static Enumeration
<TestResult> TestResultTable.elements
(TestResultTable.TreeNode node, TestFilter filter) Same description as getIterator() method with same args.static Enumeration
<TestResult> TestResultTable.elements
(TestResultTable.TreeNode node, TestFilter... filters) Same description as getIterator() method with same args.TestResultTable.elements
(File[] tests, TestFilter... filters) Same as getIterator() with the same args.TestResultTable.elements
(String[] urls, TestFilter... filters) This method is the same as getIterator() with the same params.TestResultTable.elements
(String url, TestFilter... filters) Get an enumerator capable of producing a filtered view of the test suite.Harness.getTestsIterator
(TestResultTable.TreeIterator iter) TestResultCache.getTestsToWrite()
Returns unmodifiable collection of the tests to write.Methods in com.sun.javatest with parameters of type TestResultModifier and TypeMethodDescriptionboolean
ParameterFilter.accepts
(TestResult tr, TestFilter.Observer o) boolean
StatusFilter.accepts
(TestResult tr) boolean
TestFilter.accepts
(TestResult tr) boolean
TestFilter.accepts
(TestResult tr, TestFilter.Observer o) void
TestResultCache.Observer.buildingCache
(TestResult tr) Called when a test has been found to put in the cache.void
TestResult.Observer.completed
(TestResult tr) The test has completed, and the results are now immutable.void
TestResult.Observer.completedOutput
(TestResult tr, TestResult.Section section, String outputName) Output has been completed in a section of the test result.void
TestResult.Observer.completedSection
(TestResult tr, TestResult.Section section) A section has been been completed in the test result.void
TestResult.Observer.createdOutput
(TestResult tr, TestResult.Section section, String outputName) New output has been created in a section of the test result.void
TestResult.Observer.createdSection
(TestResult tr, TestResult.Section section) A new section has been created in the test result.default void
Harness.Observer.finishedTest
(TestResult tr) The harness has finished running the given test.TestResultTable.PathRecord.generateNodes
(TestResult tr) Generate the path to a given test.static TestResultTable.TreeNode[]
TestResultTable.getObjectPath
(TestResult target) Find the specified test, recording the path from the root.WorkDirectory.getTestAnnotations
(TestResult tr) Get any annotations for the given test in this work directory.protected void
Script.initTestResult
(TestResult tr) Initialize the test result for the result of the script execution.void
TestResultTable.TreeNodeObserver.insertedResult
(TestResultTable.TreeNode parent, TestResult test, int index) A TestResult has been inserted into the given parent node.boolean
TestResultTable.TreeIterator.isPending
(TestResult node) Will the iterator be returning the given node later.protected void
TestRunner.notifyFinishedTest
(TestResult tr) This method must be called when each test is finished, to notify any registered observers.protected void
TestRunner.notifyStartingTest
(TestResult tr) This method must be called as each test is started, to notify any registered observers.void
WorkDirectory.putTestAnnotation
(TestResult tr, String key, String value) SeeputTestAnnotation(String,String,String)
.void
TestResultTable.TreeNodeObserver.removedResult
(TestResultTable.TreeNode parent, TestResult test, int index) A TestResult has been removed from the given parent node.void
TestResultTable.TreeNodeObserver.replacedResult
(TestResultTable.TreeNode parent, TestResult oldTest, TestResult newTest, int index) A TestResult has been replaced in the given parent node.TestResultTable.resetTest
(TestResult tr) This method purges the given test, including attempting to delete the associated JTR file, then replaces it with a basicNOT_RUN
test of the same name.default void
Harness.Observer.startingTest
(TestResult tr) The harness is about to run the given test.void
TestResultTable.Observer.update
(TestResult oldValue, TestResult newValue) The oldValue has been replaced by the newValue.void
TestResultTable.update
(TestResult tr) Update the information in the table with a new test result.void
TestResultTable.update
(TestResult tr, boolean suppressScan) Update the information in the table with a new test result.void
TestResultTable.Observer.updated
(TestResult whichTR) The given test was changed, but previously existed in this TRT.void
TestResult.Observer.updatedOutput
(TestResult tr, TestResult.Section section, String outputName, int start, int end, String text) The output for a section has been updated.void
TestResult.Observer.updatedProperty
(TestResult tr, String name, String value) A property of the test result has been updated.Method parameters in com.sun.javatest with type arguments of type TestResultModifier and TypeMethodDescriptionvoid
TestResultCache.Observer.update
(Map<String, TestResult> tests) Called when tests have been read from the cache file. -
Uses of TestResult in com.sun.javatest.exec
Fields in com.sun.javatest.exec declared as TestResultMethods in com.sun.javatest.exec with parameters of type TestResultModifier and TypeMethodDescriptionvoid
CustomTestResultViewer.onCangedTestResult
(TestResult newTR, boolean isActive) This method is called when a new test from the test tree is selected by user.abstract void
CustomTestResultViewer.setResult
(TestResult currTestResult) This method is called by the harness and it indicates to the viewer that it should check the given TestResult object for changes.
There can be three possible cases: TestResult is a different test, therefore the viewer should fully update the panel TestResult is the current test, the viewer should check the result for updates TestResult is null.void
JavaTestContextMenu.updateState
(TestResult tr) Called upon when a test is selected by the user.void
JavaTestContextMenu.updateState
(String[] folders, TestResult... trs) Called upon when multiple items have been selected by the user.protected void
TP_DocumentationSubpanel.updateSubpanel
(TestResult currTest) -
Uses of TestResult in com.sun.javatest.report
Methods in com.sun.javatest.report that return TestResultMethod parameters in com.sun.javatest.report with type arguments of type TestResultConstructors in com.sun.javatest.report with parameters of type TestResultModifierConstructorDescriptionTestDiff
(String url, TestResult tr, KflSorter.Transitions type) TestDiff
(String url, String tc, TestResult tr, KflSorter.Transitions type)