Package hudson.tasks.test
Class AggregatedTestResultAction
java.lang.Object
hudson.tasks.test.AbstractTestResultAction
hudson.tasks.test.AggregatedTestResultAction
- All Implemented Interfaces:
Action
,HealthReportingAction
,ModelObject
,RunAction2
AbstractTestResultAction
that aggregates all the test results
from the corresponding Run
s.
(This has nothing to do with AggregatedTestResultPublisher
, unfortunately)
- Author:
- Kohsuke Kawaguchi
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
static final class
Data-binding bean for the remote API.Nested classes/interfaces inherited from class hudson.tasks.test.AbstractTestResultAction
AbstractTestResultAction.Summarizer
-
Field Summary
Modifier and TypeFieldDescriptionchild builds whose test results are used for aggregation.Fields inherited from class hudson.tasks.test.AbstractTestResultAction
owner, run
-
Constructor Summary
ConstructorDescriptionDeprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
add
(AbstractTestResultAction child) protected abstract String
protected AbstractTestResultAction
UsesresolveChild(Child)
and obtain theAbstractTestResultAction
object for the given child.Mainly for the remote API.protected final String
getDescription
(TestObject object) Deprecated.so that IDE warns you if you accidentally try to call it.int
Gets the number of failed tests.List<? extends TestResult>
A shortcut for summary.jellyReturns the object that represents the actual test result.int
Gets the number of skipped tests.int
Gets the total number of tests.AbstractBuild<?,
?> Deprecated.Run<?,
?> protected final void
setDescription
(TestObject object, String description) Deprecated.so that IDE warns you if you accidentally try to call it.protected void
update
(List<? extends AbstractTestResultAction> children) Methods inherited from class hudson.tasks.test.AbstractTestResultAction
doGraph, doGraphMap, findCorrespondingResult, findPreviousCorresponding, getApi, getBuildHealth, getDisplayName, getFailureDiffString, getHealthScaleFactor, getIconFileName, getPassedTests, getPreviousResult, getPreviousResult, getSkippedTests, getTestResultPath, getUrlName, onAttached, onLoad, readResolve
-
Field Details
-
children
child builds whose test results are used for aggregation.
-
-
Constructor Details
-
AggregatedTestResultAction
Deprecated. -
AggregatedTestResultAction
public AggregatedTestResultAction()- Since:
- 1.545
-
-
Method Details
-
update
-
add
-
getFailCount
public int getFailCount()Description copied from class:AbstractTestResultAction
Gets the number of failed tests.- Specified by:
getFailCount
in classAbstractTestResultAction
-
getSkipCount
public int getSkipCount()Description copied from class:AbstractTestResultAction
Gets the number of skipped tests.- Overrides:
getSkipCount
in classAbstractTestResultAction
-
getTotalCount
public int getTotalCount()Description copied from class:AbstractTestResultAction
Gets the total number of tests.- Specified by:
getTotalCount
in classAbstractTestResultAction
-
getResult
Description copied from class:AbstractTestResultAction
Returns the object that represents the actual test result. This method is used by the remote API so that the XML/JSON that we are sending won't contain unnecessary indirection (that is,AbstractTestResultAction
in between.If such a concept doesn't make sense for a particular subtype, return
this
.- Specified by:
getResult
in classAbstractTestResultAction
-
getFailedTests
Description copied from class:AbstractTestResultAction
A shortcut for summary.jelly- Overrides:
getFailedTests
in classAbstractTestResultAction
- Returns:
- List of failed tests from associated test result.
-
getChildReports
Mainly for the remote API. Expose results from children. -
getChildName
-
resolveRun
- Since:
- 1.2-beta-1
-
resolveChild
Deprecated. -
getChildReport
UsesresolveChild(Child)
and obtain theAbstractTestResultAction
object for the given child. -
getDescription
Deprecated.so that IDE warns you if you accidentally try to call it.Since there's no TestObject that points this action as the owner (aggregatedTestObject
s point to their respective real owners, not 'this'), so this method should be never invoked.- Overrides:
getDescription
in classAbstractTestResultAction
- See Also:
-
setDescription
Deprecated.so that IDE warns you if you accidentally try to call it.- Overrides:
setDescription
in classAbstractTestResultAction
-