Package hudson.tasks.test
Class AggregatedTestResultPublisher.TestResultAction
java.lang.Object
jenkins.model.Tab
hudson.tasks.test.AbstractTestResultAction
hudson.tasks.test.AggregatedTestResultPublisher.TestResultAction
- All Implemented Interfaces:
Action,HealthReportingAction,ModelObject,Badgeable,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
Nested ClassesModifier and TypeClassDescriptionstatic classNested 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
ConstructorsConstructorDescriptionTestResultAction(String jobs, boolean includeFailedBuilds) TestResultAction(String jobs, boolean includeFailedBuilds, AbstractBuild<?, ?> owner) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetDescription(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.intGets the number of failed tests.booleanbooleanReturns 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.intGets the total number of tests.protected voidsetDescription(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, getBadge, getBuildHealth, getFailedTests, getFailureDiffString, getHealthScaleFactor, getIconFileName, getPassedTests, getPreviousResult, getPreviousResult, getSkipCount, getSkippedTests, getTestResultPath, onAttached, onLoad, readResolve
-
Constructor Details
-
TestResultAction
@Deprecated(forRemoval=true) public TestResultAction(String jobs, boolean includeFailedBuilds, AbstractBuild<?, ?> owner) Deprecated, for removal: This API element is subject to removal in a future version. -
TestResultAction
-
-
Method Details
-
getJobs
Gets the jobs to be monitored. -
getIncludeFailedBuilds
public boolean getIncludeFailedBuilds() -
getFailCount
public int getFailCount()Description copied from class:AbstractTestResultActionGets the number of failed tests.- Specified by:
getFailCountin classAbstractTestResultAction
-
getTotalCount
public int getTotalCount()Description copied from class:AbstractTestResultActionGets the total number of tests.- Specified by:
getTotalCountin classAbstractTestResultAction
-
getResult
Description copied from class:AbstractTestResultActionReturns 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,AbstractTestResultActionin between.If such a concept doesn't make sense for a particular subtype, return
this.- Specified by:
getResultin 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 (aggregatedTestObjects point to their respective real owners, not 'this'), so this method should be never invoked.- Overrides:
getDescriptionin classAbstractTestResultAction- See Also:
-
setDescription
Deprecated.so that IDE warns you if you accidentally try to call it.- Overrides:
setDescriptionin 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:
getDisplayNamein interfaceAction- Specified by:
getDisplayNamein interfaceModelObject- Overrides:
getDisplayNamein classAbstractTestResultAction
-
getUrlName
- Specified by:
getUrlNamein interfaceAction- Overrides:
getUrlNamein classAbstractTestResultAction
-
TestResultAction(String, boolean)