hudson.plugins.testng
Class TestNGProjectAction

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

public class TestNGProjectAction
extends hudson.tasks.test.TestResultProjectAction
implements hudson.model.ProminentProjectAction

Action to associate the TestNG reports with the project

Author:
nullin

Field Summary
 
Fields inherited from class hudson.tasks.test.TestResultProjectAction
project
 
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  Class<TestNGTestResultBuildAction> getBuildActionClass()
           
 String getDisplayName()
          
 boolean getEscapeExceptionMsg()
           
 boolean getEscapeTestDescp()
           
 int getGraphHeight()
          Getter for property 'graphHeight'.
 String getGraphName()
          Getter for property 'graphName'.
 int getGraphWidth()
          Getter for property 'graphWidth'.
 String getIconFileName()
          
 TestNGTestResultBuildAction getLastCompletedBuildAction()
           
 hudson.model.AbstractProject<?,?> getProject()
          Getter for property 'project'.
 String getSearchUrl()
          
 String getUrlName()
          
 boolean isGraphActive()
          Returns true if there is a graph to plot.
protected  void populateDataSetBuilder(hudson.util.DataSetBuilder<String,hudson.util.ChartUtil.NumberOnlyBuildLabel> dataset)
           
 
Methods inherited from class hudson.tasks.test.TestResultProjectAction
doFlipTrend, doTrend, doTrendMap, getLastTestResultAction
 
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 Class<TestNGTestResultBuildAction> 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 String getIconFileName()

Specified by:
getIconFileName in interface hudson.model.Action
Overrides:
getIconFileName in class hudson.tasks.test.TestResultProjectAction

getDisplayName

public String getDisplayName()

Specified by:
getDisplayName in interface hudson.model.Action
Specified by:
getDisplayName in interface hudson.model.ModelObject
Overrides:
getDisplayName in class hudson.tasks.test.TestResultProjectAction

getGraphName

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

Returns:
Value for property 'graphName'.

getUrlName

public String getUrlName()

Specified by:
getUrlName in interface hudson.model.Action
Overrides:
getUrlName in class hudson.tasks.test.TestResultProjectAction

getSearchUrl

public String getSearchUrl()


doGraph

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

Parameters:
req - -
rsp - -
Throws:
IOException - -

doGraphMap

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

isGraphActive

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

Returns:
Value for property 'graphAvailable'.

getLastCompletedBuildAction

public TestNGTestResultBuildAction getLastCompletedBuildAction()

populateDataSetBuilder

protected void populateDataSetBuilder(hudson.util.DataSetBuilder<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-2013. All Rights Reserved.