Package hudson.plugins.testng
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 Summary
Constructors Constructor Description TestNGProjectAction(Job<?,?> project, boolean escapeTestDescp, boolean escapeExceptionMsg, boolean showFailedBuilds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doGraph(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
Generates the graph that shows test pass/fail ratiovoid
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()
Job<?,?>
getProject()
Getter for property 'project'.String
getSearchUrl()
String
getUpUrl()
GeneralizesAbstractBuild.getUpUrl()
toRun
.String
getUrlName()
boolean
isGraphActive()
Returnstrue
if there is a graph to plot.protected void
populateDataSetBuilder(DataSetBuilder<String,ChartUtil.NumberOnlyBuildLabel> dataset)
-
-
-
Constructor Detail
-
TestNGProjectAction
public TestNGProjectAction(Job<?,?> project, boolean escapeTestDescp, boolean escapeExceptionMsg, boolean showFailedBuilds)
-
-
Method Detail
-
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 interfaceAction
- Overrides:
getIconFileName
in classhudson.tasks.test.TestResultProjectAction
-
getDisplayName
public String getDisplayName()
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
- Overrides:
getDisplayName
in classhudson.tasks.test.TestResultProjectAction
-
getGraphName
public String getGraphName()
Getter for property 'graphName'.- Returns:
- Value for property 'graphName'.
-
getUrlName
public String getUrlName()
- Specified by:
getUrlName
in interfaceAction
- Overrides:
getUrlName
in classhudson.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
- -
-
getUpUrl
public String getUpUrl()
GeneralizesAbstractBuild.getUpUrl()
toRun
.
-
doGraphMap
public void doGraphMap(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException
- Throws:
IOException
-
isGraphActive
public boolean isGraphActive()
Returnstrue
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'.
-
-