Class FlakyClassResult
java.lang.Object
hudson.model.AbstractModelObject
hudson.tasks.junit.TestObject
hudson.tasks.test.TestObject
hudson.tasks.test.TestResult
hudson.tasks.test.TabulatedResult
com.google.jenkins.flakyTestHandler.junit.FlakyClassResult
- All Implemented Interfaces:
ActionableFlakyTestObject
,ModelObject
,SearchableModelObject
,SearchItem
,Serializable
,Comparable<FlakyClassResult>
public final class FlakyClassResult
extends hudson.tasks.test.TabulatedResult
implements Comparable<FlakyClassResult>, ActionableFlakyTestObject
Cumulative test result of a test class augmented with flaky information. Majority of code copied
from hudson.tasks.junit.ClassResult
https://github.com/jenkinsci/jenkins/blob/master/core/src/main/java/hudson/tasks/junit/
ClassResult.java
- Author:
- Qingzhou Luo
- See Also:
-
Field Summary
Fields inherited from class hudson.tasks.test.TabulatedResult
testsByBlock
-
Method Summary
Modifier and TypeMethodDescriptionvoid
int
compareTo
(FlakyClassResult that) boolean
hudson.tasks.test.TestResult
getCaseResult
(String name) float
getDynamic
(String name, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) int
int
getName()
AbstractBuild<?,
?> getOwner()
int
getRelativePathFrom
(hudson.tasks.test.TestObject it) Gets the relative path to this test case from the given object.int
hudson.tasks.junit.TestAction
getTitle()
boolean
int
hashCode()
void
tally()
Recount my children.Methods inherited from class hudson.tasks.test.TabulatedResult
blockToTestResult, getChildType, getPipelineBlockWithTests, hasMultipleBlocks, populateBlocks
Methods inherited from class hudson.tasks.test.TestResult
annotate, getBuildResult, getErrorDetails, getErrorStackTrace, getFailedSince, getFailedSinceRun, getFailedTests, getParentAction, getPassedTests, getProperties, getResultInRun, getSkippedTests, getStderr, getStdout, isPassed, setParent, setParentAction, toPrettyString
Methods inherited from class hudson.tasks.test.TestObject
doSubmitDescription, getApi, getDescription, getDurationString, getHistory, getId, getResultInBuild, getSearchUrl, getTestAction, getTestActions, getTestResult, getTestResultAction, getTopLevelTestResult, getTotalCount, getUrl, safe, setDescription, uniquifyName
Methods inherited from class hudson.tasks.junit.TestObject
getRun
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
-
Method Details
-
getOwner
- Overrides:
getOwner
in classhudson.tasks.junit.TestObject
-
getParent
- Specified by:
getParent
in classhudson.tasks.test.TestObject
-
getPreviousResult
- Overrides:
getPreviousResult
in classhudson.tasks.test.TestResult
-
findCorrespondingResult
- Specified by:
findCorrespondingResult
in classhudson.tasks.test.TestObject
-
getTitle
- Overrides:
getTitle
in classhudson.tasks.test.TestResult
-
getChildTitle
- Overrides:
getChildTitle
in classhudson.tasks.test.TabulatedResult
-
getName
- Overrides:
getName
in classhudson.tasks.test.TestObject
-
getSafeName
- Overrides:
getSafeName
in classhudson.tasks.test.TestObject
-
getCaseResult
-
getDynamic
public Object getDynamic(String name, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) - Overrides:
getDynamic
in classhudson.tasks.test.TestObject
-
getChildren
- Specified by:
getChildren
in classhudson.tasks.test.TabulatedResult
-
hasChildren
public boolean hasChildren()- Specified by:
hasChildren
in classhudson.tasks.test.TabulatedResult
-
getDuration
@Exported public float getDuration()- Overrides:
getDuration
in classhudson.tasks.test.TestResult
-
getPassCount
@Exported public int getPassCount()- Overrides:
getPassCount
in classhudson.tasks.test.TestResult
-
getFailCount
@Exported public int getFailCount()- Overrides:
getFailCount
in classhudson.tasks.test.TestResult
-
getSkipCount
@Exported public int getSkipCount()- Overrides:
getSkipCount
in classhudson.tasks.test.TestResult
-
getFlakeCount
@Exported public int getFlakeCount() -
add
-
tally
public void tally()Recount my children.- Overrides:
tally
in classhudson.tasks.test.TestResult
-
getClassName
-
compareTo
- Specified by:
compareTo
in interfaceComparable<FlakyClassResult>
-
equals
-
hashCode
public int hashCode() -
getDisplayName
- Specified by:
getDisplayName
in interfaceModelObject
-
getFullName
- Overrides:
getFullName
in classhudson.tasks.test.TestObject
- Since:
- 1.515
-
getFullDisplayName
- Overrides:
getFullDisplayName
in classhudson.tasks.test.TestObject
-
getRelativePathFrom
Gets the relative path to this test case from the given object.- Overrides:
getRelativePathFrom
in classhudson.tasks.test.TestObject
-
getTestAction
public hudson.tasks.junit.TestAction getTestAction()- Specified by:
getTestAction
in interfaceActionableFlakyTestObject
-