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 StringFILE_NAME
           
 
Constructor Summary
XMLReporter()
           
 
Method Summary
static voidaddDurationAttributes(XMLReporterConfig config, Properties attributes, Date minStartDate, Date maxEndDate)
          Add started-at, finished-at and duration-ms attributes to the tag
 voidgenerateReport(List<XmlSuite> xmlSuites, List<ISuite> suites, String outputDirectory)
          Generate a report for the given suites into the specified output directory.
 intgetFileFragmentationLevel()
           
 StringgetOutputDirectory()
           
 intgetStackTraceOutputMethod()
           
 StringgetTimestampFormat()
           
 booleanisGenerateDependsOnGroups()
           
 booleanisGenerateDependsOnMethods()
           
 booleanisGenerateGroupsAttribute()
           
 booleanisGenerateTestResultAttributes()
           
 booleanisSplitClassAndPackageNames()
           
 voidsetFileFragmentationLevel(int fileFragmentationLevel)
           
 voidsetGenerateDependsOnGroups(boolean generateDependsOnGroups)
           
 voidsetGenerateDependsOnMethods(boolean generateDependsOnMethods)
           
 voidsetGenerateGroupsAttribute(boolean generateGroupsAttribute)
           
 voidsetGenerateTestResultAttributes(boolean generateTestResultAttributes)
           
 voidsetOutputDirectory(String outputDirectory)
           
 voidsetSplitClassAndPackageNames(boolean splitClassAndPackageNames)
           
 voidsetStackTraceOutputMethod(int stackTraceOutputMethod)
           
 voidsetTimestampFormat(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.


NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14