|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecthudson.tasks.BuildStepCompatibilityLayer
hudson.tasks.Publisher
hudson.tasks.Recorder
hudson.plugins.klaros.KlarosTestResultPublisher
public class KlarosTestResultPublisher
Klaros-Testmanagement test result publisher class. When a publish is performed, the
perform(AbstractBuild, Launcher, BuildListener) method will be invoked.
| Nested Class Summary | |
|---|---|
static class |
KlarosTestResultPublisher.DescriptorImpl
Descriptor for KlarosImportPublisher class. |
| Nested classes/interfaces inherited from class hudson.tasks.Publisher |
|---|
hudson.tasks.Publisher.DescriptorExtensionListImpl |
| Nested classes/interfaces inherited from interface hudson.ExtensionPoint |
|---|
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson |
| Nested classes/interfaces inherited from interface hudson.tasks.BuildStep |
|---|
hudson.tasks.BuildStep.PublisherList |
| Field Summary |
|---|
| Fields inherited from interface hudson.tasks.BuildStep |
|---|
BUILDERS, PUBLISHERS |
| Constructor Summary | |
|---|---|
KlarosTestResultPublisher(java.lang.String config,
java.lang.String iteration,
java.lang.String env,
java.lang.String sut,
boolean createTestSuite,
java.lang.String type,
java.lang.String pathTestResults,
ResultSet[] resultSets,
java.lang.String url,
java.lang.String username,
java.lang.String password)
Instantiates a new Klaros test result publisher. |
|
| Method Summary | |
|---|---|
KlarosTestResultPublisher.DescriptorImpl |
descriptor()
Descriptor. |
java.lang.String |
getConfig()
Gets the Klaros project id. |
hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher> |
getDescriptor()
|
java.lang.String |
getEnv()
Gets the Klaros test environment id. |
java.lang.String |
getIteration()
Gets the Klaros iteration i. |
java.lang.String |
getKlarosUrl(java.lang.String sourceURL)
|
java.lang.String |
getPassword()
Gets the password. |
java.lang.String |
getPathTestResults()
Deprecated. use getResultSets() instead |
hudson.tasks.BuildStepMonitor |
getRequiredMonitorService()
|
ResultSet[] |
getResultSets()
Gets the result sets. |
java.lang.String |
getSut()
Gets the Klaros system under test id. |
java.lang.String |
getUrl()
Gets the url. |
java.lang.String |
getUrl(java.lang.String sourceURL)
Gets the URL of the given name, or returns null. |
java.util.List<java.lang.String> |
getUrls()
Gets the urls. |
java.lang.String |
getUsername()
Gets the username. |
boolean |
isCreateTestSuite()
|
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(java.lang.String value)
Sets the Klaros project id. |
void |
setCreateTestSuite(boolean createTestSuite)
|
void |
setEnv(java.lang.String value)
Sets the Klaros test environment id. |
void |
setIteration(java.lang.String iteration)
Sets the Klaros iteration id. |
void |
setPassword(java.lang.String value)
Sets the password. |
void |
setPathTestResults(java.lang.String value)
Deprecated. use setResultSets() instead |
void |
setResultSets(ResultSet[] values)
Sets the result sets. |
void |
setSut(java.lang.String value)
Sets the Klaros system under test id. |
void |
setUrl(java.lang.String value)
Sets the url. |
void |
setUsername(java.lang.String value)
Sets the username. |
| Methods inherited from class hudson.tasks.Publisher |
|---|
all, getProjectAction, needsToRunAfterFinalized, prebuild |
| Methods inherited from class hudson.tasks.BuildStepCompatibilityLayer |
|---|
getProjectAction, getProjectActions, 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, prebuild |
| Constructor Detail |
|---|
@DataBoundConstructor
public KlarosTestResultPublisher(java.lang.String config,
java.lang.String iteration,
java.lang.String env,
java.lang.String sut,
boolean createTestSuite,
java.lang.String type,
java.lang.String pathTestResults,
ResultSet[] resultSets,
java.lang.String url,
java.lang.String username,
java.lang.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 usetype - 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 password| Method Detail |
|---|
public KlarosTestResultPublisher.DescriptorImpl descriptor()
public java.lang.String getConfig()
public void setConfig(java.lang.String value)
value - the new project idpublic java.lang.String getIteration()
public void setIteration(java.lang.String iteration)
iteration - the new iteration idpublic java.lang.String getEnv()
public void setEnv(java.lang.String value)
value - the new test environment idpublic java.lang.String getUrl()
public void setUrl(java.lang.String value)
value - the new urlpublic java.lang.String getUsername()
public void setUsername(java.lang.String value)
value - the new usernamepublic java.lang.String getPassword()
public void setPassword(java.lang.String value)
value - the new passwordpublic java.lang.String getSut()
public void setSut(java.lang.String value)
value - the new system under test idpublic boolean isCreateTestSuite()
public void setCreateTestSuite(boolean createTestSuite)
public java.lang.String getPathTestResults()
public void setPathTestResults(java.lang.String value)
value - the new path test resultspublic ResultSet[] getResultSets()
public void setResultSets(ResultSet[] values)
values - the new result setspublic java.util.List<java.lang.String> getUrls()
public java.lang.String getKlarosUrl(java.lang.String sourceURL)
public boolean perform(hudson.model.AbstractBuild<?,?> build,
hudson.Launcher launcher,
hudson.model.BuildListener listener)
perform in interface hudson.tasks.BuildStepperform in class hudson.tasks.BuildStepCompatibilityLayerbuild - the current buildlauncher - the launcherlistener - the listener
public java.lang.String getUrl(java.lang.String sourceURL)
sourceURL - the URL of the klaros server import servlet
public hudson.tasks.BuildStepMonitor getRequiredMonitorService()
getRequiredMonitorService in interface hudson.tasks.BuildSteppublic hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher> getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.tasks.Publisher>getDescriptor in class hudson.tasks.Recorder
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||