Package org.tap4j.plugin.util
Class GraphHelper
java.lang.Object
org.tap4j.plugin.util.GraphHelper
Helper class for trend graph generation.
- Since:
- 1.0
- Author:
- TestNG plug-in
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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<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)
-
Method Details
-
redirectWhenGraphUnsupported
public static void redirectWhenGraphUnsupported(org.kohsuke.stapler.StaplerResponse rsp, org.kohsuke.stapler.StaplerRequest req) throws IOException - Throws:
IOException
-
createChart
public static org.jfree.chart.JFreeChart createChart(org.kohsuke.stapler.StaplerRequest req, org.jfree.data.category.CategoryDataset dataset) -
createMethodChart
public static org.jfree.chart.JFreeChart createMethodChart(org.kohsuke.stapler.StaplerRequest req, org.jfree.data.category.CategoryDataset dataset, Map<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. At max, 9 older builds are displayed.- Parameters:
req
- requestdataset
- data set to be displayed on the graphstatusMap
- a map with build as key and the test method's execution status (result) as the valuemethodUrl
- URL to get to the method from a build test result page- Returns:
- the chart
-