fix(工作台): 修复执行失败就进入工作台待更新列表问题
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001019490 https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001018365 --user=郭雨琦
This commit is contained in:
parent
aaeacb0b11
commit
f0324e3bdb
|
@ -237,11 +237,6 @@ public class ApiDefinitionExecResultService {
|
||||||
// 更新用例最后执行结果
|
// 更新用例最后执行结果
|
||||||
caseWithBLOBs.setLastResultId(reportId);
|
caseWithBLOBs.setLastResultId(reportId);
|
||||||
caseWithBLOBs.setStatus(status);
|
caseWithBLOBs.setStatus(status);
|
||||||
if (status.equals(ApiReportStatus.ERROR.name())) {
|
|
||||||
caseWithBLOBs.setToBeUpdated(true);
|
|
||||||
} else {
|
|
||||||
caseWithBLOBs.setToBeUpdated(false);
|
|
||||||
}
|
|
||||||
caseWithBLOBs.setUpdateTime(System.currentTimeMillis());
|
caseWithBLOBs.setUpdateTime(System.currentTimeMillis());
|
||||||
apiTestCaseMapper.updateByPrimaryKey(caseWithBLOBs);
|
apiTestCaseMapper.updateByPrimaryKey(caseWithBLOBs);
|
||||||
|
|
||||||
|
|
|
@ -517,7 +517,23 @@ export default {
|
||||||
this.batchSyncApiVisible = true;
|
this.batchSyncApiVisible = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (this.apiSyncRuleRelation.showUpdateRule === true && !this.noShowSyncRuleRelation) {
|
if (this.request.authManager && this.beforeRequest.authManager) {
|
||||||
|
let submitRequestAuthManager = JSON.stringify(this.request.authManager);
|
||||||
|
let beforeRequestAuthManager = JSON.stringify(this.beforeRequest.authManager);
|
||||||
|
if ((submitRequestAuthManager !== beforeRequestAuthManager) && !this.noShowSyncRuleRelation) {
|
||||||
|
this.batchSyncApiVisible = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (this.request.hashTree && this.beforeRequest.hashTree) {
|
||||||
|
let submitRequestHashTree = JSON.stringify(this.request.hashTree);
|
||||||
|
let beforeRequestHashTree = JSON.stringify(this.beforeRequest.hashTree);
|
||||||
|
if ((submitRequestHashTree !== beforeRequestHashTree) && !this.noShowSyncRuleRelation) {
|
||||||
|
this.batchSyncApiVisible = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (((this.request.connectTimeout !== this.beforeRequest.connectTimeout) || (this.request.responseTimeout !== this.beforeRequest.responseTimeout)
|
||||||
|
|| (this.request.followRedirects !== this.beforeRequest.followRedirects) || (this.request.alias !== this.beforeRequest.alias)
|
||||||
|
|| this.apiSyncRuleRelation.showUpdateRule === true) && !this.noShowSyncRuleRelation) {
|
||||||
this.batchSyncApiVisible = true;
|
this.batchSyncApiVisible = true;
|
||||||
}
|
}
|
||||||
if (this.batchSyncApiVisible !== true) {
|
if (this.batchSyncApiVisible !== true) {
|
||||||
|
|
Loading…
Reference in New Issue