|
||||||||||
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.junit.ClassResult
public final class ClassResult
Cumulative test result of a test class.
Method Summary | |
---|---|
void |
add(CaseResult r)
|
int |
compareTo(ClassResult that)
|
TestResult |
findCorrespondingResult(String id)
Find the test result corresponding to the one identified by id>
withint this test result. |
CaseResult |
getCaseResult(String name)
|
List<CaseResult> |
getChildren()
Gets the child test result objects. |
String |
getChildTitle()
|
String |
getClassName()
|
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. |
String |
getFullName()
|
String |
getName()
Gets the name of this object. |
AbstractBuild<?,?> |
getOwner()
|
PackageResult |
getParent()
Reverse pointer of TabulatedResult.getChildren() . |
int |
getPassCount()
Gets the total number of passed tests. |
ClassResult |
getPreviousResult()
Gets the counter part of this TestResult in the previous run. |
String |
getRelativePathFrom(TestObject it)
Gets the relative path to this test case from the given object. |
String |
getSafeName()
Gets the version of TestObject.getName() that's URL-safe. |
int |
getSkipCount()
Gets the total number of skipped tests. |
String |
getTitle()
Gets the human readable title of this result object. |
boolean |
hasChildren()
|
void |
tally()
Recount my children. |
Methods inherited from class hudson.tasks.test.TestResult |
---|
annotate, getBuildResult, getErrorDetails, getErrorStackTrace, getFailedSince, getFailedSinceRun, getFailedTests, getParentAction, getPassedTests, getResultInBuild, getSkippedTests, getStderr, getStdout, isPassed, setParent, setParentAction, toPrettyString |
Methods inherited from class hudson.tasks.test.TestObject |
---|
doSubmitDescription, getApi, getDescription, getDurationString, getHistory, getId, 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 PackageResult getParent()
TestObject
TabulatedResult.getChildren()
.
getParent
in class TestObject
public ClassResult getPreviousResult()
TestResult
TestResult
in the previous run.
getPreviousResult
in class TestResult
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
@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 CaseResult getCaseResult(String name)
public Object getDynamic(String name, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
getDynamic
in class TestObject
@Exported(name="child") public List<CaseResult> getChildren()
TabulatedResult
getChildren
in class TabulatedResult
TestObject.getParent()
public boolean hasChildren()
hasChildren
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 void add(CaseResult r)
public void tally()
tally
in class TestResult
public String getClassName()
public int compareTo(ClassResult that)
compareTo
in interface Comparable<ClassResult>
public String getDisplayName()
getDisplayName
in interface ModelObject
public String getFullName()
public String getRelativePathFrom(TestObject it)
getRelativePathFrom
in class TestObject
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |