Package hudson.tasks.test
Class AggregatedTestResultPublisher.TestResultAction
java.lang.Object
hudson.tasks.test.AbstractTestResultAction
hudson.tasks.test.AggregatedTestResultPublisher.TestResultAction
- All Implemented Interfaces:
Action
,HealthReportingAction
,ModelObject
,RunAction2
- Enclosing class:
- AggregatedTestResultPublisher
public static final class AggregatedTestResultPublisher.TestResultAction
extends AbstractTestResultAction
Action that serves the aggregated record.
TODO: persist some information so that even when some of the individuals
are gone, we can still retain some useful information.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Nested classes/interfaces inherited from class hudson.tasks.test.AbstractTestResultAction
AbstractTestResultAction.Summarizer
-
Field Summary
Fields inherited from class hudson.tasks.test.AbstractTestResultAction
owner, run
-
Constructor Summary
ConstructorDescriptionTestResultAction
(String jobs, boolean includeFailedBuilds, AbstractBuild<?, ?> owner) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
getDescription
(TestObject object) Deprecated.so that IDE warns you if you accidentally try to call it.Gets the downstream projects that haven't run yet, but expected to produce test results.int
Gets the number of failed tests.boolean
boolean
Returns the individual test results that are aggregated.getJobs()
Gets the jobs to be monitored.Gets the downstream projects that have available test results, but do not appear to have fingerprinting enabled.Returns the object that represents the actual test result.int
Gets the total number of tests.protected void
setDescription
(TestObject object, String description) Deprecated.so that IDE warns you if you accidentally try to call it.Methods inherited from class hudson.tasks.test.AbstractTestResultAction
doGraph, doGraphMap, findCorrespondingResult, findPreviousCorresponding, getApi, getBuildHealth, getFailedTests, getFailureDiffString, getHealthScaleFactor, getIconFileName, getPassedTests, getPreviousResult, getPreviousResult, getSkipCount, getSkippedTests, getTestResultPath, onAttached, onLoad, readResolve
-
Constructor Details
-
TestResultAction
-
-
Method Details
-
getJobs
Gets the jobs to be monitored. -
getIncludeFailedBuilds
public boolean getIncludeFailedBuilds() -
getFailCount
public int getFailCount()Description copied from class:AbstractTestResultAction
Gets the number of failed tests.- Specified by:
getFailCount
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
-
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
-
getIndividuals
Returns the individual test results that are aggregated. -
getDidntRun
Gets the downstream projects that haven't run yet, but expected to produce test results. -
getNoFingerprints
Gets the downstream projects that have available test results, but do not appear to have fingerprinting enabled. -
getHasFingerprintAction
public boolean getHasFingerprintAction() -
getDisplayName
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
- Overrides:
getDisplayName
in classAbstractTestResultAction
-
getUrlName
- Specified by:
getUrlName
in interfaceAction
- Overrides:
getUrlName
in classAbstractTestResultAction
-