Class FailedReporter

    • Field Detail

      • TESTNG_FAILED_XML

        public static final java.lang.String TESTNG_FAILED_XML
        See Also:
        Constant Field Values
      • m_xmlSuite

        private XmlSuite m_xmlSuite
    • Constructor Detail

      • FailedReporter

        public FailedReporter()
      • FailedReporter

        public FailedReporter​(XmlSuite xmlSuite)
    • Method Detail

      • generateReport

        public void generateReport​(java.util.List<XmlSuite> xmlSuites,
                                   java.util.List<ISuite> suites,
                                   java.lang.String outputDirectory)
        Description copied from interface: IReporter
        Generate a report for the given suites into the specified output directory.
        Specified by:
        generateReport in interface IReporter
        Parameters:
        xmlSuites - The list of XmlSuite
        suites - The list of ISuite
        outputDirectory - The output directory
      • generateFailureSuite

        protected void generateFailureSuite​(XmlSuite xmlSuite,
                                            ISuite suite,
                                            java.lang.String outputDir)
      • getAllApplicableConfigs

        private static void getAllApplicableConfigs​(java.util.Set<ITestNGMethod> configs,
                                                    ITestClass iTestClass)
      • createXmlClasses

        private java.util.List<XmlClass> createXmlClasses​(java.util.List<ITestNGMethod> methods,
                                                          XmlTest srcXmlTest)
        Parameters:
        methods - The methods we want to represent
        srcXmlTest - The XmlTest object that represents the source.
        Returns:
        A list of XmlClass objects (each representing a tag) based on the parameter methods
      • findMethodLocalParameters

        private static java.util.Map<java.lang.String,​java.lang.String> findMethodLocalParameters​(XmlTest srcXmlTest,
                                                                                                        ITestNGMethod method)
        Get local parameters of one include method from origin test xml.
        Parameters:
        srcXmlTest - The XmlTest object that represents the source.
        method - the method we want to find its parameters
        Returns:
        local parameters belong to one test method.