Class TestNGResult

    • Constructor Detail

      • TestNGResult

        @Deprecated
        public TestNGResult​(String name)
        Deprecated.
        don't use this constructor
        Parameters:
        name - input name is ignored
      • TestNGResult

        public TestNGResult()
    • Method Detail

      • getFailedTests

        public List<MethodResult> getFailedTests()
        Overrides:
        getFailedTests in class hudson.tasks.test.TestResult
      • getPassedTests

        public List<MethodResult> getPassedTests()
        Overrides:
        getPassedTests in class hudson.tasks.test.TestResult
      • getSkippedTests

        public List<MethodResult> getSkippedTests()
        Overrides:
        getSkippedTests in class hudson.tasks.test.TestResult
      • getPassCount

        public int getPassCount()
        Gets the total number of passed tests.
        Overrides:
        getPassCount in class hudson.tasks.test.TestResult
      • getFailCount

        @Exported
        public int getFailCount()
        Gets the total number of failed tests.
        Overrides:
        getFailCount in class hudson.tasks.test.TestResult
      • getSkipCount

        @Exported
        public int getSkipCount()
        Gets the total number of skipped tests.
        Overrides:
        getSkipCount in class hudson.tasks.test.TestResult
      • getTotalCount

        @Exported(name="total")
        public int getTotalCount()
        Overrides:
        getTotalCount in class hudson.tasks.test.TestObject
      • getDuration

        @Exported
        public float getDuration()
        Overrides:
        getDuration in class hudson.tasks.test.TestResult
      • getFailedConfigCount

        @Exported(name="fail-config")
        public int getFailedConfigCount()
      • getSkippedConfigCount

        @Exported(name="skip-config")
        public int getSkippedConfigCount()
      • getPackageNames

        public Set<String> getPackageNames()
      • addUniqueTests

        public void addUniqueTests​(List<TestNGTestResult> testList)
        Adds only the <test>s that already aren't part of the list.
        Parameters:
        testList - tests to be added to the list without duplicating existing list content
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • tally

        public void tally()
        Updates the calculated fields
        Overrides:
        tally in class hudson.tasks.test.TestResult
      • getChildren

        public Collection<PackageResult> getChildren()
        Specified by:
        getChildren in class hudson.tasks.test.TabulatedResult
      • hasChildren

        public boolean hasChildren()
        Specified by:
        hasChildren in class hudson.tasks.test.TabulatedResult