|
Eclipse JDT Release 3.7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITestElement
Common protocol for test elements.
This set consists of ITestCaseElement
, ITestSuiteElement
and ITestRunSession
This interface is not intended to be implemented by clients.
Nested Class Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Method Detail |
---|
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 completed
ITestElement.ProgressState.NOT_STARTED
, ITestElement.ProgressState.RUNNING
,
ITestElement.ProgressState.STOPPED
or ITestElement.ProgressState.COMPLETED
.ITestElement.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
|
Eclipse JDT Release 3.7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) 2000, 2011 IBM Corporation and others. All rights reserved.