Package hudson.tasks.junit
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.
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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract Api
getApi()
Deprecated.Exposes this object through the remote API.abstract String
Deprecated.abstract float
Deprecated.Time took to run this test.abstract String
Deprecated.Returns the string representation of thegetDuration()
, in a human readable format.abstract int
Deprecated.Gets the total number of failed tests.abstract History
Deprecated.abstract String
getId()
Deprecated.abstract String
getName()
Deprecated.Gets the name of this object.AbstractBuild<?,
?> getOwner()
Deprecated.abstract TestObject
Deprecated.abstract int
Deprecated.Gets the total number of passed tests.abstract TestObject
Deprecated.Gets the counter part of thisTestObject
in the previous run.getResultInBuild
(AbstractBuild<?, ?> build) Deprecated.getResultInRun
(Run<?, ?> run) Deprecated.Run<?,
?> getRun()
Deprecated.abstract String
Deprecated.Gets the version ofgetName()
that's URL-safe.abstract String
Deprecated.abstract int
Deprecated.Gets the total number of skipped tests.abstract <T> T
getTestAction
(Class<T> klazz) Deprecated.abstract List<TestAction>
Deprecated.abstract TestResult
Deprecated.abstract AbstractTestResultAction
Deprecated.abstract int
Deprecated.Gets the total number of tests.abstract String
getUrl()
Deprecated.Returns the URL of thisTestObject
, relative to the context root.abstract void
setDescription
(String description) Deprecated.Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface hudson.model.ModelObject
getDisplayName
-
Constructor Details
-
TestObject
public TestObject()Deprecated.
-
-
Method Details
-
getOwner
Deprecated. -
getRun
Deprecated.- Returns:
- the run in which this test was executed.
- Since:
- 1.2-beta-1
-
getParent
Deprecated. -
getId
Deprecated. -
getUrl
Deprecated.Returns the URL of thisTestObject
, relative to the context root.- Returns:
- String like "job/foo/32/testReport/junit/com.company/Class" with no trailing or leading slash.
-
getTestResult
Deprecated. -
getTestResultAction
Deprecated. -
getTestActions
Deprecated. -
getTestAction
Deprecated. -
getPreviousResult
Deprecated.Gets the counter part of thisTestObject
in the previous run.- Returns:
- null if no such counter part exists.
-
getResultInBuild
Deprecated. -
getResultInRun
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
Deprecated.Returns the string representation of thegetDuration()
, in a human readable format.- Returns:
- a string representation of
getDuration()
.
-
getDescription
Deprecated. -
setDescription
Deprecated. -
getApi
Deprecated.Exposes this object through the remote API.- Returns:
- the api for this test object.
-
getName
Deprecated.Gets the name of this object.- Returns:
- the name of this object.
-
getSafeName
Deprecated.Gets the version ofgetName()
that's URL-safe.- Returns:
- the URL-safe name of this object.
-
getSearchUrl
Deprecated.- Specified by:
getSearchUrl
in interfaceSearchItem
-
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
Deprecated.
-
TestObject
instead.