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

public interface ITestEntity extends org.eclipse.emf.ecore.EObject
A representation of the model object 'Test Entity'.

The following features are supported:

See Also:
  • Field Details

    • CUSTOM_CODE

      static final int CUSTOM_CODE
      EMF event to indicate we should run custom code.
      See Also:
    • GLOBAL_SCOPE_TEST

      static final String 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

      void setDescription(String value)
      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

      void setName(String value)
      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 enumeration TestStatus.

      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

      void setEntityStatus(TestStatus value)
      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

      ITestResult addError(String message, ScriptStackTrace stackTrace)
    • getResults

      org.eclipse.emf.common.util.EList<ITestResult> getResults(TestStatus status)
    • getFullPath

      org.eclipse.core.runtime.IPath getFullPath()
    • setDisabled

      void setDisabled(String message)
    • 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

      void setParent(ITestContainer value)
      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 type IMetadata.

      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 type ITestResult.

      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: