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 TypeMethodDescriptionvoidintcompareTo(FlakyClassResult that) booleanhudson.tasks.test.TestResultgetCaseResult(String name) floatgetDynamic(String name, org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) intintgetName()AbstractBuild<?,?> getOwner()intgetRelativePathFrom(hudson.tasks.test.TestObject it) Gets the relative path to this test case from the given object.inthudson.tasks.junit.TestActiongetTitle()booleaninthashCode()voidtally()Recount my children.Methods inherited from class hudson.tasks.test.TabulatedResult
blockToTestResult, getChildType, getPipelineBlockWithTests, hasMultipleBlocks, populateBlocksMethods inherited from class hudson.tasks.test.TestResult
annotate, getBuildResult, getErrorDetails, getErrorStackTrace, getFailedSince, getFailedSinceRun, getFailedTests, getParentAction, getPassedTests, getProperties, getResultInRun, getSkippedTests, getStderr, getStdout, isPassed, setParent, setParentAction, toPrettyStringMethods inherited from class hudson.tasks.test.TestObject
doSubmitDescription, getApi, getDescription, getDurationString, getHistory, getId, getResultInBuild, getSearchUrl, getTestAction, getTestActions, getTestResult, getTestResultAction, getTopLevelTestResult, getTotalCount, getUrl, safe, setDescription, uniquifyNameMethods inherited from class hudson.tasks.junit.TestObject
getRunMethods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError, sendError, sendError, sendError
-
Method Details
-
getOwner
- Overrides:
getOwnerin classhudson.tasks.junit.TestObject
-
getParent
- Specified by:
getParentin classhudson.tasks.test.TestObject
-
getPreviousResult
- Overrides:
getPreviousResultin classhudson.tasks.test.TestResult
-
findCorrespondingResult
- Specified by:
findCorrespondingResultin classhudson.tasks.test.TestObject
-
getTitle
- Overrides:
getTitlein classhudson.tasks.test.TestResult
-
getChildTitle
- Overrides:
getChildTitlein classhudson.tasks.test.TabulatedResult
-
getName
- Overrides:
getNamein classhudson.tasks.test.TestObject
-
getSafeName
- Overrides:
getSafeNamein classhudson.tasks.test.TestObject
-
getCaseResult
-
getDynamic
public Object getDynamic(String name, org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) - Overrides:
getDynamicin classhudson.tasks.test.TestObject
-
getChildren
- Specified by:
getChildrenin classhudson.tasks.test.TabulatedResult
-
hasChildren
public boolean hasChildren()- Specified by:
hasChildrenin classhudson.tasks.test.TabulatedResult
-
getDuration
@Exported public float getDuration()- Overrides:
getDurationin classhudson.tasks.test.TestResult
-
getPassCount
@Exported public int getPassCount()- Overrides:
getPassCountin classhudson.tasks.test.TestResult
-
getFailCount
@Exported public int getFailCount()- Overrides:
getFailCountin classhudson.tasks.test.TestResult
-
getSkipCount
@Exported public int getSkipCount()- Overrides:
getSkipCountin classhudson.tasks.test.TestResult
-
getFlakeCount
@Exported public int getFlakeCount() -
add
-
tally
public void tally()Recount my children.- Overrides:
tallyin classhudson.tasks.test.TestResult
-
getClassName
-
compareTo
- Specified by:
compareToin interfaceComparable<FlakyClassResult>
-
equals
-
hashCode
public int hashCode() -
getDisplayName
- Specified by:
getDisplayNamein interfaceModelObject
-
getFullName
- Overrides:
getFullNamein classhudson.tasks.test.TestObject- Since:
- 1.515
-
getFullDisplayName
- Overrides:
getFullDisplayNamein classhudson.tasks.test.TestObject
-
getRelativePathFrom
Gets the relative path to this test case from the given object.- Overrides:
getRelativePathFromin classhudson.tasks.test.TestObject
-
getTestAction
public hudson.tasks.junit.TestAction getTestAction()- Specified by:
getTestActionin interfaceActionableFlakyTestObject
-