hudson.plugins.testng
Class TestNGProjectAction

java.lang.Object
  extended by hudson.plugins.testng.TestNGProjectAction
All Implemented Interfaces:
hudson.model.Action, hudson.model.ModelObject, hudson.model.ProminentProjectAction

public class TestNGProjectAction
extends java.lang.Object
implements hudson.model.ProminentProjectAction

Action to associate the TestNG reports with the project

Author:
nullin

Constructor Summary
TestNGProjectAction(hudson.model.AbstractProject<?,?> project, boolean escapeTestDescp, boolean escapeExceptionMsg)
           
 
Method Summary
 void doGraph(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          Generates the graph that shows test pass/fail ratio
 void doGraphMap(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
           
protected  java.lang.Class<TestNGBuildAction> getBuildActionClass()
           
 java.lang.String getDisplayName()
          
 boolean getEscapeExceptionMsg()
           
 boolean getEscapeTestDescp()
           
 int getGraphHeight()
          Getter for property 'graphHeight'.
 java.lang.String getGraphName()
          Getter for property 'graphName'.
 int getGraphWidth()
          Getter for property 'graphWidth'.
 java.lang.String getIconFileName()
          
 TestNGBuildAction getLastCompletedBuildAction()
           
 hudson.model.AbstractProject<?,?> getProject()
          Getter for property 'project'.
 TestResults getResults()
          Returns the latest test results.
 java.lang.String getSearchUrl()
          
 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestNGProjectAction

public TestNGProjectAction(hudson.model.AbstractProject<?,?> project,
                           boolean escapeTestDescp,
                           boolean escapeExceptionMsg)
Method Detail

getBuildActionClass

protected java.lang.Class<TestNGBuildAction> getBuildActionClass()

getEscapeTestDescp

public boolean getEscapeTestDescp()

getEscapeExceptionMsg

public boolean getEscapeExceptionMsg()

getProject

public hudson.model.AbstractProject<?,?> getProject()
Getter for property 'project'.

Returns:
Value for property 'project'.

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'.

Returns:
Value for property 'graphName'.

getUrlName

public java.lang.String getUrlName()

Specified by:
getUrlName in interface hudson.model.Action

getSearchUrl

public java.lang.String getSearchUrl()


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 - -

doGraphMap

public void doGraphMap(org.kohsuke.stapler.StaplerRequest req,
                       org.kohsuke.stapler.StaplerResponse rsp)
                throws java.io.IOException
Throws:
java.io.IOException

isGraphActive

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

Returns:
Value for property 'graphAvailable'.

getResults

public TestResults getResults()
Returns the latest test results.

Returns:
Value for property 'graphAvailable'.

getLastCompletedBuildAction

public TestNGBuildAction getLastCompletedBuildAction()

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'.


Copyright © 2004-2011. All Rights Reserved.