org.testng.reporters
Class XMLReporter

java.lang.Object
  extended by org.testng.reporters.XMLReporter
All Implemented Interfaces:
IReporter, ITestNGListener

public class XMLReporter
extends Object
implements IReporter

The main entry for the XML generation operation

Author:
Cosmin Marginean, Mar 16, 2007

Field Summary
static String FILE_NAME
           
 
Constructor Summary
XMLReporter()
           
 
Method Summary
static void addDurationAttributes(XMLReporterConfig config, Properties attributes, Date minStartDate, Date maxEndDate)
          Add started-at, finished-at and duration-ms attributes to the tag
 void generateReport(List<XmlSuite> xmlSuites, List<ISuite> suites, String outputDirectory)
          Generate a report for the given suites into the specified output directory.
 int getFileFragmentationLevel()
           
 String getOutputDirectory()
           
 int getStackTraceOutputMethod()
           
 String getTimestampFormat()
           
 boolean isGenerateDependsOnGroups()
           
 boolean isGenerateDependsOnMethods()
           
 boolean isGenerateGroupsAttribute()
           
 boolean isGenerateTestResultAttributes()
           
 boolean isSplitClassAndPackageNames()
           
 void setFileFragmentationLevel(int fileFragmentationLevel)
           
 void setGenerateDependsOnGroups(boolean generateDependsOnGroups)
           
 void setGenerateDependsOnMethods(boolean generateDependsOnMethods)
           
 void setGenerateGroupsAttribute(boolean generateGroupsAttribute)
           
 void setGenerateTestResultAttributes(boolean generateTestResultAttributes)
           
 void setOutputDirectory(String outputDirectory)
           
 void setSplitClassAndPackageNames(boolean splitClassAndPackageNames)
           
 void setStackTraceOutputMethod(int stackTraceOutputMethod)
           
 void setTimestampFormat(String timestampFormat)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILE_NAME

public static final String FILE_NAME
See Also:
Constant Field Values
Constructor Detail

XMLReporter

public XMLReporter()
Method Detail

generateReport

public void generateReport(List<XmlSuite> xmlSuites,
                           List<ISuite> suites,
                           String outputDirectory)
Description copied from interface: IReporter
Generate a report for the given suites into the specified output directory.

Specified by:
generateReport in interface IReporter

addDurationAttributes

public static void addDurationAttributes(XMLReporterConfig config,
                                         Properties attributes,
                                         Date minStartDate,
                                         Date maxEndDate)
Add started-at, finished-at and duration-ms attributes to the tag


getFileFragmentationLevel

public int getFileFragmentationLevel()

setFileFragmentationLevel

public void setFileFragmentationLevel(int fileFragmentationLevel)

getStackTraceOutputMethod

public int getStackTraceOutputMethod()

setStackTraceOutputMethod

public void setStackTraceOutputMethod(int stackTraceOutputMethod)

getOutputDirectory

public String getOutputDirectory()

setOutputDirectory

public void setOutputDirectory(String outputDirectory)

isGenerateGroupsAttribute

public boolean isGenerateGroupsAttribute()

setGenerateGroupsAttribute

public void setGenerateGroupsAttribute(boolean generateGroupsAttribute)

isSplitClassAndPackageNames

public boolean isSplitClassAndPackageNames()

setSplitClassAndPackageNames

public void setSplitClassAndPackageNames(boolean splitClassAndPackageNames)

getTimestampFormat

public String getTimestampFormat()

setTimestampFormat

public void setTimestampFormat(String timestampFormat)

isGenerateDependsOnMethods

public boolean isGenerateDependsOnMethods()

setGenerateDependsOnMethods

public void setGenerateDependsOnMethods(boolean generateDependsOnMethods)

setGenerateDependsOnGroups

public void setGenerateDependsOnGroups(boolean generateDependsOnGroups)

isGenerateDependsOnGroups

public boolean isGenerateDependsOnGroups()

setGenerateTestResultAttributes

public void setGenerateTestResultAttributes(boolean generateTestResultAttributes)

isGenerateTestResultAttributes

public boolean isGenerateTestResultAttributes()


Copyright © 2012. All Rights Reserved.