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:
  • Method Details

    • getOwner

      public AbstractBuild<?,?> getOwner()
      Overrides:
      getOwner in class hudson.tasks.junit.TestObject
    • getParent

      public FlakyPackageResult getParent()
      Specified by:
      getParent in class hudson.tasks.test.TestObject
    • getPreviousResult

      public FlakyClassResult getPreviousResult()
      Overrides:
      getPreviousResult in class hudson.tasks.test.TestResult
    • findCorrespondingResult

      public hudson.tasks.test.TestResult findCorrespondingResult(String id)
      Specified by:
      findCorrespondingResult in class hudson.tasks.test.TestObject
    • getTitle

      @SuppressRestrictedWarnings(hudson.tasks.junit.Messages.class) public String getTitle()
      Overrides:
      getTitle in class hudson.tasks.test.TestResult
    • getChildTitle

      public String getChildTitle()
      Overrides:
      getChildTitle in class hudson.tasks.test.TabulatedResult
    • getName

      @Exported(visibility=999) public String getName()
      Overrides:
      getName in class hudson.tasks.test.TestObject
    • getSafeName

      public String getSafeName()
      Overrides:
      getSafeName in class hudson.tasks.test.TestObject
    • getCaseResult

      public FlakyCaseResult getCaseResult(String name)
    • getDynamic

      public Object getDynamic(String name, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
      Overrides:
      getDynamic in class hudson.tasks.test.TestObject
    • getChildren

      @Exported(name="child") public List<FlakyCaseResult> getChildren()
      Specified by:
      getChildren in class hudson.tasks.test.TabulatedResult
    • hasChildren

      public boolean hasChildren()
      Specified by:
      hasChildren in class hudson.tasks.test.TabulatedResult
    • getDuration

      @Exported public float getDuration()
      Overrides:
      getDuration in class hudson.tasks.test.TestResult
    • getPassCount

      @Exported public int getPassCount()
      Overrides:
      getPassCount in class hudson.tasks.test.TestResult
    • getFailCount

      @Exported public int getFailCount()
      Overrides:
      getFailCount in class hudson.tasks.test.TestResult
    • getSkipCount

      @Exported public int getSkipCount()
      Overrides:
      getSkipCount in class hudson.tasks.test.TestResult
    • getFlakeCount

      @Exported public int getFlakeCount()
    • add

      public void add(FlakyCaseResult r)
    • tally

      public void tally()
      Recount my children.
      Overrides:
      tally in class hudson.tasks.test.TestResult
    • getClassName

      public String getClassName()
    • compareTo

      public int compareTo(FlakyClassResult that)
      Specified by:
      compareTo in interface Comparable<FlakyClassResult>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getDisplayName

      public String getDisplayName()
      Specified by:
      getDisplayName in interface ModelObject
    • getFullName

      public String getFullName()
      Overrides:
      getFullName in class hudson.tasks.test.TestObject
      Since:
      1.515
    • getFullDisplayName

      public String getFullDisplayName()
      Overrides:
      getFullDisplayName in class hudson.tasks.test.TestObject
    • getRelativePathFrom

      public String getRelativePathFrom(hudson.tasks.test.TestObject it)
      Gets the relative path to this test case from the given object.
      Overrides:
      getRelativePathFrom in class hudson.tasks.test.TestObject
    • getTestAction

      public hudson.tasks.junit.TestAction getTestAction()
      Specified by:
      getTestAction in interface ActionableFlakyTestObject