Class XMLReporterConfig

    • Field Detail

      • TAG_SHORT_STACKTRACE

        public static final java.lang.String TAG_SHORT_STACKTRACE
        See Also:
        Constant Field Values
      • TAG_FULL_STACKTRACE

        public static final java.lang.String TAG_FULL_STACKTRACE
        See Also:
        Constant Field Values
      • TAG_TESTNG_RESULTS

        public static final java.lang.String TAG_TESTNG_RESULTS
        See Also:
        Constant Field Values
      • TAG_REPORTER_OUTPUT

        public static final java.lang.String TAG_REPORTER_OUTPUT
        See Also:
        Constant Field Values
      • TAG_CUSTOM_ATTRIBUTES

        public static final java.lang.String TAG_CUSTOM_ATTRIBUTES
        See Also:
        Constant Field Values
      • TAG_CUSTOM_ATTRIBUTE

        public static final java.lang.String TAG_CUSTOM_ATTRIBUTE
        See Also:
        Constant Field Values
      • TAG_CUSTOM_ATTRIBUTE_NAME

        public static final java.lang.String TAG_CUSTOM_ATTRIBUTE_NAME
        See Also:
        Constant Field Values
      • TAG_CUSTOM_ATTRIBUTE_VALUE

        public static final java.lang.String TAG_CUSTOM_ATTRIBUTE_VALUE
        See Also:
        Constant Field Values
      • ATTR_TEST_INSTANCE_NAME

        public static final java.lang.String ATTR_TEST_INSTANCE_NAME
        See Also:
        Constant Field Values
      • ATTR_FINISHED_AT

        public static final java.lang.String ATTR_FINISHED_AT
        See Also:
        Constant Field Values
      • ATTR_DURATION_MS

        public static final java.lang.String ATTR_DURATION_MS
        See Also:
        Constant Field Values
      • ATTR_DEPENDS_ON_METHODS

        public static final java.lang.String ATTR_DEPENDS_ON_METHODS
        See Also:
        Constant Field Values
      • ATTR_DEPENDS_ON_GROUPS

        public static final java.lang.String ATTR_DEPENDS_ON_GROUPS
        See Also:
        Constant Field Values
      • ATTR_DATA_PROVIDER

        public static final java.lang.String ATTR_DATA_PROVIDER
        See Also:
        Constant Field Values
      • STATUSES

        private static final java.util.Map<java.lang.String,​java.lang.Integer> STATUSES
      • 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
      • fileFragmentationLevel

        private int fileFragmentationLevel
        Indicates 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

        private XMLReporterConfig.StackTraceLevels stackTraceOutputMethod
        Stack trace output method for the failed tests using one of the STACKTRACE_* constants.
      • outputDirectory

        private java.lang.String 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 generateGroupsAttribute
        Indicates whether the groups attribute should be generated for a test-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 splitClassAndPackageNames
        When true it will generate the <class< element with a name and a package attribute. Otherwise, the fully qualified name will be used for the name attribute.
      • generateDependsOnMethods

        private boolean generateDependsOnMethods
        Indicates whether the depends-on-methods attribute should be generated for a test-method element
      • generateDependsOnGroups

        private boolean generateDependsOnGroups
        Indicates whether the depends-on-groups attribute should be generated for a test-method element
      • generateTestResultAttributes

        private boolean generateTestResultAttributes
        Indicates whether ITestResult attributes should be generated for each test-method element
      • timestampFormat

        private java.lang.String timestampFormat
        The output format for timestamps
    • Constructor Detail

      • XMLReporterConfig

        public XMLReporterConfig()
    • Method Detail

      • getStatus

        public static java.lang.Integer getStatus​(java.lang.String status)
      • getFileFragmentationLevel

        public int getFileFragmentationLevel()
      • setFileFragmentationLevel

        public void setFileFragmentationLevel​(int fileFragmentationLevel)
      • getOutputDirectory

        public java.lang.String getOutputDirectory()
      • setOutputDirectory

        public void setOutputDirectory​(java.lang.String outputDirectory)
      • isGenerateGroupsAttribute

        public boolean isGenerateGroupsAttribute()
      • setGenerateGroupsAttribute

        public void setGenerateGroupsAttribute​(boolean generateGroupsAttribute)
      • isSplitClassAndPackageNames

        public boolean isSplitClassAndPackageNames()
      • setSplitClassAndPackageNames

        public void setSplitClassAndPackageNames​(boolean splitClassAndPackageNames)
      • getTimestampFormat

        public java.lang.String getTimestampFormat()
      • setTimestampFormat

        public void setTimestampFormat​(java.lang.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()