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
-
Field Summary
Fields inherited from class hudson.tasks.test.TestResultProjectAction
job, project
-
Constructor Summary
ConstructorsConstructorDescriptionTestNGProjectAction
(Job<?, ?> project, boolean escapeTestDescp, boolean escapeExceptionMsg, boolean showFailedBuilds) -
Method Summary
Modifier and TypeMethodDescriptionvoid
doGraph
(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) Generates the graph that shows test pass/fail ratiovoid
doGraphMap
(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) protected Class<TestNGTestResultBuildAction>
boolean
boolean
int
Getter for property 'graphHeight'.Getter for property 'graphName'.int
Getter for property 'graphWidth'.Job<?,
?> Getter for property 'project'.getUpUrl()
GeneralizesAbstractBuild.getUpUrl()
toRun
.boolean
Returnstrue
if there is a graph to plot.protected void
Methods inherited from class hudson.tasks.test.TestResultProjectAction
createChartModel, doFlipTrend, doTrend, doTrendMap, getBuildTrendModel, getConfigurableBuildTrendModel, getLastTestResultAction, isTrendVisible
-
Constructor Details
-
TestNGProjectAction
public TestNGProjectAction(Job<?, ?> project, boolean escapeTestDescp, boolean escapeExceptionMsg, boolean showFailedBuilds)
-
-
Method Details
-
getBuildActionClass
-
getEscapeTestDescp
public boolean getEscapeTestDescp() -
getEscapeExceptionMsg
public boolean getEscapeExceptionMsg() -
getProject
Getter for property 'project'.- Returns:
- Value for property 'project'.
-
getIconFileName
- Specified by:
getIconFileName
in interfaceAction
- Overrides:
getIconFileName
in classhudson.tasks.test.TestResultProjectAction
-
getDisplayName
- Specified by:
getDisplayName
in interfaceAction
- Specified by:
getDisplayName
in interfaceModelObject
- Overrides:
getDisplayName
in classhudson.tasks.test.TestResultProjectAction
-
getGraphName
Getter for property 'graphName'.- Returns:
- Value for property 'graphName'.
-
getUrlName
- Specified by:
getUrlName
in interfaceAction
- Overrides:
getUrlName
in classhudson.tasks.test.TestResultProjectAction
-
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
GeneralizesAbstractBuild.getUpUrl()
toRun
. -
doGraphMap
public void doGraphMap(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException - Throws:
IOException
-
isGraphActive
public boolean isGraphActive()Returnstrue
if there is a graph to plot.- Returns:
- Value for property 'graphAvailable'.
-
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'.
-