fix(接口测试): 接口定义中case搜索执行结果失败

This commit is contained in:
wxg0103 2021-12-10 14:35:57 +08:00 committed by 刘瑞斌
parent 4e384680ff
commit ac128c2fba
2 changed files with 3 additions and 1 deletions

View File

@ -821,6 +821,7 @@ public class ApiDefinitionService {
apiTestCase.setUpdateUserId(SessionUtils.getUserId());
if (sameCase == null) {
apiTestCase.setId(UUID.randomUUID().toString());
apiTestCase.setStatus("");
apiTestCase.setNum(apiTestCaseService.getNextNum(apiTestCase.getApiDefinitionId(), apiDefinition.getNum()));
apiTestCase.setCreateTime(System.currentTimeMillis());
apiTestCase.setUpdateTime(System.currentTimeMillis());

View File

@ -166,7 +166,8 @@ export const API_CASE_RESULT = {
options: [
{value: 'success', label: 'api_test.automation.success'},
{value: 'error', label: 'api_test.automation.fail'},
{value: '', label: 'api_test.home_page.detail_card.unexecute'}
{value: '', label: 'api_test.home_page.detail_card.unexecute'},
{value: 'Running', label: 'commons.testing'}
],
props: { // 尾部控件的props一般为element ui控件的props
multiple: true