|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecthudson.model.AbstractModelObject
hudson.tasks.junit.TestObject
hudson.tasks.test.TestObject
hudson.tasks.test.TestResult
hudson.tasks.test.TabulatedResult
hudson.tasks.test.MetaTabulatedResult
hudson.tasks.junit.PackageResult
public final class PackageResult
Cumulative test result for a package.
Method Summary | |
---|---|
int |
compareTo(PackageResult that)
|
TestResult |
findCorrespondingResult(String id)
Find the test result corresponding to the one identified by id>
withint this test result. |
Collection<ClassResult> |
getChildren()
Gets the child test result objects. |
String |
getChildTitle()
|
ClassResult |
getClassResult(String name)
|
String |
getDisplayName()
|
float |
getDuration()
Time it took to run this test. |
Object |
getDynamic(String name,
org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
|
int |
getFailCount()
Gets the total number of failed tests. |
List<CaseResult> |
getFailedTests()
Returns a list of the failed cases, in no particular sort order |
List<CaseResult> |
getFailedTestsSortedByAge()
Returns a list of the failed cases, sorted by age. |
String |
getName()
Gets the name of this object. |
AbstractBuild<?,?> |
getOwner()
|
TestResult |
getParent()
Reverse pointer of TabulatedResult.getChildren() . |
int |
getPassCount()
Gets the total number of passed tests. |
Collection<? extends TestResult> |
getPassedTests()
Gets the "children" of this test result that passed |
String |
getSafeName()
Gets the version of TestObject.getName() that's URL-safe. |
int |
getSkipCount()
Gets the total number of skipped tests. |
Collection<? extends TestResult> |
getSkippedTests()
Gets the "children" of this test result that were skipped |
String |
getTitle()
Gets the human readable title of this result object. |
boolean |
hasChildren()
Whether this test result has children. |
boolean |
isPassed()
|
void |
tally()
Recount my children |
Methods inherited from class hudson.tasks.test.TestResult |
---|
annotate, getBuildResult, getErrorDetails, getErrorStackTrace, getFailedSince, getFailedSinceRun, getParentAction, getPreviousResult, getResultInBuild, getStderr, getStdout, setParent, setParentAction, toPrettyString |
Methods inherited from class hudson.tasks.test.TestObject |
---|
doSubmitDescription, getApi, getDescription, getDurationString, getHistory, getId, getRelativePathFrom, getSearchUrl, getTestAction, getTestActions, getTestResult, getTestResultAction, 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 |
---|
public AbstractBuild<?,?> getOwner()
getOwner
in class TestObject
public TestResult getParent()
TestObject
TabulatedResult.getChildren()
.
getParent
in class TestObject
@Exported(visibility=999) public String getName()
TestObject
getName
in class TestObject
public String getSafeName()
TestObject
TestObject.getName()
that's URL-safe.
getSafeName
in class TestObject
public TestResult findCorrespondingResult(String id)
TestObject
id>
withint this test result.
findCorrespondingResult
in class TestObject
id
- The path to the original test result
public String getTitle()
TestResult
getTitle
in class TestResult
public String getChildTitle()
getChildTitle
in class TabulatedResult
public float getDuration()
TestResult
getDuration
in class TestResult
@Exported public int getPassCount()
TestResult
getPassCount
in class TestResult
@Exported public int getFailCount()
TestResult
getFailCount
in class TestResult
@Exported public int getSkipCount()
TestResult
getSkipCount
in class TestResult
public Object getDynamic(String name, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
getDynamic
in class TestObject
public ClassResult getClassResult(String name)
@Exported(name="child") public Collection<ClassResult> getChildren()
TabulatedResult
getChildren
in class TabulatedResult
TestObject.getParent()
public boolean hasChildren()
hasChildren
in class TabulatedResult
public List<CaseResult> getFailedTests()
getFailedTests
in class MetaTabulatedResult
public List<CaseResult> getFailedTestsSortedByAge()
public Collection<? extends TestResult> getPassedTests()
getPassedTests
in class TestResult
public Collection<? extends TestResult> getSkippedTests()
getSkippedTests
in class TestResult
public boolean isPassed()
isPassed
in class TestResult
public void tally()
tally
in class TestResult
public int compareTo(PackageResult that)
compareTo
in interface Comparable<PackageResult>
public String getDisplayName()
getDisplayName
in interface ModelObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |