com.cwctravel.hudson.plugins.suitegroupedtests.junit
Class PackageResult

java.lang.Object
  extended by hudson.model.AbstractModelObject
      extended by hudson.tasks.junit.TestObject
          extended by hudson.tasks.test.TestObject
              extended by hudson.tasks.test.TestResult
                  extended by hudson.tasks.test.TabulatedResult
                      extended by hudson.tasks.test.MetaTabulatedResult
                          extended by com.cwctravel.hudson.plugins.suitegroupedtests.junit.PackageResult
All Implemented Interfaces:
hudson.model.ModelObject, hudson.search.SearchableModelObject, hudson.search.SearchItem, java.io.Serializable, java.lang.Comparable<PackageResult>

public final class PackageResult
extends hudson.tasks.test.MetaTabulatedResult
implements java.lang.Comparable<PackageResult>

Cumulative test result for a package.

Author:
Kohsuke Kawaguchi
See Also:
Serialized Form

Method Summary
 int compareTo(PackageResult that)
           
 hudson.tasks.test.TestResult findCorrespondingResult(java.lang.String id)
           
 java.util.Collection<ClassResult> getChildren()
           
 java.lang.String getChildTitle()
           
 ClassResult getClassResult(java.lang.String name)
           
 java.lang.String getDisplayName()
           
 float getDuration()
           
 java.lang.Object getDynamic(java.lang.String name, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
           
 int getFailCount()
           
 int getFailDiff()
           
 int getFailedSince()
           
 hudson.model.Run<?,?> getFailedSinceRun()
           
 java.util.List<CaseResult> getFailedTests()
           
 java.util.List<CaseResult> getFailedTestsSortedByAge()
          Returns a list of the failed cases, sorted by age.
 hudson.tasks.junit.History getHistory()
           
 JUnitMetricsInfo getMetrics()
           
 java.lang.String getName()
           
 hudson.model.AbstractBuild<?,?> getOwner()
           
 hudson.tasks.test.TestObject getParent()
           
 int getPassCount()
           
 int getPassDiff()
           
 java.util.List<CaseResult> getPassedTests()
           
 PackageResult getPreviousResult()
           
 java.lang.String getRootUrl(java.lang.String urlName)
           
 java.lang.String getRootUrl(hudson.tasks.junit.TestAction testAction)
           
 java.lang.String getSafeName()
           
 int getSkipCount()
           
 int getSkipDiff()
           
 java.util.List<CaseResult> getSkippedTests()
           
 JUnitSummaryInfo getSummary()
           
 java.util.List<hudson.tasks.junit.TestAction> getTestActions()
           
 SuiteGroupResultAction getTestResultAction()
           
 java.lang.String getTitle()
           
 int getTotalDiff()
           
 boolean hasChildren()
          Whether this test result has children.
 boolean isPassed()
           
 
Methods inherited from class hudson.tasks.test.TestResult
annotate, getBuildResult, getErrorDetails, getErrorStackTrace, getParentAction, getResultInBuild, getStderr, getStdout, setParent, setParentAction, tally, toPrettyString
 
Methods inherited from class hudson.tasks.test.TestObject
doSubmitDescription, getApi, getDescription, getDurationString, getId, getRelativePathFrom, getSearchUrl, getTestAction, getTestResult, getTopLevelTestResult, getTotalCount, getUrl, safe, setDescription, uniquifyName
 
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getOwner

public hudson.model.AbstractBuild<?,?> getOwner()
Specified by:
getOwner in class hudson.tasks.test.TestObject

getParent

public hudson.tasks.test.TestObject getParent()
Overrides:
getParent in class hudson.tasks.test.TestObject

getTestResultAction

public SuiteGroupResultAction getTestResultAction()
Overrides:
getTestResultAction in class hudson.tasks.test.TestObject

getTestActions

public java.util.List<hudson.tasks.junit.TestAction> getTestActions()
Overrides:
getTestActions in class hudson.tasks.test.TestObject

getName

@Exported(visibility=999)
public java.lang.String getName()
Overrides:
getName in class hudson.tasks.test.TestObject

getSafeName

public java.lang.String getSafeName()
Overrides:
getSafeName in class hudson.tasks.test.TestObject

findCorrespondingResult

public hudson.tasks.test.TestResult findCorrespondingResult(java.lang.String id)
Specified by:
findCorrespondingResult in class hudson.tasks.test.TestObject

getTitle

public java.lang.String getTitle()
Overrides:
getTitle in class hudson.tasks.test.TestResult

getChildTitle

public java.lang.String getChildTitle()
Overrides:
getChildTitle in class hudson.tasks.test.TabulatedResult

getDuration

public float getDuration()
Overrides:
getDuration in class hudson.tasks.test.TestResult

getPassCount

@Exported
public int getPassCount()
Overrides:
getPassCount in class hudson.tasks.test.TestResult

getFailCount

@Exported
public int getFailCount()
Overrides:
getFailCount in class hudson.tasks.test.TestResult

getSkipCount

@Exported
public int getSkipCount()
Overrides:
getSkipCount in class hudson.tasks.test.TestResult

getPassDiff

public int getPassDiff()

getSkipDiff

public int getSkipDiff()

getFailDiff

public int getFailDiff()

getTotalDiff

public int getTotalDiff()

getSummary

public JUnitSummaryInfo getSummary()

getMetrics

public JUnitMetricsInfo getMetrics()

getPreviousResult

public PackageResult getPreviousResult()
Overrides:
getPreviousResult in class hudson.tasks.test.TestResult

getDynamic

public java.lang.Object getDynamic(java.lang.String name,
                                   org.kohsuke.stapler.StaplerRequest req,
                                   org.kohsuke.stapler.StaplerResponse rsp)
Overrides:
getDynamic in class hudson.tasks.test.TestObject

getClassResult

public ClassResult getClassResult(java.lang.String name)

getChildren

@Exported(name="child")
public java.util.Collection<ClassResult> getChildren()
Specified by:
getChildren in class hudson.tasks.test.TabulatedResult

hasChildren

public boolean hasChildren()
Whether this test result has children.

Specified by:
hasChildren in class hudson.tasks.test.TabulatedResult

getFailedTests

public java.util.List<CaseResult> getFailedTests()
Specified by:
getFailedTests in class hudson.tasks.test.MetaTabulatedResult

getSkippedTests

public java.util.List<CaseResult> getSkippedTests()
Overrides:
getSkippedTests in class hudson.tasks.test.TestResult

getPassedTests

public java.util.List<CaseResult> getPassedTests()
Overrides:
getPassedTests in class hudson.tasks.test.TestResult

getFailedTestsSortedByAge

public java.util.List<CaseResult> getFailedTestsSortedByAge()
Returns a list of the failed cases, sorted by age.

Returns:

getFailedSince

public int getFailedSince()
Overrides:
getFailedSince in class hudson.tasks.test.TestResult

getFailedSinceRun

public hudson.model.Run<?,?> getFailedSinceRun()
Overrides:
getFailedSinceRun in class hudson.tasks.test.TestResult

isPassed

public boolean isPassed()
Overrides:
isPassed in class hudson.tasks.test.TestResult
Returns:
true if every test was not skipped and every test did not fail, false otherwise.

compareTo

public int compareTo(PackageResult that)
Specified by:
compareTo in interface java.lang.Comparable<PackageResult>

getDisplayName

public java.lang.String getDisplayName()
Specified by:
getDisplayName in interface hudson.model.ModelObject

getRootUrl

public java.lang.String getRootUrl(java.lang.String urlName)

getRootUrl

public java.lang.String getRootUrl(hudson.tasks.junit.TestAction testAction)

getHistory

public hudson.tasks.junit.History getHistory()
Overrides:
getHistory in class hudson.tasks.test.TestObject


Copyright © 2004-2012. All Rights Reserved.