Class TestNGProjectAction

java.lang.Object
hudson.tasks.test.TestResultProjectAction
hudson.plugins.testng.TestNGProjectAction
All Implemented Interfaces:
Action, ModelObject, ProminentProjectAction, io.jenkins.plugins.echarts.AsyncConfigurableTrendChart, io.jenkins.plugins.echarts.AsyncTrendChart

public class TestNGProjectAction extends hudson.tasks.test.TestResultProjectAction implements ProminentProjectAction
Action to associate the TestNG reports with the project
Author:
nullin
  • Constructor Details

    • TestNGProjectAction

      public TestNGProjectAction(Job<?,?> project, boolean escapeTestDescp, boolean escapeExceptionMsg, boolean showFailedBuilds)
  • Method Details

    • getBuildActionClass

      protected Class<TestNGTestResultBuildAction> getBuildActionClass()
    • getEscapeTestDescp

      public boolean getEscapeTestDescp()
    • getEscapeExceptionMsg

      public boolean getEscapeExceptionMsg()
    • getProject

      public Job<?,?> getProject()
      Getter for property 'project'.
      Returns:
      Value for property 'project'.
    • getIconFileName

      public String getIconFileName()
      Specified by:
      getIconFileName in interface Action
      Overrides:
      getIconFileName in class hudson.tasks.test.TestResultProjectAction
    • getDisplayName

      public String getDisplayName()
      Specified by:
      getDisplayName in interface Action
      Specified by:
      getDisplayName in interface 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 Action
      Overrides:
      getUrlName in class hudson.tasks.test.TestResultProjectAction
    • getSearchUrl

      public String getSearchUrl()
    • doGraph

      public void doGraph(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException
      Generates the graph that shows test pass/fail ratio
      Parameters:
      req - -
      rsp - -
      Throws:
      IOException - -
    • getUpUrl

      public String getUpUrl()
    • doGraphMap

      public void doGraphMap(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 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(DataSetBuilder<String,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'.