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 Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final intIndicates that no file fragmentation should be performed.static final intWill cause the XML generator to create separate files for each of the suites.static final intIt behaves likeFF_LEVEL_SUITE, except that it will also create a file for eachISuiteResultprivate intIndicates the way that the file fragmentation should be performed.(package private) static final Stringprivate booleanIndicates whether thedepends-on-groupsattribute should be generated for atest-methodelementprivate booleanIndicates whether thedepends-on-methodsattribute should be generated for atest-methodelementprivate booleanIndicates whether thegroupsattribute should be generated for atest-methodelement.private booleanIndicates whetherITestResultattributes should be generated for eachtest-methodelementprivate StringThe root output directory where the XMLs will be written.private booleanWhentrueit will generate the <class< element with anameand apackageattribute.Stack trace output method for the failed tests using one of the STACKTRACE_* constants.static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprivate StringThe output format for timestamps -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintstatic IntegerbooleanbooleanbooleanbooleanbooleanvoidsetFileFragmentationLevel(int fileFragmentationLevel) voidsetGenerateDependsOnGroups(boolean generateDependsOnGroups) voidsetGenerateDependsOnMethods(boolean generateDependsOnMethods) voidsetGenerateGroupsAttribute(boolean generateGroupsAttribute) voidsetGenerateTestResultAttributes(boolean generateTestResultAttributes) voidsetOutputDirectory(String outputDirectory) voidsetSplitClassAndPackageNames(boolean splitClassAndPackageNames) voidsetStackTraceOutput(XMLReporterConfig.StackTraceLevels stackTraceOutputMethod) voidsetTimestampFormat(String timestampFormat) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
-
TAG_CUSTOM_ATTRIBUTES
- See Also:
-
TAG_CUSTOM_ATTRIBUTE
- See Also:
-
TAG_CUSTOM_ATTRIBUTE_NAME
- See Also:
-
TAG_CUSTOM_ATTRIBUTE_VALUE
- 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.xmlfile that will be referenced in the main file with anurlattribute- 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 thegroupsattribute should be generated for atest-methodelement. 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 splitClassAndPackageNamesWhentrueit will generate the <class< element with anameand apackageattribute. Otherwise, the fully qualified name will be used for thenameattribute. -
generateDependsOnMethods
private boolean generateDependsOnMethodsIndicates whether thedepends-on-methodsattribute should be generated for atest-methodelement -
generateDependsOnGroups
private boolean generateDependsOnGroupsIndicates whether thedepends-on-groupsattribute should be generated for atest-methodelement -
generateTestResultAttributes
private boolean generateTestResultAttributesIndicates whetherITestResultattributes should be generated for eachtest-methodelement -
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()
-