public class Report
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
Report.CustomReportManager |
static class |
Report.Settings
Deprecated.
Use com.sun.javatest.report.ReportSettings instead
|
static interface |
Report.StartGenListener |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
INDEX_FILE_NAME |
static java.lang.String |
MARKER_FILE_NAME |
Constructor and Description |
---|
Report() |
Report(InterviewParameters params,
java.io.File dir)
Deprecated.
It is expected that you call writeReport() if you use this
constructor.
|
Report(InterviewParameters params,
java.io.File dir,
TestFilter tf)
Deprecated.
It is expected that you call writeReport() if you use this
constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addStartGenListener(Report.StartGenListener l) |
static java.lang.String[] |
getHtmlReportFilenames() |
java.io.File |
getReportDir()
Gets the report directory that is currently defined.
|
static ReportSettings |
getSettingsPrefs() |
static boolean |
isReportDirectory(java.io.File d)
Checks if the input directory contains JT Harness reports.
|
void |
removeStartGeneratingListener(Report.StartGenListener l) |
static void |
writePrefs(ReportSettings s) |
void |
writeReport(Report.Settings s,
java.io.File dir)
Deprecated.
use writeReports(ReportSettings s, File dir)
|
void |
writeReport(java.lang.String type)
Writes a report about a set of test results.
|
void |
writeReports(ReportSettings s,
java.io.File dir)
Write report files using the given settings, to the given location.
|
public static final java.lang.String MARKER_FILE_NAME
public static final java.lang.String INDEX_FILE_NAME
public Report()
public Report(InterviewParameters params, java.io.File dir)
params
- Configuration parameters to be included in the report.dir
- The directory to which to write the report.public Report(InterviewParameters params, java.io.File dir, TestFilter tf)
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.@Deprecated public void writeReport(Report.Settings s, java.io.File dir) throws java.io.IOException
java.io.IOException
public void writeReports(ReportSettings s, java.io.File dir) throws java.io.IOException
s
- Settings to use for this report run, never null.dir
- Output location, never null.java.io.IOException
- May occur at any time during the writing of the reports
or creating the directories to store them in.public void writeReport(java.lang.String type) throws java.io.IOException
type
- The report type identifier, may be a custom type.
null for default generated reportsjava.lang.IllegalArgumentException
- if the type parameter does not
identify a proper report type.java.io.IOException
- If an error occurs writing any of the files.public static boolean isReportDirectory(java.io.File d)
d
- The directory to be checked.public java.io.File getReportDir()
public static java.lang.String[] getHtmlReportFilenames()
public static void writePrefs(ReportSettings s)
public static ReportSettings getSettingsPrefs()
public void addStartGenListener(Report.StartGenListener l)
public void removeStartGeneratingListener(Report.StartGenListener l)
Copyright (c) 1996, 2014, Oracle and/or its affiliates. All rights reserved.