Merge remote-tracking branch 'origin/master'

This commit is contained in:
song.tianyang 2021-03-25 15:25:03 +08:00
commit bd351f1c3e
2 changed files with 5 additions and 2 deletions

View File

@ -269,7 +269,7 @@ public class ApiAutomationService {
} }
private void deleteApiScenarioReport(List<String> scenarioIds) { private void deleteApiScenarioReport(List<String> scenarioIds) {
if(scenarioIds == null || scenarioIds.isEmpty()){ if (scenarioIds == null || scenarioIds.isEmpty()) {
return; return;
} }
ApiScenarioReportExample scenarioReportExample = new ApiScenarioReportExample(); ApiScenarioReportExample scenarioReportExample = new ApiScenarioReportExample();
@ -371,6 +371,9 @@ public class ApiAutomationService {
public APIScenarioReportResult createScenarioReport(String id, String scenarioId, String scenarioName, String triggerMode, String execType, String projectId, String userID) { public APIScenarioReportResult createScenarioReport(String id, String scenarioId, String scenarioName, String triggerMode, String execType, String projectId, String userID) {
APIScenarioReportResult report = new APIScenarioReportResult(); APIScenarioReportResult report = new APIScenarioReportResult();
if (triggerMode.equals(ApiRunMode.SCENARIO.name()) || triggerMode.equals(ApiRunMode.DEFINITION.name())) {
triggerMode = ReportTriggerMode.MANUAL.name();
}
report.setId(id); report.setId(id);
report.setTestId(id); report.setTestId(id);
if (StringUtils.isNotEmpty(scenarioName)) { if (StringUtils.isNotEmpty(scenarioName)) {

@ -1 +1 @@
Subproject commit 2115bd28a90854d2b6276a90878934715498c584 Subproject commit 07951ba17aef6f29e50cfd68e40de3266f9a60cd