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 TestResultTestResultTable. getCachedResult(TestDescription td)This method returns TestResult from map of test results, collected by TestResultCache worker.TestResultScript. 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()TestResultTestResultTable. lookup(TestDescription td)Find a specific instance of a test result.TestResultTestResultTable. lookup(java.lang.String jtrPath)Find a specific instance of a test result.TestResultTestResultTable.TreeNode. matchTest(java.lang.String url)Finds a TestResult in this node with the given name.TestResultTRT_TreeNode. matchTest(java.lang.String url)TestResultTestResultTable.TreeIterator. next()TestResultTestResultTable.TreeIterator. nextElement()static TestResultTestResult. notRun(TestDescription td)Create a placeholder TestResult for a test that has not yet been run.TestResultTestResultTable. resetTest(TestResult tr)This method purges the given test, including attempting to delete the associated JTR file, then replaces it with a basicNOT_RUNtest of the same name.TestResultTestResultTable. 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_RUNtest 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 booleanParameterFilter. accepts(TestResult tr, TestFilter.Observer o)booleanStatusFilter. accepts(TestResult tr)booleanTestFilter. accepts(TestResult tr)booleanTestFilter. accepts(TestResult tr, TestFilter.Observer o)voidTestResultCache.Observer. buildingCache(TestResult tr)Called when a test has been found to put in the cache.voidTestResult.Observer. completed(TestResult tr)The test has completed, and the results are now immutable.voidTestResult.Observer. completedOutput(TestResult tr, TestResult.Section section, java.lang.String outputName)Output has been completed in a section of the test result.voidTestResult.Observer. completedSection(TestResult tr, TestResult.Section section)A section has been been completed in the test result.voidTestResult.Observer. createdOutput(TestResult tr, TestResult.Section section, java.lang.String outputName)New output has been created in a section of the test result.voidTestResult.Observer. createdSection(TestResult tr, TestResult.Section section)A new section has been created in the test result.default voidHarness.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 voidScript. initTestResult(TestResult tr)Initialize the test result for the result of the script execution.voidTestResultTable.TreeNodeObserver. insertedResult(TestResultTable.TreeNode parent, TestResult test, int index)A TestResult has been inserted into the given parent node.booleanTestResultTable.TreeIterator. isPending(TestResult node)Will the iterator be returning the given node later.protected voidTestRunner. notifyFinishedTest(TestResult tr)This method must be called when each test is finished, to notify any registered observers.protected voidTestRunner. notifyStartingTest(TestResult tr)This method must be called as each test is started, to notify any registered observers.voidWorkDirectory. putTestAnnotation(TestResult tr, java.lang.String key, java.lang.String value)SeeputTestAnnotation(String,String,String).voidTestResultTable.TreeNodeObserver. removedResult(TestResultTable.TreeNode parent, TestResult test, int index)A TestResult has been removed from the given parent node.voidTestResultTable.TreeNodeObserver. replacedResult(TestResultTable.TreeNode parent, TestResult oldTest, TestResult newTest, int index)A TestResult has been replaced in the given parent node.TestResultTestResultTable. resetTest(TestResult tr)This method purges the given test, including attempting to delete the associated JTR file, then replaces it with a basicNOT_RUNtest of the same name.default voidHarness.Observer. startingTest(TestResult tr)The harness is about to run the given test.voidTestResultTable.Observer. update(TestResult oldValue, TestResult newValue)The oldValue has been replaced by the newValue.voidTestResultTable. update(TestResult tr)Update the information in the table with a new test result.voidTestResultTable. update(TestResult tr, boolean suppressScan)Update the information in the table with a new test result.voidTestResultTable.Observer. updated(TestResult whichTR)The given test was changed, but previously existed in this TRT.voidTestResult.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.voidTestResult.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 voidTestResultCache.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 TestResultTP_Subpanel. subpanelTestMethods in com.sun.javatest.exec with parameters of type TestResult Modifier and Type Method Description voidCustomTestResultViewer. onCangedTestResult(TestResult newTR, boolean isActive)This method is called when a new test from the test tree is selected by user.abstract voidCustomTestResultViewer. 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.voidJavaTestContextMenu. updateState(TestResult tr)Called upon when a test is selected by the user.voidJavaTestContextMenu. updateState(java.lang.String[] folders, TestResult... trs)Called upon when multiple items have been selected by the user.protected voidTP_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 TestResultKflSorter.TestDiff. getTestResult()Method parameters in com.sun.javatest.report with type arguments of type TestResult Modifier and Type Method Description voidHTMLReport. 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)
-