Package org.eclipse.unittest.model
Interface ITestElement
- All Known Subinterfaces:
- ITestCaseElement,- ITestRunSession,- ITestSuiteElement
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.
- Restriction:
- This interface is not intended to be implemented by clients.
- Restriction:
- This interface is not intended to be extended by clients.
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic final classA failure trace of a test.static enumResult states of a test.
- 
Method SummaryModifier and TypeMethodDescriptiongetData()Returns some runner-specific data, such as complete test description or other data allowing further operations not covered by the generic test model.Returns the display name of the test.Returns the estimated total time elapsed while executing this test element.Returns the failure trace of this test element ornullif the test has not resulted in an error or failure.getId()Returns an identifier of the test elementReturns parent test suite element of this test elementReturns the name of the test elementReturns the test run session.
- 
Method Details- 
getIdString getId()Returns an identifier of the test element- Returns:
- a test element identifier
 
- 
getDataString getData()Returns some runner-specific data, such as complete test description or other data allowing further operations not covered by the generic test model.- Returns:
- some runner-specific data, such as complete test description or other data allowing further operations not covered by the generic test model.
 
- 
getTestRunSessionITestRunSession getTestRunSession()Returns the test run session.- Returns:
- the parent test run session.
 
- 
getDurationDuration getDuration()Returns the estimated total time elapsed while executing this test element. The total time for a test suite includes the time used for all tests in that suite. The total time for a test session includes the time used for all tests in that session.Note: The elapsed time is only valid for ProgressState.COMPLETEDtest elements.- Returns:
- total execution duration for the test element, or nullif the state of the element is notProgressState.COMPLETED
 
- 
getFailureTraceITestElement.FailureTrace getFailureTrace()Returns the failure trace of this test element ornullif the test has not resulted in an error or failure.- Returns:
- the failure trace of this test or null.
 
- 
getParentITestSuiteElement getParent()Returns parent test suite element of this test element- Returns:
- a parent test suite element
 
- 
getTestNameString getTestName()Returns the name of the test element- Returns:
- a name of test element
 
- 
getDisplayNameString getDisplayName()Returns the display name of the test. Can benull. In that case, usegetTestName().- Returns:
- the test display name, can be null
 
 
-