Package hudson.tasks.test
Class AggregatedTestResultAction
- java.lang.Object
-
- hudson.tasks.test.AbstractTestResultAction
-
- hudson.tasks.test.AggregatedTestResultAction
-
- All Implemented Interfaces:
Action
,HealthReportingAction
,ModelObject
,RunAction2
@ExportedBean public abstract class AggregatedTestResultAction extends AbstractTestResultAction
AbstractTestResultAction
that aggregates all the test results from the correspondingRun
s.(This has nothing to do with
AggregatedTestResultPublisher
, unfortunately)- Author:
- Kohsuke Kawaguchi
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AggregatedTestResultAction.Child
static class
AggregatedTestResultAction.ChildReport
Data-binding bean for the remote API.-
Nested classes/interfaces inherited from class hudson.tasks.test.AbstractTestResultAction
AbstractTestResultAction.Summarizer
-
-
Field Summary
Fields Modifier and Type Field Description List<AggregatedTestResultAction.Child>
children
child builds whose test results are used for aggregation.-
Fields inherited from class hudson.tasks.test.AbstractTestResultAction
owner, run
-
-
Constructor Summary
Constructors Constructor Description AggregatedTestResultAction()
AggregatedTestResultAction(AbstractBuild owner)
Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected void
add(AbstractTestResultAction child)
protected abstract String
getChildName(AbstractTestResultAction tr)
protected AbstractTestResultAction
getChildReport(AggregatedTestResultAction.Child child)
UsesresolveChild(Child)
and obtain theAbstractTestResultAction
object for the given child.List<AggregatedTestResultAction.ChildReport>
getChildReports()
Mainly for the remote API.protected String
getDescription(TestObject object)
Deprecated.so that IDE warns you if you accidentally try to call it.int
getFailCount()
Gets the number of failed tests.List<? extends TestResult>
getFailedTests()
A shortcut for summary.jellyList<AggregatedTestResultAction.ChildReport>
getResult()
Returns the object that represents the actual test result.int
getSkipCount()
Gets the number of skipped tests.int
getTotalCount()
Gets the total number of tests.AbstractBuild<?,?>
resolveChild(AggregatedTestResultAction.Child child)
Deprecated.Run<?,?>
resolveRun(AggregatedTestResultAction.Child child)
protected 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 Detail
-
children
public final List<AggregatedTestResultAction.Child> children
child builds whose test results are used for aggregation.
-
-
Constructor Detail
-
AggregatedTestResultAction
@Deprecated public AggregatedTestResultAction(AbstractBuild owner)
Deprecated.
-
AggregatedTestResultAction
public AggregatedTestResultAction()
- Since:
- 1.545
-
-
Method Detail
-
update
protected void update(List<? extends AbstractTestResultAction> children)
-
add
protected void add(AbstractTestResultAction child)
-
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
public List<AggregatedTestResultAction.ChildReport> 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
public List<? extends TestResult> 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
@Exported(inline=true) public List<AggregatedTestResultAction.ChildReport> getChildReports()
Mainly for the remote API. Expose results from children.
-
getChildName
protected abstract String getChildName(AbstractTestResultAction tr)
-
resolveRun
public Run<?,?> resolveRun(AggregatedTestResultAction.Child child)
- Since:
- 1.2-beta-1
-
resolveChild
@Deprecated public AbstractBuild<?,?> resolveChild(AggregatedTestResultAction.Child child)
Deprecated.
-
getChildReport
protected AbstractTestResultAction getChildReport(AggregatedTestResultAction.Child child)
UsesresolveChild(Child)
and obtain theAbstractTestResultAction
object for the given child.
-
getDescription
protected final String getDescription(TestObject object)
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:
TestObject.getDescription()
-
setDescription
protected final void setDescription(TestObject object, String description)
Deprecated.so that IDE warns you if you accidentally try to call it.- Overrides:
setDescription
in classAbstractTestResultAction
-
-