Class PackageResult

    • Constructor Detail

      • PackageResult

        public PackageResult​(String name)
    • Method Detail

      • getDuration

        @Exported
        public float getDuration()
        Can't change this to return seconds as expected by TestObject because it has already been exported
        Overrides:
        getDuration in class hudson.tasks.test.TestResult
        Returns:
        duration in milliseconds
      • getStartTime

        public long getStartTime()
      • getEndTime

        public long getEndTime()
      • getFailCount

        @Exported(visibility=9,
                  name="fail")
        public int getFailCount()
        Overrides:
        getFailCount in class hudson.tasks.test.TestResult
      • getSkipCount

        @Exported(visibility=9,
                  name="skip")
        public int getSkipCount()
        Overrides:
        getSkipCount in class hudson.tasks.test.TestResult
      • getTotalCount

        @Exported(visibility=9)
        public int getTotalCount()
        Overrides:
        getTotalCount in class hudson.tasks.test.TestObject
      • getPassCount

        public int getPassCount()
        Overrides:
        getPassCount in class hudson.tasks.test.TestResult
      • getSortedTestMethodsByStartTime

        public List<MethodResult> getSortedTestMethodsByStartTime()
        Gets all the method results related to this package sorted by the time the methods were executed
        Returns:
        results sorted by start time
      • getAllSortedTestMethodsByStartTime

        @JavaScriptMethod
        public String getAllSortedTestMethodsByStartTime()
        Gets table row representation for all the method results associated with this package (sorted based on start time)
        Returns:
        test methods sorted by start time
      • getFirstXSortedTestMethodsByStartTime

        @JavaScriptMethod
        public String getFirstXSortedTestMethodsByStartTime()
        Gets table row representation for the first MAX_EXEC_MTHD_LIST_SIZE method results associated with this package (sorted based on start time)
        Returns:
        first page of test results sorted by start time
      • tally

        public void tally()
        Overrides:
        tally in class hudson.tasks.test.TestResult
      • sortTestMethods

        public void sortTestMethods()
        Sorts the test method results associated with this package based on the start time for method execution
      • getChildren

        @Exported(name="classs")
        public List<ClassResult> getChildren()
        Specified by:
        getChildren in class hudson.tasks.test.TabulatedResult
      • hasChildren

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

        public Object getDynamic​(String token,
                                 org.kohsuke.stapler.StaplerRequest req,
                                 org.kohsuke.stapler.StaplerResponse rsp)

        Overriding so that we can be backward compatible with shared links. We changed name for classes to be simple name instead of canonical.

        TODO: Added this in release 1.7. Delete this method in one of the next few release.

        Overrides:
        getDynamic in class BaseResult
        Parameters:
        token - fully qualified class name used to search for test results
        req - stapler request to search for test results
        rsp - stapler response to search for test results
        Returns:
        test result