com.googlecode.lightest.core
Class XMLReporter

java.lang.Object
  extended by com.googlecode.lightest.core.XMLReporter
All Implemented Interfaces:
ITestRegistryAcceptor, IReporter, ITestNGListener

public class XMLReporter
extends Object
implements IReporter, ITestRegistryAcceptor

The main entry for the XML generation operation

Author:
Cosmin Marginean, Mar 16, 2007

Constructor Summary
XMLReporter()
           
XMLReporter(LightestSuiteResultWriter suiteResultWriter)
           
 
Method Summary
 void generateReport(List<XmlSuite> xmlSuites, List<ISuite> suites, String outputDirectory)
           
 int getFileFragmentationLevel()
           
 String getOutputDirectory()
           
 TestRegistry getRegistry()
          Return the registry currently set on the object.
 int getStackTraceOutputMethod()
           
 String getTimestampFormat()
           
 boolean isGenerateDependsOnGroups()
           
 boolean isGenerateDependsOnMethods()
           
 boolean isGenerateGroupsAttribute()
           
 boolean isSplitClassAndPackageNames()
           
 void setFileFragmentationLevel(int fileFragmentationLevel)
           
 void setGenerateDependsOnGroups(boolean generateDependsOnGroups)
           
 void setGenerateDependsOnMethods(boolean generateDependsOnMethods)
           
 void setGenerateGroupsAttribute(boolean generateGroupsAttribute)
           
 void setOutputDirectory(String outputDirectory)
           
 void setRegistry(TestRegistry registry)
          Set the registry on the object.
 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
 

Constructor Detail

XMLReporter

public XMLReporter()

XMLReporter

public XMLReporter(LightestSuiteResultWriter suiteResultWriter)
Method Detail

getRegistry

public TestRegistry getRegistry()
Description copied from interface: ITestRegistryAcceptor
Return the registry currently set on the object.

Specified by:
getRegistry in interface ITestRegistryAcceptor

setRegistry

public void setRegistry(TestRegistry registry)
Description copied from interface: ITestRegistryAcceptor
Set the registry on the object.

Specified by:
setRegistry in interface ITestRegistryAcceptor

generateReport

public void generateReport(List<XmlSuite> xmlSuites,
                           List<ISuite> suites,
                           String outputDirectory)
Specified by:
generateReport in interface IReporter

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()


Copyright © 2009. All Rights Reserved.