public abstract class TestResult extends TestObject
Constructor and Description |
---|
TestResult() |
Modifier and Type | Method and Description |
---|---|
String |
annotate(String text)
Annotate some text -- what does this do?
|
hudson.model.Result |
getBuildResult()
Mark a build as unstable if there are failures.
|
float |
getDuration()
Time it took to run this test.
|
String |
getErrorDetails()
If there was an error or a failure, this is the text from the message.
|
String |
getErrorStackTrace()
If there was an error or a failure, this is the stack trace, or otherwise null.
|
int |
getFailCount()
Gets the total number of failed tests.
|
int |
getFailedSince()
If this test failed, then return the build number
when this test started failing.
|
hudson.model.Run<?,?> |
getFailedSinceRun()
If this test failed, then return the run
when this test started failing.
|
Collection<? extends TestResult> |
getFailedTests()
Gets the "children" of this test result that failed
|
AbstractTestResultAction |
getParentAction()
Returns the action that points to the top level test result includes
this test result.
|
int |
getPassCount()
Gets the total number of passed tests.
|
Collection<? extends TestResult> |
getPassedTests()
Gets the "children" of this test result that passed
|
TestResult |
getPreviousResult()
Gets the counter part of this
TestResult in the previous run. |
TestResult |
getResultInRun(hudson.model.Run<?,?> build)
Gets the counter part of this
TestResult in the specified run. |
int |
getSkipCount()
Gets the total number of skipped tests.
|
Collection<? extends TestResult> |
getSkippedTests()
Gets the "children" of this test result that were skipped
|
String |
getStderr()
The stderr of this test.
|
String |
getStdout()
The stdout of this test.
|
String |
getTitle()
Gets the human readable title of this result object.
|
boolean |
isPassed() |
void |
setParent(TestObject parent)
Sets the parent test result
|
void |
setParentAction(AbstractTestResultAction action)
If the concept of a parent action is important to a subclass, then it should
provide a non-noop implementation of this method.
|
void |
tally()
Request that the result update its counts of its children.
|
String |
toPrettyString() |
doSubmitDescription, findCorrespondingResult, getApi, getDescription, getDurationString, getDynamic, getFullDisplayName, getFullName, getHistory, getId, getName, getParent, getRelativePathFrom, getResultInBuild, getSafeName, getSearchUrl, getTestAction, getTestActions, getTestResult, getTestResultAction, getTopLevelTestResult, getTotalCount, getUrl, safe, setDescription, uniquifyName
getOwner, getRun
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
public void setParentAction(AbstractTestResultAction action)
action
- Action that points to the top level test result.public AbstractTestResultAction getParentAction()
public void tally()
public void setParent(TestObject parent)
parent
- Parent test result.public String getTitle()
public hudson.model.Result getBuildResult()
Result.UNSTABLE
if there are test failures, null otherwise.public float getDuration()
getDuration
in class TestObject
public int getPassCount()
getPassCount
in class TestObject
public int getFailCount()
getFailCount
in class TestObject
public int getSkipCount()
getSkipCount
in class TestObject
public TestResult getPreviousResult()
TestResult
in the previous run.getPreviousResult
in class TestObject
public TestResult getResultInRun(hudson.model.Run<?,?> build)
TestResult
in the specified run.getResultInRun
in class TestObject
build
- The run for which the run is requested.public Collection<? extends TestResult> getFailedTests()
public Collection<? extends TestResult> getPassedTests()
public Collection<? extends TestResult> getSkippedTests()
public int getFailedSince()
public hudson.model.Run<?,?> getFailedSinceRun()
public String getStdout()
public String getStderr()
public String getErrorStackTrace()
public String getErrorDetails()
public boolean isPassed()
public String toPrettyString()
Copyright © 2016–2022. All rights reserved.