Package io.jenkins.plugins.servicenow
Class RunTestSuiteWithResultsBuilder
- java.lang.Object
-
- hudson.tasks.BuildStepCompatibilityLayer
-
- hudson.tasks.Builder
-
- io.jenkins.plugins.servicenow.ProgressBuilder
-
- io.jenkins.plugins.servicenow.RunTestSuiteWithResultsBuilder
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<Builder>
,BuildStep
,SimpleBuildStep
public class RunTestSuiteWithResultsBuilder extends ProgressBuilder
Build step runs a specified automated test suite. See:- API doc for run test suite: https://developer.servicenow.com/dev.do#!/reference/api/orlando/rest/cicd-api#cicd-POST-testsuite-run?navFilter=sn_cicd
- API doc for get results https://developer.servicenow.com/dev.do#!/reference/api/orlando/rest/cicd-api#cicd-GET-testsuite-results?navFilter=sn_cicd
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RunTestSuiteWithResultsBuilder.DescriptorImpl
-
Nested classes/interfaces inherited from interface hudson.tasks.BuildStep
BuildStep.PublisherList
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Nested classes/interfaces inherited from interface jenkins.tasks.SimpleBuildStep
SimpleBuildStep.LastBuildAction, SimpleBuildStep.LastBuildActionFactory
-
-
Field Summary
-
Fields inherited from class io.jenkins.plugins.servicenow.ProgressBuilder
workspace
-
Fields inherited from interface hudson.tasks.BuildStep
BUILDERS, PUBLISHERS
-
-
Constructor Summary
Constructors Constructor Description RunTestSuiteWithResultsBuilder(String credentialsId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBrowserName()
String
getBrowserVersion()
String
getOsName()
String
getOsVersion()
String
getResponseBodyFormat()
String
getTestSuiteName()
String
getTestSuiteSysId()
Boolean
getWithResults()
protected boolean
perform(Run<?,?> run, TaskListener taskListener, Integer progressCheckInterval)
void
setBrowserName(String browserName)
void
setBrowserVersion(String browserVersion)
void
setOsName(String osName)
void
setOsVersion(String osVersion)
void
setResponseBodyFormat(String responseBodyFormat)
void
setTestSuiteName(String testSuiteName)
void
setTestSuiteSysId(String testSuiteSysId)
protected void
setupBuilderParameters(EnvVars environment)
void
setWithResults(Boolean withResults)
-
Methods inherited from class io.jenkins.plugins.servicenow.ProgressBuilder
buildErrorDetailFromFailedResponse, checkProgress, getApiVersion, getClientFactory, getCredentialsId, getGlobalSNParams, getRestClient, getUrl, getValue, perform, setApiVersion, setClientFactory, setCredentialsId, setRestClient, setupParametersAfterBuildStep, setUrl
-
Methods inherited from class hudson.tasks.Builder
all, getDescriptor, getRequiredMonitorService, prebuild
-
Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer
getProjectAction, getProjectAction, getProjectActions, perform, perform, prebuild
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface hudson.tasks.BuildStep
getProjectAction, getProjectActions, getRequiredMonitorService, perform, prebuild
-
Methods inherited from interface jenkins.tasks.SimpleBuildStep
perform, perform, requiresWorkspace
-
-
-
-
Constructor Detail
-
RunTestSuiteWithResultsBuilder
@DataBoundConstructor public RunTestSuiteWithResultsBuilder(String credentialsId)
-
-
Method Detail
-
getBrowserName
public String getBrowserName()
-
setBrowserName
@DataBoundSetter public void setBrowserName(String browserName)
-
getBrowserVersion
public String getBrowserVersion()
-
setBrowserVersion
@DataBoundSetter public void setBrowserVersion(String browserVersion)
-
getOsName
public String getOsName()
-
setOsName
@DataBoundSetter public void setOsName(String osName)
-
getOsVersion
public String getOsVersion()
-
setOsVersion
@DataBoundSetter public void setOsVersion(String osVersion)
-
getTestSuiteName
public String getTestSuiteName()
-
setTestSuiteName
@DataBoundSetter public void setTestSuiteName(String testSuiteName)
-
getTestSuiteSysId
public String getTestSuiteSysId()
-
setTestSuiteSysId
@DataBoundSetter public void setTestSuiteSysId(String testSuiteSysId)
-
getResponseBodyFormat
public String getResponseBodyFormat()
-
setResponseBodyFormat
@DataBoundSetter public void setResponseBodyFormat(String responseBodyFormat)
-
getWithResults
public Boolean getWithResults()
-
setWithResults
@DataBoundSetter public void setWithResults(Boolean withResults)
-
perform
protected boolean perform(Run<?,?> run, @NonNull TaskListener taskListener, Integer progressCheckInterval)
- Specified by:
perform
in classProgressBuilder
-
setupBuilderParameters
protected void setupBuilderParameters(EnvVars environment)
- Overrides:
setupBuilderParameters
in classProgressBuilder
-
-