feat(接口测试): 修复报告列表查不到用例集合报告的问题
--bug=1019678 --user=宋天阳 【接口测试】测试报告 - 用例报告列表不显示用例集合报告了 https://www.tapd.cn/55049933/s/1296742
This commit is contained in:
parent
af3ce00a58
commit
bda779d0d6
|
@ -49,10 +49,14 @@ public class ExtApiDefinitionExecResultProvider {
|
||||||
.append(result.getContent())
|
.append(result.getContent())
|
||||||
.append("','")
|
.append("','")
|
||||||
.append(result.getEnvConfig());
|
.append(result.getEnvConfig());
|
||||||
//判断有没有关联的测试报告ID
|
//判断有没有关联的测试报告ID. 要注意如果赋null的话前后不能有 ' ',否则会变成字符串'null'
|
||||||
|
if (StringUtils.isBlank(result.getRelevanceTestPlanReportId())) {
|
||||||
|
sqlList.append("', null");
|
||||||
|
} else {
|
||||||
sqlList.append("','")
|
sqlList.append("','")
|
||||||
.append(StringUtils.defaultIfBlank(result.getRelevanceTestPlanReportId(), "null"))
|
.append(result.getRelevanceTestPlanReportId())
|
||||||
.append("'");
|
.append("'");
|
||||||
|
}
|
||||||
sqlList.append(")");
|
sqlList.append(")");
|
||||||
if (i < list.size() - 1) {
|
if (i < list.size() - 1) {
|
||||||
sqlList.append(",");
|
sqlList.append(",");
|
||||||
|
|
|
@ -51,10 +51,14 @@ public class ExtApiScenarioReportProvider {
|
||||||
.append(result.getReportType())
|
.append(result.getReportType())
|
||||||
.append("','")
|
.append("','")
|
||||||
.append(result.getEnvConfig());
|
.append(result.getEnvConfig());
|
||||||
//判断有没有关联的测试报告ID
|
//判断有没有关联的测试报告ID. 要注意如果赋null的话前后不能有 ' ',否则会变成字符串'null'
|
||||||
|
if (StringUtils.isBlank(result.getRelevanceTestPlanReportId())) {
|
||||||
|
sqlList.append("', null");
|
||||||
|
} else {
|
||||||
sqlList.append("','")
|
sqlList.append("','")
|
||||||
.append(StringUtils.defaultIfBlank(result.getRelevanceTestPlanReportId(), "null"))
|
.append(result.getRelevanceTestPlanReportId())
|
||||||
.append("'");
|
.append("'");
|
||||||
|
}
|
||||||
sqlList.append(")");
|
sqlList.append(")");
|
||||||
if (i < list.size() - 1) {
|
if (i < list.size() - 1) {
|
||||||
sqlList.append(",");
|
sqlList.append(",");
|
||||||
|
|
|
@ -93,7 +93,7 @@ export default {
|
||||||
let borderWidth = 0;
|
let borderWidth = 0;
|
||||||
let colorArr = ['#DEE0E3', '#DEE0E3', '#DEE0E3', '#DEE0E3'];
|
let colorArr = ['#DEE0E3', '#DEE0E3', '#DEE0E3', '#DEE0E3'];
|
||||||
if (this.getTotal() > 0) {
|
if (this.getTotal() > 0) {
|
||||||
colorArr = ['#AA4FBF', '#FFD131', '#10CECE', '#4261F6',];
|
colorArr = ['#AA4FBF', '#FAD355', '#14E1C6', '#4E83FD',];
|
||||||
borderWidth = 3;
|
borderWidth = 3;
|
||||||
dataIsNotEmpty = true;
|
dataIsNotEmpty = true;
|
||||||
protocolData = [
|
protocolData = [
|
||||||
|
|
Loading…
Reference in New Issue