Package org.testng.reporters
Class SuiteHTMLReporter
- java.lang.Object
-
- org.testng.reporters.SuiteHTMLReporter
-
- All Implemented Interfaces:
IReporter
,ITestNGListener
public class SuiteHTMLReporter extends java.lang.Object implements IReporter
This class implements an HTML reporter for suites.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
AFTER
Generate information about the methods that were runstatic java.lang.String
BEFORE
static java.lang.String
CLASSES
static java.lang.String
GROUPS
static java.lang.String
METHODS_ALPHABETICAL
static java.lang.String
METHODS_CHRONOLOGICAL
static java.lang.String
METHODS_NOT_RUN
static java.lang.String
REPORTER_OUTPUT
static java.lang.String
TESTNG_XML
-
Constructor Summary
Constructors Constructor Description SuiteHTMLReporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
generateOutputDirectoryName(java.lang.String outputDirectory)
Overridable by subclasses to create different directory names (e.g.void
generateReport(java.util.List<XmlSuite> xmlSuites, java.util.List<ISuite> suites, java.lang.String outputDirectory)
Generate a report for the given suites into the specified output directory.
-
-
-
Field Detail
-
METHODS_CHRONOLOGICAL
public static final java.lang.String METHODS_CHRONOLOGICAL
- See Also:
- Constant Field Values
-
METHODS_ALPHABETICAL
public static final java.lang.String METHODS_ALPHABETICAL
- See Also:
- Constant Field Values
-
GROUPS
public static final java.lang.String GROUPS
- See Also:
- Constant Field Values
-
CLASSES
public static final java.lang.String CLASSES
- See Also:
- Constant Field Values
-
REPORTER_OUTPUT
public static final java.lang.String REPORTER_OUTPUT
- See Also:
- Constant Field Values
-
METHODS_NOT_RUN
public static final java.lang.String METHODS_NOT_RUN
- See Also:
- Constant Field Values
-
TESTNG_XML
public static final java.lang.String TESTNG_XML
- See Also:
- Constant Field Values
-
AFTER
public static final java.lang.String AFTER
Generate information about the methods that were run- See Also:
- Constant Field Values
-
BEFORE
public static final java.lang.String BEFORE
- See Also:
- Constant Field Values
-
-
Method Detail
-
generateReport
public void generateReport(java.util.List<XmlSuite> xmlSuites, java.util.List<ISuite> suites, java.lang.String outputDirectory)
Description copied from interface:IReporter
Generate a report for the given suites into the specified output directory.- Specified by:
generateReport
in interfaceIReporter
- Parameters:
xmlSuites
- The list ofXmlSuite
suites
- The list ofISuite
outputDirectory
- The output directory
-
generateOutputDirectoryName
protected java.lang.String generateOutputDirectoryName(java.lang.String outputDirectory)
Overridable by subclasses to create different directory names (e.g. with timestamps).- Parameters:
outputDirectory
- the output directory specified by the user- Returns:
- the name of the output directory of the report
-
-