public class MethodResult extends BaseResult
name, parent, run| Constructor and Description |
|---|
MethodResult(String name,
String status,
String description,
String duration,
long startedAt,
String isConfig,
String testRunId,
String parentTestName,
String parentSuiteName,
String testInstanceName) |
| Modifier and Type | Method and Description |
|---|---|
void |
doGraph(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Creates test method execution history graph
|
void |
doGraphMap(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Creates map to make the graph click-able
|
hudson.tasks.test.TestResult |
findCorrespondingResult(String id) |
Collection<? extends hudson.tasks.test.TestResult> |
getChildren() |
String |
getClassName()
Added only to expose class name as part of method result via .../api/xxx
|
Object |
getCssClass()
Used to give different color based on test status
|
String |
getDescription() |
float |
getDuration()
Can't change this to return seconds as expected by
TestObject because
it has already been exported |
long |
getEndTime() |
String |
getErrorDetails()
If there was an error or a failure, this is the text from the message.
|
String |
getErrorStackTrace()
Added only to expose possible exception via .../api/xxx
|
MethodResultException |
getException() |
List<String> |
getGroups() |
List<String> |
getParameters() |
String |
getParentSuiteName() |
String |
getParentTestName() |
String |
getReporterOutput() |
String |
getSafeName() |
Date |
getStartedAt() |
long |
getStartTime() |
String |
getStatus() |
String |
getTestRunId() |
boolean |
hasChildren() |
boolean |
isConfig() |
void |
setException(MethodResultException exception) |
void |
setGroups(List<String> groups) |
void |
setParameters(List<String> parameters) |
void |
setReporterOutput(String reporterOutput) |
void |
setTestUuid(String testUuid) |
getAge, getDisplayName, getDynamic, getName, getParent, getParentAction, getRun, getTestResultAction, getTitle, getUpUrl, setParent, setRunannotate, getBuildResult, getFailCount, getFailedSince, getFailedSinceRun, getFailedTests, getPassCount, getPassedTests, getPreviousResult, getResultInRun, getSkipCount, getSkippedTests, getStderr, getStdout, isPassed, setParent, setParentAction, tally, toPrettyStringdoSubmitDescription, getApi, getDurationString, getFullDisplayName, getFullName, getHistory, getId, getRelativePathFrom, getResultInBuild, getSearchUrl, getTestAction, getTestActions, getTestResult, getTopLevelTestResult, getTotalCount, getUrl, safe, setDescription, uniquifyNamepublic void setTestUuid(String testUuid)
public String getParentTestName()
<test> tag that this method is part ofpublic String getParentSuiteName()
public String getTestRunId()
@Exported public Date getStartedAt()
public long getStartTime()
public long getEndTime()
public MethodResultException getException()
public void setException(MethodResultException exception)
public String getSafeName()
getSafeName in class hudson.tasks.test.TestObjectpublic hudson.tasks.test.TestResult findCorrespondingResult(String id)
findCorrespondingResult in class BaseResult@Exported public float getDuration()
TestObject because
it has already been exportedgetDuration in class hudson.tasks.test.TestResult@Exported(visibility=9) public String getStatus()
@Exported public String getDescription()
getDescription in class hudson.tasks.test.TestObject@Exported(name="exception") public String getErrorStackTrace()
getErrorStackTrace in class hudson.tasks.test.TestResultpublic String getErrorDetails()
getErrorDetails in class hudson.tasks.test.TestResult@Exported(name="className") public String getClassName()
public boolean isConfig()
public void doGraph(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException
req - requestrsp - responseIOExceptionpublic void doGraphMap(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException
req - requestrsp - responseIOExceptionpublic Object getCssClass()
public void setReporterOutput(String reporterOutput)
public String getReporterOutput()
public Collection<? extends hudson.tasks.test.TestResult> getChildren()
getChildren in class hudson.tasks.test.TabulatedResultpublic boolean hasChildren()
hasChildren in class hudson.tasks.test.TabulatedResultCopyright © 2016–2018. All rights reserved.