|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.model.AbstractModelObject
hudson.tasks.junit.TestObject
hudson.tasks.test.TestObject
hudson.tasks.test.TestResult
hudson.tasks.test.TabulatedResult
hudson.plugins.testng.results.BaseResult
hudson.plugins.testng.results.MethodResult
public class MethodResult
Handles result pertaining to a single test method
| Field Summary |
|---|
| Fields inherited from class hudson.plugins.testng.results.BaseResult |
|---|
name, owner, parent |
| Constructor Summary | |
|---|---|
MethodResult(String name,
String status,
String description,
String duration,
Date startedAt,
String isConfig,
String testRunId,
String parentTestName,
String parentSuiteName,
String testInstanceName)
|
|
| Method Summary | |
|---|---|
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 |
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()
|
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)
|
| Methods inherited from class hudson.plugins.testng.results.BaseResult |
|---|
getAge, getDisplayName, getDynamic, getName, getOwner, getParent, getTitle, getUpUrl, setOwner, setParent |
| Methods inherited from class hudson.tasks.test.TabulatedResult |
|---|
getChildTitle |
| Methods inherited from class hudson.tasks.test.TestResult |
|---|
annotate, getBuildResult, getFailCount, getFailedSince, getFailedSinceRun, getFailedTests, getParentAction, getPassCount, getPassedTests, getPreviousResult, getResultInBuild, getSkipCount, getSkippedTests, getStderr, getStdout, isPassed, setParent, setParentAction, tally, toPrettyString |
| Methods inherited from class hudson.tasks.test.TestObject |
|---|
doSubmitDescription, getApi, getDurationString, getHistory, getId, getRelativePathFrom, getSearchUrl, getTestAction, getTestActions, getTestResult, getTestResultAction, getTopLevelTestResult, getTotalCount, getUrl, safe, setDescription, uniquifyName |
| Methods inherited from class hudson.model.AbstractModelObject |
|---|
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MethodResult(String name,
String status,
String description,
String duration,
Date startedAt,
String isConfig,
String testRunId,
String parentTestName,
String parentSuiteName,
String testInstanceName)
| Method Detail |
|---|
public void setTestUuid(String testUuid)
public String getParentTestName()
public String getParentSuiteName()
public String getTestRunId()
@Exported public Date getStartedAt()
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 exported
getDuration in class hudson.tasks.test.TestResult@Exported(visibility=9) public String getStatus()
@Exported public String getDescription()
getDescription in class hudson.tasks.test.TestObject@Exported public List<String> getGroups()
@Exported public List<String> getParameters()
@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 void setGroups(List<String> groups)
public void setParameters(List<String> parameters)
public boolean isConfig()
public void doGraph(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException
req - requestrsp - response
IOException
public void doGraphMap(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException
req - requestrsp - response
IOExceptionpublic 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.TabulatedResult
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||