fix(接口测试): 修复删除用例执行报告后用例状态变为未执行的问题
--bug=1011016 --user=宋天阳 【接口测试】github11320,执行接口case成功后,删除该测试报告,接口case执行结果又变成“未执行”,执行结果选择“未执行”筛选不出来,选择“通过”才能筛选出来 https://www.tapd.cn/55049933/s/1123789
This commit is contained in:
parent
049ebe6e49
commit
c3772f1ce6
|
@ -143,6 +143,9 @@ public class ApiTestCaseService {
|
|||
if (environment != null) {
|
||||
apiCase.setEnvironment(environment.getName());
|
||||
}
|
||||
if(apiCase.getExecResult() == null && StringUtils.isNotEmpty(apiCase.getStatus()) && !StringUtils.equalsIgnoreCase(apiCase.getStatus(),"trash")){
|
||||
apiCase.setExecResult(apiCase.getStatus());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -416,6 +416,7 @@ export default {
|
|||
statusFilters: [
|
||||
{text: this.$t('api_test.automation.success'), value: 'success'},
|
||||
{text: this.$t('api_test.automation.fail'), value: 'error'},
|
||||
{text: this.$t('error_report_library.option.name'), value: 'errorReportResult'},
|
||||
{text: this.$t('report.stop_btn'), value: 'STOP'},
|
||||
{text: this.$t('api_test.home_page.detail_card.unexecute'), value: ''},
|
||||
{text: this.$t('commons.testing'), value: 'Running'}
|
||||
|
|
|
@ -109,6 +109,7 @@ export default {
|
|||
arguments: [],
|
||||
rest: [],
|
||||
body: {
|
||||
xmlHeader: 'version="1.0" encoding="UTF-8"',
|
||||
type: 'JSON',
|
||||
binary: []
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue