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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TestStatisticsPortlet.DescriptorImpl
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Constructor Summary
Constructors Constructor Description TestStatisticsPortlet(String name, boolean hideZeroTestProjects, String successColor, String failureColor, String skippedColor, boolean useBackgroundColors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
format(DecimalFormat df, double val)
String
getFailureColor()
boolean
getHideZeroTestProjects()
String
getRowColor(TestResult testResult)
String
getSkippedColor()
String
getSuccessColor()
TestResultSummary
getTestResultSummary(Collection<TopLevelItem> jobs)
String
getTotalRowColor(List<TestResult> testResults)
boolean
isUseAlternatePercentagesOnLimits()
boolean
isUseBackgroundColors()
void
setFailureColor(String failureColor)
void
setSkippedColor(String skippedColor)
void
setSuccessColor(String successColor)
void
setUseAlternatePercentagesOnLimits(boolean useAlternatePercentagesOnLimits)
void
setUseBackgroundColors(boolean useBackgroundColors)
-
Methods inherited from class hudson.plugins.view.dashboard.DashboardPortlet
all, getComparator, getDashboard, getDescriptor, getDisplayName, getId, getJob, getName, getUrl
-
-
-
-
Method Detail
-
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)
-
-