public class PackageResult extends BaseResult
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_EXEC_MTHD_LIST_SIZE |
static String |
NO_PKG_NAME |
name, parent, run| 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 |
setRun(hudson.model.Run<?,?> run) |
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, getParent, getParentAction, getRun, getTestResultAction, getTitle, getUpUrl, setParentannotate, getBuildResult, getErrorDetails, getErrorStackTrace, getFailedSince, getFailedSinceRun, getFailedTests, getPassedTests, getPreviousResult, getResultInRun, getSkippedTests, getStderr, getStdout, isPassed, setParent, setParentAction, toPrettyStringdoSubmitDescription, getApi, getDescription, getDurationString, getFullDisplayName, getFullName, getHistory, getId, getRelativePathFrom, getResultInBuild, getSafeName, getSearchUrl, getTestAction, getTestActions, getTestResult, getTopLevelTestResult, getUrl, safe, setDescription, uniquifyNamepublic static final String NO_PKG_NAME
public static final int MAX_EXEC_MTHD_LIST_SIZE
public PackageResult(String name)
public void setRun(hudson.model.Run<?,?> run)
setRun in class BaseResult@Exported public float getDuration()
TestObject because
it has already been exportedgetDuration in class hudson.tasks.test.TestResultpublic 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.TestObjectpublic int getPassCount()
getPassCount in class hudson.tasks.test.TestResultpublic 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.TestResultpublic void sortTestMethods()
@Exported(name="classs") public List<ClassResult> getChildren()
getChildren in class hudson.tasks.test.TabulatedResultpublic boolean hasChildren()
hasChildren in class hudson.tasks.test.TabulatedResultpublic Object getDynamic(String token, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
getDynamic in class BaseResulttoken - req - rsp - Copyright © 2016–2018. All rights reserved.