public class TotalTestCTBuilder
extends hudson.tasks.Builder
implements jenkins.tasks.SimpleBuildStep
| Modifier and Type | Class and Description |
|---|---|
static class |
TotalTestCTBuilder.DescriptorImpl |
jenkins.tasks.SimpleBuildStep.LastBuildAction, jenkins.tasks.SimpleBuildStep.LastBuildActionFactory| Constructor and Description |
|---|
TotalTestCTBuilder(String environmentId,
String folderPath,
String serverUrl,
String credentialsId) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAccountInfo()
Return the accounting information to be used durring execution of the Functional Test
|
int |
getCcThreshold()
Code Coverage accessor
|
boolean |
getCompareJUnits()
Returns if comparing JUnits
|
String |
getCredentialsId()
Environment accessor
|
String |
getEnvironmentId()
environment where test is executed
|
String |
getFolderPath()
environment where test is executed
|
boolean |
getHaltAtFailure()
Should Functional Test scenarios execution stop when an error occurs.
|
boolean |
getRecursive()
Recursive search for Functional Test scenarios
|
String |
getReportFolder()
Returns the location of the report folder
|
String |
getServerUrl()
Server URL accessor
|
String |
getSonarVersion()
Returns the Sonar version
|
String |
getSourceFolder()
The location of ths Source Folder
|
boolean |
getStopIfTestFailsOrThresholdReached()
When to stop Functional Test suite or scenario.
|
boolean |
getUploadToServer()
Upload results to the server
|
void |
perform(hudson.model.Run<?,?> build,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener) |
void |
setAccountInfo(String accountInfo)
Set the accounting information for the job execution.
|
void |
setCcThreshold(int ccThreshold)
Set the Code Coverage threshold
|
void |
setCompareJUnits(boolean compareJUnits)
Set the if comparing JUnits.
|
void |
setHaltAtFailure(boolean haltAtFailure)
Set the flag to halt when a failure has been detected.
|
void |
setRecursive(boolean recursive)
Set the flag to look for test scenarios recursively from the sourceFolder.
|
void |
setReportFolder(String reportFolder)
Set the Report Folder location
|
void |
setSonarVersion(String sonarVersion)
Set the Sonar Version
|
void |
setSourceFolder(String sourceFolder)
Set the Source Folder location
|
void |
setStopIfTestFailsOrThresholdReached(boolean stopIfTestFailsOrThresholdReached)
Set the flag to stop execution of the test if a failure or threshold has been reached.
|
void |
setUploadToServer(boolean uploadToServer)
Set the flag to upload the results to the server.
|
void |
validateParameters(hudson.Launcher launcher,
hudson.model.TaskListener listener,
hudson.model.Item project)
Validates the configuration parameters.
|
all, getDescriptor, getRequiredMonitorService, prebuildgetProjectAction, getProjectAction, getProjectActions, perform, perform, prebuildpublic String getEnvironmentId()
String value of environmentIdpublic String getFolderPath()
String value of folder pathpublic String getServerUrl()
String value of server Urlpublic String getCredentialsId()
String value of user Idpublic int getCcThreshold()
int Code Coverage thresholdpublic boolean getRecursive()
true if recursive is selected, otherwise false.public boolean getUploadToServer()
true if uploading results to the server is selected, otherwise false.public boolean getHaltAtFailure()
true if stop at first error is selected, otherwise false.public String getSonarVersion()
String Sonar version.public String getSourceFolder()
String The value set for the Source folder.public String getReportFolder()
String The folder to put the Reports.public boolean getStopIfTestFailsOrThresholdReached()
true if the test has failed or the threshold has been reached, otherwise false.public String getAccountInfo()
@DataBoundSetter public void setSourceFolder(String sourceFolder)
sourceFolder - The Source Folder location.@DataBoundSetter public void setSonarVersion(String sonarVersion)
sonarVersion - The version of Sonar.@DataBoundSetter public void setReportFolder(String reportFolder)
reportFolder - The report folder location.@DataBoundSetter public void setCcThreshold(int ccThreshold)
ccThreshold - The vale to be set as the Code Coverage threshold.@DataBoundSetter public void setHaltAtFailure(boolean haltAtFailure)
haltAtFailure - true if the test should stop at failure, otherwise false.@DataBoundSetter public void setRecursive(boolean recursive)
recursive - true if files should be searched recursively, otherwise false.@DataBoundSetter public void setUploadToServer(boolean uploadToServer)
uploadToServer - true if results should be uploaded to the server, otherwise false.@DataBoundSetter public void setStopIfTestFailsOrThresholdReached(boolean stopIfTestFailsOrThresholdReached)
stopIfTestFailsOrThresholdReached - true if if the test should be stopped with failures, otherwise false.@DataBoundSetter public void setAccountInfo(String accountInfo)
accountInfo - The accounting information to be used when this test is executed.@DataBoundSetter public void setCompareJUnits(boolean compareJUnits)
compareJUnits - true if JUnits should be compare, otherwise false.public boolean getCompareJUnits()
true indicates comparing JUnits. false
indicates not comparing JUnits.public void perform(hudson.model.Run<?,?> build,
hudson.FilePath workspace,
hudson.Launcher launcher,
hudson.model.TaskListener listener)
throws InterruptedException,
IOException
perform in interface jenkins.tasks.SimpleBuildStepInterruptedExceptionIOExceptionpublic void validateParameters(hudson.Launcher launcher,
hudson.model.TaskListener listener,
hudson.model.Item project)
launcher - An instance of Launcher for launching the plugin.listener - An instance of TaskListener for the build listener.project - An instance of Item for the Jenkins project.Copyright © 2016–2020. All rights reserved.