public final class ClassResult extends TabulatedResult implements Comparable<ClassResult>
Modifier and Type | Method and Description |
---|---|
void |
add(CaseResult r) |
int |
compareTo(ClassResult that) |
boolean |
equals(Object obj) |
TestResult |
findCorrespondingResult(String id)
Find the test result corresponding to the one identified by
id
within 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 |
getFullDisplayName() |
String |
getFullName()
Gets the full name of this object.
|
String |
getName()
Gets the name of this object.
|
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.
|
hudson.model.Run<?,?> |
getRun() |
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() |
int |
hashCode() |
void |
tally()
Recount my children.
|
annotate, getBuildResult, getErrorDetails, getErrorStackTrace, getFailedSince, getFailedSinceRun, getFailedTests, getParentAction, getPassedTests, getResultInRun, getSkippedTests, getStderr, getStdout, isPassed, setParent, setParentAction, toPrettyString
doSubmitDescription, getApi, getDescription, getDurationString, getHistory, getId, getResultInBuild, getSearchUrl, getTestAction, getTestActions, getTestResult, getTestResultAction, getTopLevelTestResult, getTotalCount, getUrl, safe, setDescription, uniquifyName
getOwner
public hudson.model.Run<?,?> getRun()
getRun
in class TestObject
public PackageResult getParent()
TestObject
TabulatedResult.getChildren()
.getParent
in class TestObject
TestObject
.public ClassResult getPreviousResult()
TestResult
TestResult
in the previous run.getPreviousResult
in class TestResult
public TestResult findCorrespondingResult(String id)
TestObject
id
within this test result.findCorrespondingResult
in class TestObject
id
- The path to the original test resultpublic 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 hudson.model.ModelObject
public String getFullName()
TestObject
getFullName
in class TestObject
public String getFullDisplayName()
getFullDisplayName
in class TestObject
public String getRelativePathFrom(TestObject it)
getRelativePathFrom
in class TestObject
it
- Target test object.Copyright © 2016. All rights reserved.