fix(接口测试): 修复批量执行用例时未生成测试报告的问题
--bug=1015910 --user=宋天阳 【UI测试】场景批量执行-chrome/firefox-串行/并行-独立报告-性能模式-执行完成测试列表未生成批量执行的独立报告 https://www.tapd.cn/55049933/s/1225432
This commit is contained in:
parent
901162f784
commit
ef131d91de
|
@ -1,6 +1,7 @@
|
||||||
package io.metersphere.base.mapper.ext;
|
package io.metersphere.base.mapper.ext;
|
||||||
|
|
||||||
import io.metersphere.base.domain.ApiDefinitionExecResultWithBLOBs;
|
import io.metersphere.base.domain.ApiDefinitionExecResultWithBLOBs;
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@ -47,11 +48,16 @@ public class ExtApiDefinitionExecResultProvider {
|
||||||
.append("','")
|
.append("','")
|
||||||
.append(result.getContent())
|
.append(result.getContent())
|
||||||
.append("','")
|
.append("','")
|
||||||
.append(result.getEnvConfig())
|
.append(result.getEnvConfig());
|
||||||
.append("','")
|
//判断有没有关联的测试报告ID
|
||||||
|
if (StringUtils.isBlank(result.getRelevanceTestPlanReportId())) {
|
||||||
|
sqlList.append("', null");
|
||||||
|
} else {
|
||||||
|
sqlList.append("','")
|
||||||
.append(result.getRelevanceTestPlanReportId())
|
.append(result.getRelevanceTestPlanReportId())
|
||||||
.append("'")
|
.append("'");
|
||||||
.append(")");
|
}
|
||||||
|
sqlList.append(")");
|
||||||
if (i < list.size() - 1) {
|
if (i < list.size() - 1) {
|
||||||
sqlList.append(",");
|
sqlList.append(",");
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
package io.metersphere.base.mapper.ext;
|
package io.metersphere.base.mapper.ext;
|
||||||
|
|
||||||
import io.metersphere.api.dto.automation.APIScenarioReportResult;
|
import io.metersphere.api.dto.automation.APIScenarioReportResult;
|
||||||
|
import org.apache.commons.lang3.StringUtils;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@ -49,11 +50,16 @@ public class ExtApiScenarioReportProvider {
|
||||||
.append("','")
|
.append("','")
|
||||||
.append(result.getReportType())
|
.append(result.getReportType())
|
||||||
.append("','")
|
.append("','")
|
||||||
.append(result.getEnvConfig())
|
.append(result.getEnvConfig());
|
||||||
.append("','")
|
//判断有没有关联的测试报告ID
|
||||||
|
if (StringUtils.isBlank(result.getRelevanceTestPlanReportId())) {
|
||||||
|
sqlList.append("', null");
|
||||||
|
} else {
|
||||||
|
sqlList.append("','")
|
||||||
.append(result.getRelevanceTestPlanReportId())
|
.append(result.getRelevanceTestPlanReportId())
|
||||||
.append("'")
|
.append("'");
|
||||||
.append(")");
|
}
|
||||||
|
sqlList.append(")");
|
||||||
if (i < list.size() - 1) {
|
if (i < list.size() - 1) {
|
||||||
sqlList.append(",");
|
sqlList.append(",");
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,7 +35,7 @@
|
||||||
</el-row>
|
</el-row>
|
||||||
<div>
|
<div>
|
||||||
<el-collapse-transition>
|
<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"/>
|
<json-advanced-setting :json-data=" pickValue"/>
|
||||||
</div>
|
</div>
|
||||||
</el-collapse-transition>
|
</el-collapse-transition>
|
||||||
|
|
Loading…
Reference in New Issue