public class GraphHelper extends Object
Modifier and Type | Method and Description |
---|---|
static org.jfree.chart.JFreeChart |
createChart(org.kohsuke.stapler.StaplerRequest req,
org.jfree.data.category.CategoryDataset dataset) |
static org.jfree.chart.JFreeChart |
createMethodChart(org.kohsuke.stapler.StaplerRequest req,
org.jfree.data.category.CategoryDataset dataset,
Map<hudson.util.ChartUtil.NumberOnlyBuildLabel,String> statusMap,
String methodUrl)
Creates the graph displayed on Method results page to compare execution duration
and status of a test method across builds.
|
static void |
redirectWhenGraphUnsupported(org.kohsuke.stapler.StaplerResponse rsp,
org.kohsuke.stapler.StaplerRequest req) |
public static void redirectWhenGraphUnsupported(org.kohsuke.stapler.StaplerResponse rsp, org.kohsuke.stapler.StaplerRequest req) throws IOException
IOException
public static org.jfree.chart.JFreeChart createChart(org.kohsuke.stapler.StaplerRequest req, org.jfree.data.category.CategoryDataset dataset)
public static org.jfree.chart.JFreeChart createMethodChart(org.kohsuke.stapler.StaplerRequest req, org.jfree.data.category.CategoryDataset dataset, Map<hudson.util.ChartUtil.NumberOnlyBuildLabel,String> statusMap, String methodUrl)
req
- requestdataset
- data set to be displayed on the graphstatusMap
- a map with build as key and the test methods execution status (result)
as the valuemethodUrl
- URL to get to the method from a build test result pageCopyright © 2004-2016. All Rights Reserved.