Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ private void testRunStarted(final TestRunStarted event) {
ApplauseConfigHelper.getHttpProxy()));
if (applauseConfigBean.applauseTestCycleId() != null) {
ApplauseReporter.INSTANCE.enableTestCycleReporting(
new ApplauseTestCycleReportingConfig(applauseConfigBean.applauseTestCycleId()));
new ApplauseTestCycleReportingConfig(
applauseConfigBean.applauseTestCycleId(), applauseConfigBean.applauseTestRunName()));
}

final SdkConfigBean sdkConfigBean = EnvironmentConfigurationManager.INSTANCE.get();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@ public interface ApplauseSdkConfigBean extends Config {
*/
Long applauseTestCycleId();

/**
* An optional Applause (Internal) Test Run Name for reporting
*
* @return The Applause Test Run Name
*/
String applauseTestRunName();

/**
* A flag to specify whether test cycle cloning is enabled
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ public IApplauseReporter startTestRun(final @NonNull ApplauseRunCreation params)
.setTestRailProjectId(testRailConfig.testRailProjectId());
}
if (testCycleConfig != null) {
testRunConfigurationParamDto.setItwTestCycleId(testCycleConfig.applauseTestCycleId());
testRunConfigurationParamDto.setApplauseTestCycleId(testCycleConfig.applauseTestCycleId());
testRunConfigurationParamDto.setApplauseTestRunName(testCycleConfig.applauseTestRunName());
}
// Add a unique ID generated on the client side that the server can use to determine
// if the submission has been made before (to catch duplicate submissions)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@
*/
package com.applause.auto.reporting.config;

import javax.annotation.Nullable;
import lombok.NonNull;

/**
* A DTO to configure Applause Test Cycle Reporting for an Applause Test Run
*
* @param applauseTestCycleId The Applause Test Cycle ID
* @param applauseTestRunName The Applause Test Run Name
*/
public record ApplauseTestCycleReportingConfig(@NonNull Long applauseTestCycleId) {}
public record ApplauseTestCycleReportingConfig(
@NonNull Long applauseTestCycleId, @Nullable String applauseTestRunName) {}
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ public class TestRunConfigurationParamDto {
private boolean addAllTestsToPlan;

private String driverConfig;
private Long itwTestCycleId;
private Long applauseTestCycleId;
private String applauseTestRunName;
private Long productId;
private String sdkVersion;
private String testRailPlanName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ public void onStart(final ISuite suite) {
ApplauseConfigHelper.getHttpProxy()));
if (applauseConfigBean.applauseTestCycleId() != null) {
ApplauseReporter.INSTANCE.enableTestCycleReporting(
new ApplauseTestCycleReportingConfig(applauseConfigBean.applauseTestCycleId()));
new ApplauseTestCycleReportingConfig(
applauseConfigBean.applauseTestCycleId(), applauseConfigBean.applauseTestRunName()));
}

final SdkConfigBean sdkConfigBean = EnvironmentConfigurationManager.INSTANCE.get();
Expand Down