org.testng.reporters
Class XMLReporterConfig

java.lang.Object  extended by org.testng.reporters.XMLReporterConfig

public class XMLReporterConfig
extends Object

Author:
Hani Suleiman Date: Mar 27, 2007 Time: 9:16:28 AM


Field Summary
static StringATTR_CLASS
           
static StringATTR_DATA_PROVIDER
           
static StringATTR_DEPENDS_ON_GROUPS
           
static StringATTR_DEPENDS_ON_METHODS
           
static StringATTR_DESC
           
static StringATTR_DURATION_MS
           
static StringATTR_FINISHED_AT
           
static StringATTR_GROUPS
           
static StringATTR_INDEX
           
static StringATTR_IS_CONFIG
           
static StringATTR_IS_NULL
           
static StringATTR_METHOD_SIG
           
static StringATTR_NAME
           
static StringATTR_PACKAGE
           
static StringATTR_STARTED_AT
           
static StringATTR_STATUS
           
static StringATTR_TEST_INSTANCE_NAME
           
static StringATTR_URL
           
static intFF_LEVEL_NONE
          Indicates that no file fragmentation should be performed.
static intFF_LEVEL_SUITE
          Will cause the XML generator to create separate files for each of the suites.
static intFF_LEVEL_SUITE_RESULT
          It behaves like FF_LEVEL_SUITE, except that it will also create a file for each ISuiteResult
static intSTACKTRACE_BOTH
          Write both types of stacktrace
static intSTACKTRACE_FULL
          Write only the full version of the stacktrace
static intSTACKTRACE_NONE
          No stacktrace will be written in the output file
static intSTACKTRACE_SHORT
          Write only a short version of the stacktrace
static StringTAG_ATTRIBUTE
           
static StringTAG_ATTRIBUTES
           
static StringTAG_CLASS
           
static StringTAG_EXCEPTION
           
static StringTAG_FULL_STACKTRACE
           
static StringTAG_GROUP
           
static StringTAG_GROUPS
           
static StringTAG_LINE
           
static StringTAG_MESSAGE
           
static StringTAG_METHOD
           
static StringTAG_PARAM
           
static StringTAG_PARAM_VALUE
           
static StringTAG_PARAMS
           
static StringTAG_REPORTER_OUTPUT
           
static StringTAG_SHORT_STACKTRACE
           
static StringTAG_SUITE
           
static StringTAG_TEST
           
static StringTAG_TEST_METHOD
           
static StringTAG_TESTNG_RESULTS
           
static StringTEST_FAILED
           
static StringTEST_PASSED
           
static StringTEST_SKIPPED
           
 
Constructor Summary
XMLReporterConfig()
           
 
Method Summary
static longconvertDate(String date)
           
 intgetFileFragmentationLevel()
           
 StringgetOutputDirectory()
           
 intgetStackTraceOutputMethod()
           
static IntegergetStatus(String status)
           
static 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

TAG_TEST

public static final String TAG_TEST
See Also:
Constant Field Values

TAG_TEST_METHOD

public static final String TAG_TEST_METHOD
See Also:
Constant Field Values

TAG_EXCEPTION

public static final String TAG_EXCEPTION
See Also:
Constant Field Values

TAG_MESSAGE

public static final String TAG_MESSAGE
See Also:
Constant Field Values

TAG_SHORT_STACKTRACE

public static final String TAG_SHORT_STACKTRACE
See Also:
Constant Field Values

TAG_FULL_STACKTRACE

public static final String TAG_FULL_STACKTRACE
See Also:
Constant Field Values

TAG_TESTNG_RESULTS

public static final String TAG_TESTNG_RESULTS
See Also:
Constant Field Values

TAG_SUITE

public static final String TAG_SUITE
See Also:
Constant Field Values

TAG_GROUPS

public static final String TAG_GROUPS
See Also:
Constant Field Values

TAG_GROUP

public static final String TAG_GROUP
See Also:
Constant Field Values

TAG_CLASS

public static final String TAG_CLASS
See Also:
Constant Field Values

TAG_METHOD

public static final String TAG_METHOD
See Also:
Constant Field Values

TAG_PARAMS

public static final String TAG_PARAMS
See Also:
Constant Field Values

TAG_PARAM

public static final String TAG_PARAM
See Also:
Constant Field Values

TAG_PARAM_VALUE

public static final String TAG_PARAM_VALUE
See Also:
Constant Field Values

TAG_REPORTER_OUTPUT

public static final String TAG_REPORTER_OUTPUT
See Also:
Constant Field Values

