public class PackageResult extends BaseResult
Modifier and Type | Field and Description |
---|---|
int |
MAX_EXEC_MTHD_LIST_SIZE |
static String |
NO_PKG_NAME |
name, owner, parent
Constructor and Description |
---|
PackageResult(String name) |
Modifier and Type | Method and Description |
---|---|
String |
getAllSortedTestMethodsByStartTime()
Gets table row representation for all the method results associated with
this package (sorted based on start time)
|
List<ClassResult> |
getChildren() |
float |
getDuration()
Can't change this to return seconds as expected by
TestObject because
it has already been exported |
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.
|
long |
getEndTime() |
int |
getFailCount() |
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) |
int |
getPassCount() |
int |
getSkipCount() |
List<MethodResult> |
getSortedTestMethodsByStartTime()
Gets all the method results related to this package sorted by the time
the methods were executed
|
long |
getStartTime() |
int |
getTotalCount() |
boolean |
hasChildren() |
void |
setOwner(hudson.model.AbstractBuild<?,?> owner) |
void |
sortTestMethods()
Sorts the test method results associated with this package based on the
start time for method execution
|
void |
tally() |
findCorrespondingResult, getAge, getDisplayName, getName, getOwner, getParent, getParentAction, getTestResultAction, getTitle, getUpUrl, setParent
annotate, getBuildResult, getErrorDetails, getErrorStackTrace, getFailedSince, getFailedSinceRun, getFailedTests, getPassedTests, getPreviousResult, getResultInBuild, getSkippedTests, getStderr, getStdout, isPassed, setParent, setParentAction, toPrettyString
doSubmitDescription, getApi, getDescription, getDurationString, getFullName, getHistory, getId, getRelativePathFrom, getSafeName, getSearchUrl, getTestAction, getTestActions, getTestResult, getTopLevelTestResult, getUrl, safe, setDescription, uniquifyName
public static final String NO_PKG_NAME
public final int MAX_EXEC_MTHD_LIST_SIZE
public PackageResult(String name)
public void setOwner(hudson.model.AbstractBuild<?,?> owner)
setOwner
in class BaseResult
@Exported public float getDuration()
TestObject
because
it has already been exportedgetDuration
in class hudson.tasks.test.TestResult
public long getStartTime()
public long getEndTime()
@Exported(visibility=9, name="fail") public int getFailCount()
getFailCount
in class hudson.tasks.test.TestResult
@Exported(visibility=9, name="skip") public int getSkipCount()
getSkipCount
in class hudson.tasks.test.TestResult
@Exported(visibility=9) public int getTotalCount()
getTotalCount
in class hudson.tasks.test.TestObject
public int getPassCount()
getPassCount
in class hudson.tasks.test.TestResult
public List<MethodResult> getSortedTestMethodsByStartTime()
@JavaScriptMethod public String getAllSortedTestMethodsByStartTime()
@JavaScriptMethod public String getFirstXSortedTestMethodsByStartTime()
MAX_EXEC_MTHD_LIST_SIZE
method results associated with this package (sorted based on start time)public void tally()
tally
in class hudson.tasks.test.TestResult
public void sortTestMethods()
@Exported(name="classs") public List<ClassResult> getChildren()
getChildren
in class hudson.tasks.test.TabulatedResult
public boolean hasChildren()
hasChildren
in class hudson.tasks.test.TabulatedResult
public Object getDynamic(String token, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
getDynamic
in class BaseResult
token
- req
- rsp
- Copyright © 2004-2016. All Rights Reserved.