public class MethodResult extends BaseResult
name, owner, parent
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, getOwner, getParent, getParentAction, getTestResultAction, getTitle, getUpUrl, setOwner, setParent
annotate, getBuildResult, getFailCount, getFailedSince, getFailedSinceRun, getFailedTests, getPassCount, getPassedTests, getPreviousResult, getResultInBuild, getSkipCount, getSkippedTests, getStderr, getStdout, isPassed, setParent, setParentAction, tally, toPrettyString
doSubmitDescription, getApi, getDurationString, getFullName, getHistory, getId, getRelativePathFrom, getSearchUrl, getTestAction, getTestActions, getTestResult, getTopLevelTestResult, getTotalCount, getUrl, safe, setDescription, uniquifyName
public void setTestUuid(String testUuid)
public String getParentTestName()
public 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.TestObject
public 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.TestResult
public 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
- responseIOException
public void doGraphMap(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException
req
- requestrsp
- responseIOException
public Object getCssClass()
public void setReporterOutput(String reporterOutput)
public String getReporterOutput()
public Collection<? extends hudson.tasks.test.TestResult> getChildren()
getChildren
in class hudson.tasks.test.TabulatedResult
public boolean hasChildren()
hasChildren
in class hudson.tasks.test.TabulatedResult
Copyright © 2004-2016. All Rights Reserved.