Interface ITestEntity
- All Superinterfaces:
org.eclipse.emf.ecore.EObject
,org.eclipse.emf.common.notify.Notifier
- All Known Subinterfaces:
ITest
,ITestClass
,ITestContainer
,ITestFile
,ITestFolder
,ITestSuite
- All Known Implementing Classes:
Test
,TestClass
,TestContainer
,TestEntity
,TestFile
,TestFolder
,TestSuite
The following features are supported:
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
EMF event to indicate we should run custom code.static final String
Name for test to represent errors outside of test methods. -
Method Summary
Modifier and TypeMethodDescriptionaddError
(String message, ScriptStackTrace stackTrace) Returns the value of the 'Description' attribute.long
Returns the value of the 'Duration' attribute.long
Returns the value of the 'End Timestamp' attribute.Returns the value of the 'Entity Status' attribute.long
Returns the value of the 'Estimated Duration' attribute.org.eclipse.core.runtime.IPath
org.eclipse.emf.common.util.EList<IMetadata>
Returns the value of the 'Metadata' containment reference list.getName()
Returns the value of the 'Name' attribute.Returns the value of the 'Parent' container reference.org.eclipse.emf.common.util.EList<ITestResult>
Returns the value of the 'Results' containment reference list.org.eclipse.emf.common.util.EList<ITestResult>
getResults
(TestStatus status) getRoot()
long
Returns the value of the 'Start Timestamp' attribute.boolean
hasError()
boolean
boolean
Returns the value of the 'Terminated' attribute.void
reset()
void
run
(org.eclipse.ease.lang.unittest.execution.ITestExecutionStrategy strategy) void
setDescription
(String value) Sets the value of the 'Description
' attribute.void
setDisabled
(String message) void
setEndTimestamp
(long value) Sets the value of the 'End Timestamp
' attribute.void
setEntityStatus
(TestStatus value) Sets the value of the 'Entity Status
' attribute.void
setEstimatedDuration
(long value) Sets the value of the 'Estimated Duration
' attribute.void
Sets the value of the 'Name
' attribute.void
setParent
(ITestContainer value) Sets the value of the 'Parent
' container reference.void
setStartTimestamp
(long value) Sets the value of the 'Start Timestamp
' attribute.void
setTerminated
(boolean value) Sets the value of the 'Terminated
' attribute.Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Field Details
-
CUSTOM_CODE
static final int CUSTOM_CODEEMF event to indicate we should run custom code.- See Also:
-
GLOBAL_SCOPE_TEST
Name for test to represent errors outside of test methods.- See Also:
-
-
Method Details
-
getDescription
String getDescription()Returns the value of the 'Description' attribute.If the meaning of the 'Description' attribute isn't clear, there really should be more of a description here...
- Returns:
- the value of the 'Description' attribute.
- See Also:
-
setDescription
Sets the value of the 'Description
' attribute.- Parameters:
value
- the new value of the 'Description' attribute.- See Also:
-
getName
String getName()Returns the value of the 'Name' attribute.If the meaning of the 'Name' attribute isn't clear, there really should be more of a description here...
- Returns:
- the value of the 'Name' attribute.
- See Also:
-
setName
Sets the value of the 'Name
' attribute.- Parameters:
value
- the new value of the 'Name' attribute.- See Also:
-
getEntityStatus
TestStatus getEntityStatus()Returns the value of the 'Entity Status' attribute. The literals are from the enumerationTestStatus
.If the meaning of the 'Entity Status' attribute isn't clear, there really should be more of a description here...
- Returns:
- the value of the 'Entity Status' attribute.
- See Also:
-
setEntityStatus
Sets the value of the 'Entity Status
' attribute.- Parameters:
value
- the new value of the 'Entity Status' attribute.- See Also:
-
getEndTimestamp
long getEndTimestamp()Returns the value of the 'End Timestamp' attribute. The default value is"0"
.If the meaning of the 'End Timestamp' attribute isn't clear, there really should be more of a description here...
- Returns:
- the value of the 'End Timestamp' attribute.
- See Also:
-
setEndTimestamp
void setEndTimestamp(long value) Sets the value of the 'End Timestamp
' attribute.- Parameters:
value
- the new value of the 'End Timestamp' attribute.- See Also:
-
getStatus
TestStatus getStatus() -
getRoot
ITestContainer getRoot() -
hasError
boolean hasError() -
getTestSuite
ITestSuite getTestSuite() -
getResource
Object getResource() -
reset
void reset() -
run
void run(org.eclipse.ease.lang.unittest.execution.ITestExecutionStrategy strategy) -
getWorstResult
ITestResult getWorstResult() -
addError
-
getResults
-
getFullPath
org.eclipse.core.runtime.IPath getFullPath() -
setDisabled
-
isDisabled
boolean isDisabled() -
getStartTimestamp
long getStartTimestamp()Returns the value of the 'Start Timestamp' attribute. The default value is"0"
.If the meaning of the 'Start Timestamp' attribute isn't clear, there really should be more of a description here...
- Returns:
- the value of the 'Start Timestamp' attribute.
- See Also:
-
setStartTimestamp
void setStartTimestamp(long value) Sets the value of the 'Start Timestamp
' attribute.- Parameters:
value
- the new value of the 'Start Timestamp' attribute.- See Also:
-
getParent
ITestContainer getParent()Returns the value of the 'Parent' container reference. It is bidirectional and its opposite is 'Children
'.If the meaning of the 'Parent' container reference isn't clear, there really should be more of a description here...
- Returns:
- the value of the 'Parent' container reference.
- See Also:
-
setParent
Sets the value of the 'Parent
' container reference.- Parameters:
value
- the new value of the 'Parent' container reference.- See Also:
-
getMetadata
org.eclipse.emf.common.util.EList<IMetadata> getMetadata()Returns the value of the 'Metadata' containment reference list. The list contents are of typeIMetadata
.If the meaning of the 'Metadata' containment reference list isn't clear, there really should be more of a description here...
- Returns:
- the value of the 'Metadata' containment reference list.
- See Also:
-
getDuration
long getDuration()Returns the value of the 'Duration' attribute.If the meaning of the 'Duration' attribute isn't clear, there really should be more of a description here...
- Returns:
- the value of the 'Duration' attribute.
- See Also:
-
getResults
org.eclipse.emf.common.util.EList<ITestResult> getResults()Returns the value of the 'Results' containment reference list. The list contents are of typeITestResult
.If the meaning of the 'Results' containment reference list isn't clear, there really should be more of a description here...
- Returns:
- the value of the 'Results' containment reference list.
- See Also:
-
getEstimatedDuration
long getEstimatedDuration()Returns the value of the 'Estimated Duration' attribute. The default value is"-1"
.If the meaning of the 'Estimated Duration' attribute isn't clear, there really should be more of a description here...
- Returns:
- the value of the 'Estimated Duration' attribute.
- See Also:
-
setEstimatedDuration
void setEstimatedDuration(long value) Sets the value of the 'Estimated Duration
' attribute.- Parameters:
value
- the new value of the 'Estimated Duration' attribute.- See Also:
-
isTerminated
boolean isTerminated()Returns the value of the 'Terminated' attribute.If the meaning of the 'Terminated' attribute isn't clear, there really should be more of a description here...
- Returns:
- the value of the 'Terminated' attribute.
- See Also:
-
setTerminated
void setTerminated(boolean value) Sets the value of the 'Terminated
' attribute.- Parameters:
value
- the new value of the 'Terminated' attribute.- See Also:
-