TAG_LINE

public static final String TAG_LINE
See Also:
Constant Field Values

TAG_ATTRIBUTES

public static final String TAG_ATTRIBUTES
See Also:
Constant Field Values

TAG_ATTRIBUTE

public static final String TAG_ATTRIBUTE
See Also:
Constant Field Values

ATTR_URL

public static final String ATTR_URL
See Also:
Constant Field Values

ATTR_NAME

public static final String ATTR_NAME
See Also:
Constant Field Values

ATTR_STATUS

public static final String ATTR_STATUS
See Also:
Constant Field Values

ATTR_DESC

public static final String ATTR_DESC
See Also:
Constant Field Values

ATTR_METHOD_SIG

public static final String ATTR_METHOD_SIG
See Also:
Constant Field Values

ATTR_GROUPS

public static final String ATTR_GROUPS
See Also:
Constant Field Values

ATTR_CLASS

public static final String ATTR_CLASS
See Also:
Constant Field Values

ATTR_TEST_INSTANCE_NAME

public static final String ATTR_TEST_INSTANCE_NAME
See Also:
Constant Field Values

ATTR_INDEX

public static final String ATTR_INDEX
See Also:
Constant Field Values

ATTR_IS_NULL

public static final String ATTR_IS_NULL
See Also:
Constant Field Values

ATTR_PACKAGE

public static final String ATTR_PACKAGE
See Also:
Constant Field Values

ATTR_STARTED_AT

public static final String ATTR_STARTED_AT
See Also:
Constant Field Values

ATTR_FINISHED_AT

public static final String ATTR_FINISHED_AT
See Also:
Constant Field Values

ATTR_DURATION_MS

public static final String ATTR_DURATION_MS
See Also:
Constant Field Values

ATTR_IS_CONFIG

public static final String ATTR_IS_CONFIG
See Also:
Constant Field Values

ATTR_DEPENDS_ON_METHODS

public static final String ATTR_DEPENDS_ON_METHODS
See Also:
Constant Field Values

ATTR_DEPENDS_ON_GROUPS

public static final String ATTR_DEPENDS_ON_GROUPS
See Also:
Constant Field Values

ATTR_DATA_PROVIDER

public static final String ATTR_DATA_PROVIDER
See Also:
Constant Field Values

TEST_PASSED

public static final String TEST_PASSED
See Also:
Constant Field Values

TEST_FAILED

public static final String TEST_FAILED
See Also:
Constant Field Values

TEST_SKIPPED

public static final String TEST_SKIPPED
See Also:
Constant Field Values

FF_LEVEL_NONE

public static final int FF_LEVEL_NONE
Indicates that no file fragmentation should be performed. This value indicates the XML generator to write all the results in one big file. Not recommended for large test suites.

See Also:
Constant Field Values


FF_LEVEL_SUITE

public static final int FF_LEVEL_SUITE
Will cause the XML generator to create separate files for each of the suites. A separate directory will be generated for each suite having the name of the suite and containing a suite.xml file that will be referenced in the main file with an url attribute

See Also:
Constant Field Values


FF_LEVEL_SUITE_RESULT

public static final int FF_LEVEL_SUITE_RESULT
It behaves like FF_LEVEL_SUITE, except that it will also create a file for each ISuiteResult

See Also:
Constant Field Values


STACKTRACE_NONE

public static final int STACKTRACE_NONE
No stacktrace will be written in the output file

See Also:
Constant Field Values


STACKTRACE_SHORT

public static final int STACKTRACE_SHORT
Write only a short version of the stacktrace

See Also:
Constant Field Values


STACKTRACE_FULL

public static final int STACKTRACE_FULL
Write only the full version of the stacktrace

See Also:
Constant Field Values


STACKTRACE_BOTH

public static final int STACKTRACE_BOTH
Write both types of stacktrace

See Also:
Constant Field Values

Constructor Detail

XMLReporterConfig

public XMLReporterConfig()
Method Detail

getStatus

public static Integer getStatus(String status)

convertDate

public static long convertDate(String date)

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 static String getTimestampFormat()

setTimestampFormat

public void setTimestampFormat(String timestampFormat)

isGenerateDependsOnMethods

public boolean isGenerateDependsOnMethods()

setGenerateDependsOnMethods

public void setGenerateDependsOnMethods(boolean generateDependsOnMethods)

isGenerateDependsOnGroups

public boolean isGenerateDependsOnGroups()

setGenerateDependsOnGroups

public void setGenerateDependsOnGroups(boolean generateDependsOnGroups)

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