public class TPTReportPage extends Object implements jenkins.model.RunAction2, org.kohsuke.stapler.StaplerProxy
| Constructor and Description |
|---|
TPTReportPage(hudson.model.AbstractBuild<?,?> build,
ArrayList<com.piketec.jenkins.plugins.tpt.publisher.TPTTestCase> failedTests,
ArrayList<com.piketec.jenkins.plugins.tpt.publisher.TPTFile> tptFiles)
Creates a new TPTRportPage
|
| Modifier and Type | Method and Description |
|---|---|
hudson.model.AbstractBuild<?,?> |
getBuild() |
String |
getDisplayName() |
Object |
getDynamic(String name,
org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Host images, HTML report and failed report
|
int |
getErrorCount() |
int |
getFailedCount() |
List<com.piketec.jenkins.plugins.tpt.publisher.TPTTestCase> |
getFailedTests() |
String |
getIconFileName() |
int |
getInconclusiveCount() |
int |
getNumberFromHistory(int failedSince)
Used to calculate the actual build number of the 'failed since' build, failed since is always
>=1
|
int |
getPassedCount() |
hudson.model.Run |
getRun() |
Object |
getTarget() |
List<com.piketec.jenkins.plugins.tpt.publisher.TPTFile> |
getTptFiles() |
String |
getUrlName() |
boolean |
isTrustSlavesAndUsers() |
void |
onAttached(hudson.model.Run<?,?> run) |
void |
onLoad(hudson.model.Run<?,?> run) |
void |
setBuild(hudson.model.AbstractBuild<?,?> build)
Set the Jenkins build
|
void |
setErrorCount(int errorCount)
Set the number of test cases with execution error
|
void |
setFailedCount(int failedCount)
Set the number of failed test cases
|
void |
setFailedTests(ArrayList<com.piketec.jenkins.plugins.tpt.publisher.TPTTestCase> failedTests)
Set the list of failed test cases
|
void |
setInconclusiveCount(int inconclusiveCount)
Set the number of inconclusive test cases
|
void |
setPassedCount(int passedCount)
Set the number of passed test cases
|
void |
setTptFiles(List<com.piketec.jenkins.plugins.tpt.publisher.TPTFile> tptFiles)
Set the list of executed TPT files
|
public TPTReportPage(hudson.model.AbstractBuild<?,?> build,
ArrayList<com.piketec.jenkins.plugins.tpt.publisher.TPTTestCase> failedTests,
ArrayList<com.piketec.jenkins.plugins.tpt.publisher.TPTFile> tptFiles)
build - The Jnekins buildfailedTests - The list of failed test casestptFiles - The List of TPT filespublic String getIconFileName()
getIconFileName in interface hudson.model.Actionpublic String getDisplayName()
getDisplayName in interface hudson.model.ActiongetDisplayName in interface hudson.model.ModelObjectpublic String getUrlName()
getUrlName in interface hudson.model.Actionpublic hudson.model.AbstractBuild<?,?> getBuild()
public void setBuild(hudson.model.AbstractBuild<?,?> build)
build - The Jenkins buildpublic void onAttached(hudson.model.Run<?,?> run)
onAttached in interface jenkins.model.RunAction2public void onLoad(hudson.model.Run<?,?> run)
onLoad in interface jenkins.model.RunAction2public hudson.model.Run getRun()
public Object getTarget()
getTarget in interface org.kohsuke.stapler.StaplerProxypublic List<com.piketec.jenkins.plugins.tpt.publisher.TPTFile> getTptFiles()
public void setTptFiles(List<com.piketec.jenkins.plugins.tpt.publisher.TPTFile> tptFiles)
tptFiles - The list of executed TPT filespublic List<com.piketec.jenkins.plugins.tpt.publisher.TPTTestCase> getFailedTests()
public void setFailedTests(ArrayList<com.piketec.jenkins.plugins.tpt.publisher.TPTTestCase> failedTests)
failedTests - The list of failed test casespublic int getPassedCount()
public void setPassedCount(int passedCount)
passedCount - The number of passed test casespublic int getInconclusiveCount()
public void setInconclusiveCount(int inconclusiveCount)
inconclusiveCount - The number of inconclusive test casespublic int getErrorCount()
public void setErrorCount(int errorCount)
errorCount - The number of test cases with execution errorpublic int getFailedCount()
public void setFailedCount(int failedCount)
failedCount - The number of failed test casespublic boolean isTrustSlavesAndUsers()
public int getNumberFromHistory(int failedSince)
failedSince - The count of builds in the past that should have been unstable.public Object getDynamic(String name, org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
name - string on the requested urlreq - The requestrsp - The responseCopyright © 2016–2018 PikeTec GmbH. All rights reserved.