fix(接口测试): 修复批量执行用例时未生成测试报告的问题

--bug=1015910 --user=宋天阳
【UI测试】场景批量执行-chrome/firefox-串行/并行-独立报告-性能模式-执行完成测试列表未生成批量执行的独立报告
https://www.tapd.cn/55049933/s/1225432
This commit is contained in:
song-tianyang 2022-08-17 16:34:27 +08:00 committed by 刘瑞斌
parent ab2c94c527
commit d30624e3fa
3 changed files with 23 additions and 11 deletions

View File

@ -1,6 +1,7 @@
package io.metersphere.base.mapper.ext;
import io.metersphere.base.domain.ApiDefinitionExecResultWithBLOBs;
import org.apache.commons.lang3.StringUtils;
import java.util.List;
@ -47,11 +48,16 @@ public class ExtApiDefinitionExecResultProvider {
.append("','")
.append(result.getContent())
.append("','")
.append(result.getEnvConfig())
.append("','")
.append(result.getRelevanceTestPlanReportId())
.append("'")
.append(")");
.append(result.getEnvConfig());
//判断有没有关联的测试报告ID
if (StringUtils.isBlank(result.getRelevanceTestPlanReportId())) {
sqlList.append("', null");
} else {
sqlList.append("','")
.append(result.getRelevanceTestPlanReportId())
.append("'");
}
sqlList.append(")");
if (i < list.size() - 1) {
sqlList.append(",");
}

View File

@ -1,6 +1,7 @@
package io.metersphere.base.mapper.ext;
import io.metersphere.api.dto.automation.APIScenarioReportResult;
import org.apache.commons.lang3.StringUtils;
import java.util.List;
@ -49,11 +50,16 @@ public class ExtApiScenarioReportProvider {
.append("','")
.append(result.getReportType())
.append("','")
.append(result.getEnvConfig())
.append("','")
.append(result.getRelevanceTestPlanReportId())
.append("'")
.append(")");
.append(result.getEnvConfig());
//判断有没有关联的测试报告ID
if (StringUtils.isBlank(result.getRelevanceTestPlanReportId())) {
sqlList.append("', null");
} else {
sqlList.append("','")
.append(result.getRelevanceTestPlanReportId())
.append("'");
}
sqlList.append(")");
if (i < list.size() - 1) {
sqlList.append(",");
}

View File

@ -35,7 +35,7 @@
</el-row>
<div>
<el-collapse-transition>
<div v-show="collapseStatus" :style="{marginLeft:`${10*deep+10}px`}">
<div v-show="collapseStatus && hasAdvancedSetting" :style="{marginLeft:`${10*deep+10}px`}">
<json-advanced-setting :json-data=" pickValue"/>
</div>
</el-collapse-transition>