public class KlarosTestResultPublisher extends hudson.tasks.Recorder implements Serializable
perform(AbstractBuild, Launcher, BuildListener)
method will be invoked.Modifier and Type | Class and Description |
---|---|
static class |
KlarosTestResultPublisher.DescriptorImpl
Descriptor for KlarosImportPublisher class.
|
hudson.tasks.Publisher.DescriptorExtensionListImpl
Constructor and Description |
---|
KlarosTestResultPublisher(String config,
String iteration,
String env,
String sut,
boolean createTestSuite,
String type,
String pathTestResults,
ResultSet[] resultSets,
String url,
String username,
String password)
Instantiates a new Klaros test result publisher.
|
Modifier and Type | Method and Description |
---|---|
KlarosTestResultPublisher.DescriptorImpl |
descriptor()
Descriptor.
|
String |
getConfig()
Gets the Klaros project id.
|
hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher> |
getDescriptor() |
String |
getEnv()
Gets the Klaros test environment id.
|
String |
getIteration()
Gets the Klaros iteration id.
|
String |
getKlarosUrl(String sourceURL) |
String |
getPassword()
Gets the password.
|
String |
getPathTestResults()
Deprecated.
use getResultSets() instead
|
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService() |
ResultSet[] |
getResultSets()
Gets the result sets.
|
String |
getSut()
Gets the Klaros system under test id.
|
ResultFormat[] |
getTypes()
Gets the valid result types.
|
String |
getUrl()
Gets the url.
|
String |
getUrl(String sourceURL)
Gets the URL of the given name, or returns null.
|
List<String> |
getUrls()
Gets the urls.
|
String |
getUsername()
Gets the username.
|
boolean |
isCreateTestSuite()
Checks if the create test suite flag is set.
|
boolean |
perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
Runs the step over the given build and reports the progress to the listener.
|
void |
setConfig(String value)
Sets the Klaros project id.
|
void |
setCreateTestSuite(boolean createTestSuite)
Sets the create test suite flag.
|
void |
setEnv(String value)
Sets the Klaros test environment id.
|
void |
setIteration(String iteration)
Sets the Klaros iteration id.
|
void |
setPassword(String value)
Sets the password.
|
void |
setPathTestResults(String value)
Deprecated.
use setResultSets() instead
|
void |
setResultSets(ResultSet[] values)
Sets the result sets.
|
void |
setSut(String value)
Sets the Klaros system under test id.
|
void |
setTypes(ResultFormat[] types)
Sets the valid result types.
|
void |
setUrl(String value)
Sets the url.
|
void |
setUsername(String value)
Sets the username.
|
all, getProjectAction, needsToRunAfterFinalized, prebuild
@DataBoundConstructor public KlarosTestResultPublisher(String config, String iteration, String env, String sut, boolean createTestSuite, String type, String pathTestResults, ResultSet[] resultSets, String url, String username, String password)
config
- the Klaros project configuration id to useiteration
- the optional Klaros iteration id to useenv
- the Klaros test environment id to usesut
- the Klaros system under test id to usecreateTestSuite
- if true create a test suite automaticallytype
- the type of test result to importpathTestResults
- the path to the test resultsresultSets
- the test result setsurl
- the Klaros application urlusername
- the optional Klaros login user namepassword
- the optional Klaros login passwordpublic KlarosTestResultPublisher.DescriptorImpl descriptor()
public String getConfig()
public void setConfig(String value)
value
- the new project idpublic String getIteration()
public void setIteration(String iteration)
iteration
- the new iteration idpublic String getEnv()
public void setEnv(String value)
value
- the new test environment idpublic String getUrl()
public void setUrl(String value)
value
- the new urlpublic String getUsername()
public void setUsername(String value)
value
- the new usernamepublic String getPassword()
public void setPassword(String value)
value
- the new passwordpublic String getSut()
public void setSut(String value)
value
- the new system under test idpublic boolean isCreateTestSuite()
public void setCreateTestSuite(boolean createTestSuite)
createTestSuite
- the new create test suite flagpublic ResultFormat[] getTypes()
public void setTypes(ResultFormat[] types)
types
- the new result types@Deprecated public String getPathTestResults()
@Deprecated public void setPathTestResults(String value)
value
- the new path test resultspublic ResultSet[] getResultSets()
public void setResultSets(ResultSet[] values)
values
- the new result setspublic boolean perform(hudson.model.AbstractBuild<?,?> build, hudson.Launcher launcher, hudson.model.BuildListener listener)
perform
in interface hudson.tasks.BuildStep
perform
in class hudson.tasks.BuildStepCompatibilityLayer
build
- the current buildlauncher
- the launcherlistener
- the listenerpublic String getUrl(String sourceURL)
sourceURL
- the URL of the klaros server import servletpublic hudson.tasks.BuildStepMonitor getRequiredMonitorService()
getRequiredMonitorService
in interface hudson.tasks.BuildStep
public hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher> getDescriptor()
getDescriptor
in interface hudson.model.Describable<hudson.tasks.Publisher>
getDescriptor
in class hudson.tasks.Recorder
Copyright © 2009–2019 verit Informationssysteme GmbH. All rights reserved.