Log Message
JENKINS-27596: Support the creation of test suites on test result import Task-Url: https://issues.jenkins-ci.org/browse/JENKINS-27596
Modified Paths
- trunk/hudson/plugins/klaros-testmanagement/src/main/java/hudson/plugins/klaros/KlarosTestResultPublisher.java
- trunk/hudson/plugins/klaros-testmanagement/src/main/resources/hudson/plugins/klaros/KlarosTestResultPublisher/config.jelly
- trunk/hudson/plugins/klaros-testmanagement/src/main/resources/hudson/plugins/klaros/KlarosTestResultPublisher/config.properties
- trunk/hudson/plugins/klaros-testmanagement/src/main/resources/hudson/plugins/klaros/KlarosTestResultPublisher/config_de.properties
Diff
Modified: trunk/hudson/plugins/klaros-testmanagement/src/main/java/hudson/plugins/klaros/KlarosTestResultPublisher.java (41269 => 41270)
--- trunk/hudson/plugins/klaros-testmanagement/src/main/java/hudson/plugins/klaros/KlarosTestResultPublisher.java 2015-03-25 16:09:20 UTC (rev 41269)
+++ trunk/hudson/plugins/klaros-testmanagement/src/main/java/hudson/plugins/klaros/KlarosTestResultPublisher.java 2015-03-25 16:36:09 UTC (rev 41270)
@@ -108,6 +108,9 @@
/** The password used to authenticate with Klaros. */
private String password;
+ /** The create test suite flag. */
+ private boolean createTestSuite;
+
/**
* Instantiates a new Klaros test result publisher.
*
@@ -123,13 +126,14 @@
*/
@DataBoundConstructor
public KlarosTestResultPublisher(final String config, final String env,
- final String sut, final String type, final String pathTestResults,
+ final String sut, final boolean createTestSuite, final String type, final String pathTestResults,
final ResultSet[] resultSets, final String url, final String username,
final String password) {
this.config = config;
this.env = env;
this.sut = sut;
+ this.createTestSuite = createTestSuite;
this.pathTestResults = pathTestResults;
this.resultSets = resultSets;
// Migrate old settings
@@ -273,6 +277,16 @@
sut = StringUtils.trim(value);
}
+ public boolean isCreateTestSuite() {
+
+ return createTestSuite;
+ }
+
+ public void setCreateTestSuite(boolean createTestSuite) {
+
+ this.createTestSuite = createTestSuite;
+ }
+
/**
* Gets the path test results.
*
@@ -534,6 +548,9 @@
StringBuffer query = new StringBuffer("config=").append(config)
.append("&env=").append(env).append("&sut=").append(sut)
.append("&type=").append(type);
+ if (createTestSuite) {
+ query.append("&createTestSuiteResults=true");
+ }
if (username != null && !username.equals("")) {
query.append("&username=").append(username).append("&password=")
.append(password);
Modified: trunk/hudson/plugins/klaros-testmanagement/src/main/resources/hudson/plugins/klaros/KlarosTestResultPublisher/config.jelly (41269 => 41270)
--- trunk/hudson/plugins/klaros-testmanagement/src/main/resources/hudson/plugins/klaros/KlarosTestResultPublisher/config.jelly 2015-03-25 16:09:20 UTC (rev 41269)
+++ trunk/hudson/plugins/klaros-testmanagement/src/main/resources/hudson/plugins/klaros/KlarosTestResultPublisher/config.jelly 2015-03-25 16:36:09 UTC (rev 41270)
@@ -76,6 +76,10 @@
<f:textbox field="sut" />
</f:entry>
+ <f:entry title="${%CreateTestSuite}">
+ <f:checkbox field="createTestSuite" />
+ </f:entry>
+
<f:entry title="${%TestResults}" name="resultSets"
description="${%ReportDescription('http://ant.apache.org/manual/Types/fileset.html')}">
<f:repeatable var="resultSet" items="${instance.resultSets}" name="resultSets" minimum="1" noAddButton="false">
Modified: trunk/hudson/plugins/klaros-testmanagement/src/main/resources/hudson/plugins/klaros/KlarosTestResultPublisher/config.properties (41269 => 41270)
--- trunk/hudson/plugins/klaros-testmanagement/src/main/resources/hudson/plugins/klaros/KlarosTestResultPublisher/config.properties 2015-03-25 16:09:20 UTC (rev 41269)
+++ trunk/hudson/plugins/klaros-testmanagement/src/main/resources/hudson/plugins/klaros/KlarosTestResultPublisher/config.properties 2015-03-25 16:36:09 UTC (rev 41270)
@@ -25,6 +25,7 @@
ProjectID=Project ID
TestEnvironmentID=Test Environment ID
SystemUnderTestID=System Under Test (SUT) ID
+CreateTestSuite=Create a test suite per result file
TestResultSpec=Path
TestResults=Test Results
UseAuthentication=Use Authentication
Modified: trunk/hudson/plugins/klaros-testmanagement/src/main/resources/hudson/plugins/klaros/KlarosTestResultPublisher/config_de.properties (41269 => 41270)
--- trunk/hudson/plugins/klaros-testmanagement/src/main/resources/hudson/plugins/klaros/KlarosTestResultPublisher/config_de.properties 2015-03-25 16:09:20 UTC (rev 41269)
+++ trunk/hudson/plugins/klaros-testmanagement/src/main/resources/hudson/plugins/klaros/KlarosTestResultPublisher/config_de.properties 2015-03-25 16:36:09 UTC (rev 41270)
@@ -25,6 +25,7 @@
ProjectID=Projekt-ID
TestEnvironmentID=Testumgebungs-ID
SystemUnderTestID=SUT-ID
+CreateTestSuite=Erzeuge pro Ergebnisdatei eine Testsuites
TestResultSpec=Pfad
TestResults=Testergebnisse
UseAuthentication=Authentifizierung benutzen
You received this message because you are subscribed to the Google Groups "Jenkins Commits" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/d/optout.
