Package org.testng.reporters
Class XMLReporterConfig
java.lang.Object
org.testng.reporters.XMLReporterConfig
- All Implemented Interfaces:
IReporterConfig
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final int
Indicates that no file fragmentation should be performed.static final int
Will cause the XML generator to create separate files for each of the suites.static final int
It behaves likeFF_LEVEL_SUITE
, except that it will also create a file for eachISuiteResult
private int
Indicates the way that the file fragmentation should be performed.(package private) static final String
private boolean
Indicates whether thedepends-on-groups
attribute should be generated for atest-method
elementprivate boolean
Indicates whether thedepends-on-methods
attribute should be generated for atest-method
elementprivate boolean
Indicates whether thegroups
attribute should be generated for atest-method
element.private boolean
Indicates whetherITestResult
attributes should be generated for eachtest-method
elementprivate String
The root output directory where the XMLs will be written.private boolean
Whentrue
it will generate the <class< element with aname
and apackage
attribute.Stack trace output method for the failed tests using one of the STACKTRACE_* constants.static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
private String
The output format for timestamps -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
static Integer
boolean
boolean
boolean
boolean
boolean
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
setStackTraceOutput
(XMLReporterConfig.StackTraceLevels stackTraceOutputMethod) void
setTimestampFormat
(String timestampFormat) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.testng.reporters.IReporterConfig
setProperties, setProperty
-
Field Details
-
TAG_TEST
- See Also:
-
TAG_TEST_METHOD
- See Also:
-
TAG_EXCEPTION
- See Also:
-
TAG_MESSAGE
- See Also:
-
TAG_SHORT_STACKTRACE
- See Also:
-
TAG_FULL_STACKTRACE
- See Also:
-
TAG_TESTNG_RESULTS
- See Also:
-
TAG_SUITE
- See Also:
-
TAG_GROUPS
- See Also:
-
TAG_GROUP
- See Also:
-
TAG_CLASS
- See Also:
-
TAG_METHOD
- See Also:
-
TAG_PARAMS
- See Also:
-
TAG_PARAM
- See Also:
-
TAG_PARAM_VALUE
- See Also:
-
TAG_REPORTER_OUTPUT
- See Also:
-
TAG_LINE
- See Also:
-
TAG_ATTRIBUTES
- See Also:
-
TAG_ATTRIBUTE
- See Also:
-
ATTR_URL
- See Also:
-
ATTR_NAME
- See Also:
-
ATTR_STATUS
- See Also:
-
ATTR_RETRIED
- See Also:
-
ATTR_DESC
- See Also:
-
ATTR_METHOD_SIG
- See Also:
-
ATTR_GROUPS
- See Also:
-
ATTR_CLASS
- See Also:
-
ATTR_TEST_INSTANCE_NAME
- See Also:
-
ATTR_INDEX
- See Also:
-
ATTR_IS_NULL
- See Also:
-
ATTR_PACKAGE
- See Also:
-
ATTR_STARTED_AT
- See Also:
-
ATTR_FINISHED_AT
- See Also:
-
ATTR_DURATION_MS
- See Also:
-
ATTR_IS_CONFIG
- See Also:
-
ATTR_DEPENDS_ON_METHODS
- See Also:
-
ATTR_DEPENDS_ON_GROUPS
- See Also:
-
ATTR_DATA_PROVIDER
- See Also:
-
TEST_PASSED
- See Also:
-
TEST_FAILED
- See Also:
-
TEST_SKIPPED
- See Also:
-
STATUSES
-
FF_LEVEL_NONE
public static final int FF_LEVEL_NONEIndicates 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:
-
FF_LEVEL_SUITE
public static final int FF_LEVEL_SUITEWill 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 asuite.xml
file that will be referenced in the main file with anurl
attribute- See Also:
-
FF_LEVEL_SUITE_RESULT
public static final int FF_LEVEL_SUITE_RESULTIt behaves likeFF_LEVEL_SUITE
, except that it will also create a file for eachISuiteResult
- See Also:
-
FMT_DEFAULT
- See Also:
-
fileFragmentationLevel
private int fileFragmentationLevelIndicates the way that the file fragmentation should be performed. Set this property to one of the FF_LEVEL_* values for the desired output structure -
stackTraceOutputMethod
Stack trace output method for the failed tests using one of the STACKTRACE_* constants. -
stackTraceOutputLevel
-
outputDirectory
The root output directory where the XMLs will be written. This will default for now to the default TestNG output directory -
generateGroupsAttribute
private boolean generateGroupsAttributeIndicates whether thegroups
attribute should be generated for atest-method
element. Defaults to false due to the fact that this might be considered redundant because of the group generation in the suite file. -
splitClassAndPackageNames
private boolean splitClassAndPackageNamesWhentrue
it will generate the <class< element with aname
and apackage
attribute. Otherwise, the fully qualified name will be used for thename
attribute. -
generateDependsOnMethods
private boolean generateDependsOnMethodsIndicates whether thedepends-on-methods
attribute should be generated for atest-method
element -
generateDependsOnGroups
private boolean generateDependsOnGroupsIndicates whether thedepends-on-groups
attribute should be generated for atest-method
element -
generateTestResultAttributes
private boolean generateTestResultAttributesIndicates whetherITestResult
attributes should be generated for eachtest-method
element -
timestampFormat
The output format for timestamps
-
-
Constructor Details
-
XMLReporterConfig
public XMLReporterConfig()
-
-
Method Details
-
getStatus
-
getFileFragmentationLevel
public int getFileFragmentationLevel() -
setFileFragmentationLevel
public void setFileFragmentationLevel(int fileFragmentationLevel) -
getStackTraceOutput
-
setStackTraceOutput
-
getStackTraceOutputLevelForPassedTests
-
getOutputDirectory
-
setOutputDirectory
-
isGenerateGroupsAttribute
public boolean isGenerateGroupsAttribute() -
setGenerateGroupsAttribute
public void setGenerateGroupsAttribute(boolean generateGroupsAttribute) -
isSplitClassAndPackageNames
public boolean isSplitClassAndPackageNames() -
setSplitClassAndPackageNames
public void setSplitClassAndPackageNames(boolean splitClassAndPackageNames) -
getTimestampFormat
-
setTimestampFormat
-
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()
-