Uses of Class
com.sun.javatest.TestResult
-
Packages that use TestResult Package Description com.sun.javatest This package provides facilities for reading, executing and monitoring tests.com.sun.javatest.exec The Test Manager Tool provides a GUI for opening, browsing, configuring, and running tests and test suites, and for browsing the results.com.sun.javatest.report This package provides API for generating reports about test runs. -
-
Uses of TestResult in com.sun.javatest
Methods in com.sun.javatest that return TestResult Modifier and Type Method Description TestResult
TestResultTable. getCachedResult(TestDescription td)
This method returns TestResult from map of test results, collected by TestResultCache worker.TestResult
Script. getTestResult()
Get the test result object to be used for the results of the test run.TestResult[]
TestResultTable.TreeNode. getTestResults()
Get any immediate children of this node which are test result objects.TestResult[]
TRT_TreeNode. getTestResults()
TestResult
TestResultTable. lookup(TestDescription td)
Find a specific instance of a test result.TestResult
TestResultTable. lookup(java.lang.String jtrPath)
Find a specific instance of a test result.TestResult
TestResultTable.TreeNode. matchTest(java.lang.String url)
Finds a TestResult in this node with the given name.TestResult
TRT_TreeNode. matchTest(java.lang.String url)
TestResult
TestResultTable.TreeIterator. next()
TestResult
TestResultTable.TreeIterator. nextElement()
static TestResult
TestResult. notRun(TestDescription td)
Create a placeholder TestResult for a test that has not yet been run.TestResult
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.TestResult
TestResultTable. resetTest(java.lang.String testName)
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 TestResult Modifier and Type Method Description java.util.Enumeration<TestResult>
TestResultTable. elements()
List all the tests in the tree.java.util.Enumeration<TestResult>
TestResultTable. elements(TestFilter... filters)
Same description as getIterator() method with same args.static java.util.Enumeration<TestResult>
TestResultTable. elements(TestResultTable.TreeNode node)
List all the tests under this node.static java.util.Enumeration<TestResult>
TestResultTable. elements(TestResultTable.TreeNode node, TestFilter filter)
Same description as getIterator() method with same args.static java.util.Enumeration<TestResult>
TestResultTable. elements(TestResultTable.TreeNode node, TestFilter... filters)
Same description as getIterator() method with same args.java.util.Enumeration<TestResult>
TestResultTable. elements(java.io.File[] tests, TestFilter... filters)
Same as getIterator() with the same args.java.util.Enumeration<TestResult>
TestResultTable. elements(java.lang.String[] urls, TestFilter... filters)
This method is the same as getIterator() with the same params.java.util.Enumeration<TestResult>
TestResultTable. elements(java.lang.String url, TestFilter... filters)
Get an enumerator capable of producing a filtered view of the test suite.ReadAheadIterator<TestResult>
Harness. getTestsIterator(TestResultTable.TreeIterator iter)
java.util.Collection<TestResult>
TestResultCache. getTestsToWrite()
Returns unmodifiable collection of the tests to write.Methods in com.sun.javatest with parameters of type TestResult Modifier and Type Method Description boolean
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, java.lang.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, java.lang.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.TreeNode[]
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.java.util.Map<java.lang.String,java.lang.String>
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, java.lang.String key, java.lang.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.TestResult
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, java.lang.String outputName, int start, int end, java.lang.String text)
The output for a section has been updated.void
TestResult.Observer. updatedProperty(TestResult tr, java.lang.String name, java.lang.String value)
A property of the test result has been updated.Method parameters in com.sun.javatest with type arguments of type TestResult Modifier and Type Method Description void
TestResultCache.Observer. update(java.util.Map<java.lang.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 TestResult Modifier and Type Field Description protected TestResult
TP_Subpanel. subpanelTest
Methods in com.sun.javatest.exec with parameters of type TestResult Modifier and Type Method Description void
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(java.lang.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 TestResult Modifier and Type Method Description TestResult
KflSorter.TestDiff. getTestResult()
Method parameters in com.sun.javatest.report with type arguments of type TestResult Modifier and Type Method Description void
HTMLReport. setResults(java.util.List<java.util.TreeSet<TestResult>> results)
Constructors in com.sun.javatest.report with parameters of type TestResult Constructor Description TestDiff(java.lang.String url, TestResult tr, KflSorter.Transitions type)
TestDiff(java.lang.String url, java.lang.String tc, TestResult tr, KflSorter.Transitions type)
-