hudson.plugins.testng
Class AbstractBuildReport<T extends hudson.model.AbstractBuild<?,?>>

java.lang.Object
  extended by hudson.plugins.helpers.AbstractBuildAction<T>
      extended by hudson.plugins.testng.AbstractBuildReport<T>
All Implemented Interfaces:
hudson.model.Action, hudson.model.HealthReportingAction, hudson.model.ModelObject, java.io.Serializable
Direct Known Subclasses:
BuildAggregatedReport, BuildIndividualReport

public abstract class AbstractBuildReport<T extends hudson.model.AbstractBuild<?,?>>
extends AbstractBuildAction<T>
implements hudson.model.HealthReportingAction

See Also:
Serialized Form

Constructor Summary
AbstractBuildReport(java.util.Collection<TestResults> results)
          Constructs a new AbstractBuildReport.
 
Method Summary
 void doGraph(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Generates the graph that shows test pass/fail ratio
 java.lang.String getDisplayName()
          
 java.lang.Object getDynamic(java.lang.String token, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
           
 int getGraphHeight()
          Getter for property 'graphHeight'.
 java.lang.String getGraphName()
          Getter for property 'graphName'.
 int getGraphWidth()
          Getter for property 'graphWidth'.
 java.lang.String getIconFileName()
          
 TestResults getPreviousResults()
           
 TestResults getResults()
           
 java.lang.String getSummary()
          The summary of this build report for display on the build index page.
 java.lang.String getUrlName()
          
 boolean isGraphActive()
          Returns true if there is a graph to plot.
protected  void populateDataSetBuilder(hudson.util.DataSetBuilder<java.lang.String,hudson.util.ChartUtil.NumberOnlyBuildLabel> dataset)
           
 
Methods inherited from class hudson.plugins.helpers.AbstractBuildAction
getBuild, isFloatingBoxActive, setBuild
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface hudson.model.HealthReportingAction
getBuildHealth
 

Constructor Detail

AbstractBuildReport

public AbstractBuildReport(java.util.Collection<TestResults> results)
Constructs a new AbstractBuildReport.

Parameters:
results - - testng test results
Method Detail

getResults

public TestResults getResults()

getPreviousResults

public TestResults getPreviousResults()

getSummary

public java.lang.String getSummary()
The summary of this build report for display on the build index page.

Overrides:
getSummary in class AbstractBuildAction<T extends hudson.model.AbstractBuild<?,?>>
Returns:

getIconFileName

public java.lang.String getIconFileName()

Specified by:
getIconFileName in interface hudson.model.Action

getDisplayName

public java.lang.String getDisplayName()

Specified by:
getDisplayName in interface hudson.model.Action
Specified by:
getDisplayName in interface hudson.model.ModelObject

getGraphName

public java.lang.String getGraphName()
Getter for property 'graphName'.

Overrides:
getGraphName in class AbstractBuildAction<T extends hudson.model.AbstractBuild<?,?>>
Returns:
Value for property 'graphName'.

getUrlName

public java.lang.String getUrlName()

Specified by:
getUrlName in interface hudson.model.Action

doGraph

public void doGraph(org.kohsuke.stapler.StaplerRequest req,
                    org.kohsuke.stapler.StaplerResponse rsp)
             throws java.io.IOException
Generates the graph that shows test pass/fail ratio

Parameters:
req - -
rsp - -
Throws:
java.io.IOException - -

isGraphActive

public boolean isGraphActive()
Returns true if there is a graph to plot.

Overrides:
isGraphActive in class AbstractBuildAction<T extends hudson.model.AbstractBuild<?,?>>
Returns:
Value for property 'graphAvailable'.

populateDataSetBuilder

protected void populateDataSetBuilder(hudson.util.DataSetBuilder<java.lang.String,hudson.util.ChartUtil.NumberOnlyBuildLabel> dataset)

getGraphWidth

public int getGraphWidth()
Getter for property 'graphWidth'.

Returns:
Value for property 'graphWidth'.

getGraphHeight

public int getGraphHeight()
Getter for property 'graphHeight'.

Returns:
Value for property 'graphHeight'.

getDynamic

public java.lang.Object getDynamic(java.lang.String token,
                                   org.kohsuke.stapler.StaplerRequest req,
                                   org.kohsuke.stapler.StaplerResponse rsp)


Copyright © 2010. All Rights Reserved.