hudson.plugins.testng.util
Class GraphHelper

java.lang.Object
  extended by hudson.plugins.testng.util.GraphHelper

public class GraphHelper
extends java.lang.Object

Helper class for trend graph generation


Method Summary
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, java.util.Map<hudson.util.ChartUtil.NumberOnlyBuildLabel,java.lang.String> statusMap, java.lang.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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

redirectWhenGraphUnsupported

public static void redirectWhenGraphUnsupported(org.kohsuke.stapler.StaplerResponse rsp,
                                                org.kohsuke.stapler.StaplerRequest req)
                                         throws java.io.IOException
Throws:
java.io.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,
                                                           java.util.Map<hudson.util.ChartUtil.NumberOnlyBuildLabel,java.lang.String> statusMap,
                                                           java.lang.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 - request
dataset - data set to be displayed on the graph
statusMap - a map with build as key and the test methods execution status (result) as the value
methodUrl - URL to get to the method from a build test result page
Returns:
the chart


Copyright © 2004-2011. All Rights Reserved.