Class TestStatisticsPortlet

java.lang.Object
hudson.plugins.view.dashboard.DashboardPortlet
hudson.plugins.view.dashboard.test.TestStatisticsPortlet
All Implemented Interfaces:
ExtensionPoint, Describable<DashboardPortlet>, ModelObject

public class TestStatisticsPortlet extends DashboardPortlet
Portlet that presents a grid of test result data with summation
Author:
Peter Hayes
  • Constructor Details

    • TestStatisticsPortlet

      @DataBoundConstructor public TestStatisticsPortlet(String name, boolean hideZeroTestProjects, String successColor, String failureColor, String skippedColor, boolean useBackgroundColors)
  • Method Details

    • getTestResultSummary

      public TestResultSummary getTestResultSummary(Collection<TopLevelItem> jobs)
    • getHideZeroTestProjects

      public boolean getHideZeroTestProjects()
    • format

      public String format(DecimalFormat df, double val)
    • isUseBackgroundColors

      public boolean isUseBackgroundColors()
    • getSuccessColor

      public String getSuccessColor()
    • getFailureColor

      public String getFailureColor()
    • getSkippedColor

      public String getSkippedColor()
    • setUseAlternatePercentagesOnLimits

      @DataBoundSetter public void setUseAlternatePercentagesOnLimits(boolean useAlternatePercentagesOnLimits)
    • isUseAlternatePercentagesOnLimits

      public boolean isUseAlternatePercentagesOnLimits()
    • getRowColor

      public String getRowColor(TestResult testResult)
    • getTotalRowColor

      public String getTotalRowColor(List<TestResult> testResults)
    • setUseBackgroundColors

      public void setUseBackgroundColors(boolean useBackgroundColors)
    • setSkippedColor

      public void setSkippedColor(String skippedColor)
    • setSuccessColor

      public void setSuccessColor(String successColor)
    • setFailureColor

      public void setFailureColor(String failureColor)