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

      • TestNGProjectAction

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

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