Package com.sun.javatest.report
Class Report
java.lang.Object
com.sun.javatest.report.Report
A report generator for sets of test results.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static class
Deprecated.Use com.sun.javatest.report.ReportSettings insteadstatic interface
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
If this system property is defined then its value is expected to contain comma-separated list of ReportFormat subclasses to load, which would be put in use instead of those loaded by ServiceLoader from the dedicated file. -
Constructor Summary
ConstructorsConstructorDescriptionReport()
Report
(InterviewParameters params, File dir) Deprecated.It is expected that you call writeReport() if you use this constructor.Report
(InterviewParameters params, File dir, TestFilter tf) Deprecated.It is expected that you call writeReport() if you use this constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
static String[]
Gets the report directory that is currently defined.static ReportSettings
static boolean
Checks if the input directory contains JT Harness reports.void
static void
void
writeReport
(Report.Settings s, File dir) Deprecated.use writeReports(ReportSettings s, File dir)void
writeReport
(String... types) Writes a report about a set of test results.void
writeReports
(ReportSettings s, File dir) Write report files using the given settings, to the given location.
-
Field Details
-
MARKER_FILE_NAME
- See Also:
-
INDEX_FILE_NAME
- See Also:
-
REPORT_FORMATS_TO_LOAD
If this system property is defined then its value is expected to contain comma-separated list of ReportFormat subclasses to load, which would be put in use instead of those loaded by ServiceLoader from the dedicated file.- See Also:
-
-
Constructor Details
-
Report
public Report() -
Report
Deprecated.It is expected that you call writeReport() if you use this constructor.Creates and initializes an instance of the report generator.- Parameters:
params
- Configuration parameters to be included in the report.dir
- The directory to which to write the report.
-
Report
Deprecated.It is expected that you call writeReport() if you use this constructor.Creates and initializes an instance of the report generator.- Parameters:
params
- Configuration parameters to be included in the report.dir
- The directory to which to write the report.tf
- The test filter to be used to filter out tests in the report.
-
-
Method Details
-
isReportDirectory
Checks if the input directory contains JT Harness reports.- Parameters:
d
- The directory to be checked.- Returns:
- true if the directory contains JT Harness reports.
-
getHtmlReportFilenames
-
writePrefs
-
getSettingsPrefs
-
writeReport
Deprecated.use writeReports(ReportSettings s, File dir)- Throws:
IOException
-
writeReports
Write report files using the given settings, to the given location. This is the execution entry point for GUI mode. The settings used are written into the JT Harness preferences automatically at the end of this method, unless this method exits with an exception.- Parameters:
s
- Settings to use for this report run, never null.dir
- Output location, never null.- Throws:
IOException
- May occur at any time during the writing of the reports or creating the directories to store them in.
-
writeReport
Writes a report about a set of test results. This is the execution entry point for batch mode. The default settings from the preferences will be used.- Parameters:
types
- The report type identifiers, may be a custom type. null for default generated reports- Throws:
IllegalArgumentException
- if the type parameter does not identify a proper report type.IOException
- If an error occurs writing any of the files.
-
getReportDir
Gets the report directory that is currently defined.- Returns:
- The report directory.
-
addStartGenListener
-
removeStartGeneratingListener
-