public interface ITestElement
ITestCaseElement
, ITestSuiteElement
and ITestRunSession
This interface is not intended to be implemented by clients.
Modifier and Type | Interface and Description |
---|---|
static class |
ITestElement.FailureTrace
A failure trace of a test.
|
static class |
ITestElement.ProgressState
Running states of a test.
|
static class |
ITestElement.Result
Result states of a test.
|
Modifier and Type | Method and Description |
---|---|
double |
getElapsedTimeInSeconds()
Returns the estimated total time elapsed in seconds while executing this test element.
|
ITestElement.FailureTrace |
getFailureTrace()
Returns the failure trace of this test element or
null if the test has not resulted in an error or failure. |
ITestElementContainer |
getParentContainer()
Returns the parent test element container or
null if the test element is the test run session. |
ITestElement.ProgressState |
getProgressState()
Returns the progress state of this test element.
|
ITestElement.Result |
getTestResult(boolean includeChildren)
Returns the result of the test element.
|
ITestRunSession |
getTestRunSession()
Returns the test run session.
|
ITestElement.ProgressState getProgressState()
ITestElement.ProgressState.NOT_STARTED
: the test has not yet startedITestElement.ProgressState.RUNNING
: the test is currently runningITestElement.ProgressState.STOPPED
: the test has stopped before being completedITestElement.ProgressState.COMPLETED
: the test (and all its children) has completedITestElement.Result getTestResult(boolean includeChildren)
ITestElement.Result.UNDEFINED
: the result is not yet evaluatedITestElement.Result.OK
: the test has succeededITestElement.Result.ERROR
: the test has returned an errorITestElement.Result.FAILURE
: the test has returned an failureITestElement.Result.IGNORED
: the test has been ignored (skipped)includeChildren
- if true
, the returned result is the combined
result of the test and its children (if it has any). If false
,
only the test's result is returned.ITestElement.Result.UNDEFINED
, ITestElement.Result.OK
, ITestElement.Result.ERROR
,
ITestElement.Result.FAILURE
or ITestElement.Result.IGNORED
. Clients should also prepare for other, new values.ITestElement.FailureTrace getFailureTrace()
null
if the test has not resulted in an error or failure.null
.ITestElementContainer getParentContainer()
null
if the test element is the test run session.ITestRunSession getTestRunSession()
double getElapsedTimeInSeconds()
Note: The elapsed time is only valid for
ITestElement.ProgressState.COMPLETED
test elements.
Double.NaN
if
the state of the element is not ITestElement.ProgressState.COMPLETED
Copyright (c) 2000, 2015 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.