public class SimpleCaseResult extends TestResult
Modifier and Type | Field and Description |
---|---|
protected float |
duration |
static List<TestAction> |
EMPTY_ACTION_LIST
An empty list of actions, useful for tests
|
protected List<SimpleCaseResult> |
listOnlyContainingThisObject |
protected AbstractTestResultAction |
parentAction |
Constructor and Description |
---|
SimpleCaseResult() |
SimpleCaseResult(float duration) |
Modifier and Type | Method and Description |
---|---|
TestResult |
findCorrespondingResult(String id)
Find the test result corresponding to the one identified by
id
within this test result. |
String |
getDisplayName() |
float |
getDuration()
Time took to run this test.
|
int |
getFailCount()
Gets the total number of failed tests.
|
Collection<? extends TestResult> |
getFailedTests()
Gets the "children" of this test result that failed
|
String |
getName()
Gets the name of this object.
|
TestObject |
getParent()
Reverse pointer of
TabulatedResult.getChildren() . |
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
|
hudson.model.Run<?,?> |
getRun() |
int |
getSkipCount()
Gets the total number of skipped tests.
|
Collection<? extends TestResult> |
getSkippedTests()
Gets the "children" of this test result that were skipped
|
List<TestAction> |
getTestActions()
Get a list of all TestActions associated with this TestObject.
|
String |
getTitle()
Gets the human readable title of this result object.
|
boolean |
isFailed()
Returns true iff this test failed.
|
boolean |
isPassed()
Let's pretend that our trivial test result always passes.
|
boolean |
isSkipped()
Tests whether the test was skipped or not.
|
void |
setParentAction(AbstractTestResultAction parentAction)
Sets the parent action, which means the action that binds
this particular case result to a build.
|
annotate, getBuildResult, getErrorDetails, getErrorStackTrace, getFailedSince, getFailedSinceRun, getPreviousResult, getResultInRun, getStderr, getStdout, setParent, tally, toPrettyString
doSubmitDescription, getApi, getDescription, getDurationString, getDynamic, getFullDisplayName, getFullName, getHistory, getId, getRelativePathFrom, getResultInBuild, getSafeName, getSearchUrl, getTestAction, getTestResult, getTestResultAction, getTopLevelTestResult, getTotalCount, getUrl, safe, setDescription, uniquifyName
getOwner
protected AbstractTestResultAction parentAction
protected final List<SimpleCaseResult> listOnlyContainingThisObject
protected float duration
public static final List<TestAction> EMPTY_ACTION_LIST
public SimpleCaseResult(float duration)
public SimpleCaseResult()
public void setParentAction(AbstractTestResultAction parentAction)
setParentAction
in class TestResult
parentAction
- public AbstractTestResultAction getParentAction()
TestResult
getParentAction
in class TestResult
public TestObject getParent()
TestObject
TabulatedResult.getChildren()
.getParent
in class TestObject
TestObject
.public TestResult findCorrespondingResult(String id)
TestObject
id
within this test result.findCorrespondingResult
in class TestObject
id
- The path to the original test resultpublic Collection<? extends TestResult> getFailedTests()
getFailedTests
in class TestResult
public Collection<? extends TestResult> getPassedTests()
getPassedTests
in class TestResult
public Collection<? extends TestResult> getSkippedTests()
getSkippedTests
in class TestResult
public boolean isPassed()
isPassed
in class TestResult
public boolean isSkipped()
public boolean isFailed()
public float getDuration()
getDuration
in class TestResult
public String getName()
getName
in class TestObject
public int getPassCount()
getPassCount
in class TestResult
public int getFailCount()
getFailCount
in class TestResult
public int getSkipCount()
getSkipCount
in class TestResult
public String getTitle()
getTitle
in class TestResult
public String getDisplayName()
public hudson.model.Run<?,?> getRun()
getRun
in class TestObject
public List<TestAction> getTestActions()
TestObject
getTestActions
in class TestObject
Copyright © 2016–2022. All rights reserved.