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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ApigetApi()Deprecated.Exposes this object through the remote API.abstract StringDeprecated.abstract floatDeprecated.Time took to run this test.abstract StringDeprecated.Returns the string representation of thegetDuration(), in a human readable format.abstract intDeprecated.Gets the total number of failed tests.abstract HistoryDeprecated.abstract StringgetId()Deprecated.abstract StringgetName()Deprecated.Gets the name of this object.AbstractBuild<?, ?> getOwner()Deprecated.abstract TestObjectDeprecated.abstract intDeprecated.Gets the total number of passed tests.abstract TestObjectDeprecated.Gets the counter part of thisTestObjectin the previous run.getResultInBuild(AbstractBuild<?, ?> build) Deprecated.getResultInRun(Run<?, ?> run) Deprecated.Run<?, ?> getRun()Deprecated.abstract StringDeprecated.Gets the version ofgetName()that's URL-safe.abstract StringDeprecated.abstract intDeprecated.Gets the total number of skipped tests.abstract <T> TgetTestAction(Class<T> klazz) Deprecated.abstract List<TestAction> Deprecated.abstract TestResultDeprecated.abstract AbstractTestResultActionDeprecated.abstract intDeprecated.Gets the total number of tests.abstract StringgetUrl()Deprecated.Returns the URL of thisTestObject, relative to the context root.abstract voidsetDescription(String description) Deprecated.Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError, sendError, sendError, sendErrorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hudson.model.ModelObject
getDisplayNameMethods inherited from interface hudson.search.SearchItem
getSearchGroup, getSearchIcon
-
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 thisTestObjectin 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:
getSearchUrlin 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.
-
TestObjectinstead.