Class TestObject

java.lang.Object
hudson.model.AbstractModelObject
hudson.tasks.junit.TestObject
All Implemented Interfaces:
ModelObject, SearchableModelObject, SearchItem, Serializable
Direct Known Subclasses:
TestObject

@Deprecated @ExportedBean public abstract class TestObject extends AbstractModelObject implements Serializable
Deprecated.
Use TestObject instead.
Stub of base class for all test result objects. The real implementation of the TestObject is in hudson.tasks.test.TestObject. This class simply defines abstract methods so that legacy code will continue to compile.
Author:
Kohsuke Kawaguchi
See Also:
  • Constructor Details

    • TestObject

      public TestObject()
      Deprecated.
  • Method Details

    • getOwner

      @Deprecated public AbstractBuild<?,?> getOwner()
      Deprecated.
    • getRun

      public Run<?,?> getRun()
      Deprecated.
      Returns:
      the run in which this test was executed.
      Since:
      1.2-beta-1
    • getParent

      public abstract TestObject getParent()
      Deprecated.
    • getId

      public abstract String getId()
      Deprecated.
    • getUrl

      public abstract String getUrl()
      Deprecated.
      Returns the URL of this TestObject, relative to the context root.
      Returns:
      String like "job/foo/32/testReport/junit/com.company/Class" with no trailing or leading slash.
    • getTestResult

      public abstract TestResult getTestResult()
      Deprecated.
    • getTestResultAction

      public abstract AbstractTestResultAction getTestResultAction()
      Deprecated.
    • getTestActions

      public abstract List<TestAction> getTestActions()
      Deprecated.
    • getTestAction

      public abstract <T> T getTestAction(Class<T> klazz)
      Deprecated.
    • getPreviousResult

      public abstract TestObject getPreviousResult()
      Deprecated.
      Gets the counter part of this TestObject in the previous run.
      Returns:
      null if no such counter part exists.
    • getResultInBuild

      @Deprecated public TestObject getResultInBuild(AbstractBuild<?,?> build)
      Deprecated.
    • getResultInRun

      public TestObject getResultInRun(Run<?,?> run)
      Deprecated.
      Parameters:
      run - The run for which the run is requested.
      Returns:
      the test result for the provided run.
      Since:
      1.2-beta-1
    • getDuration

      public abstract float getDuration()
      Deprecated.
      Time took to run this test. In seconds.
      Returns:
      the time in seconds the test ran.
    • getDurationString

      public abstract String getDurationString()
      Deprecated.
      Returns the string representation of the getDuration(), in a human readable format.
      Returns:
      a string representation of getDuration().
    • getDescription

      public abstract String getDescription()
      Deprecated.
    • setDescription

      public abstract void setDescription(String description)
      Deprecated.
    • getApi

      public abstract Api getApi()
      Deprecated.
      Exposes this object through the remote API.
      Returns:
      the api for this test object.
    • getName

      public abstract String getName()
      Deprecated.
      Gets the name of this object.
      Returns:
      the name of this object.
    • getSafeName

      public abstract String getSafeName()
      Deprecated.
      Gets the version of getName() that's URL-safe.
      Returns:
      the URL-safe name of this object.
    • getSearchUrl

      public abstract String getSearchUrl()
      Deprecated.
      Specified by:
      getSearchUrl in interface SearchItem
    • getPassCount

      public abstract int getPassCount()
      Deprecated.
      Gets the total number of passed tests.
      Returns:
      the total number of passed tests.
    • getFailCount

      public abstract int getFailCount()
      Deprecated.
      Gets the total number of failed tests.
      Returns:
      the total number of failed tests.
    • getSkipCount

      public abstract int getSkipCount()
      Deprecated.
      Gets the total number of skipped tests.
      Returns:
      the total number of skipped tests.
    • getTotalCount

      public abstract int getTotalCount()
      Deprecated.
      Gets the total number of tests.
      Returns:
      the total number of tests.
    • getHistory

      public abstract History getHistory()
      Deprecated.