fix(接口测试): 修复批量执行用例时未生成测试报告的问题
--bug=1015910 --user=宋天阳 【UI测试】场景批量执行-chrome/firefox-串行/并行-独立报告-性能模式-执行完成测试列表未生成批量执行的独立报告 https://www.tapd.cn/55049933/s/1225432
This commit is contained in:
parent
ab2c94c527
commit
d30624e3fa
|
@ -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(",");
|
||||
}
|
||||
|
|
|
@ -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(",");
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue