Skip to content

Commit

Permalink
fix(接口测试): 修复导入ms格式的带用例的接口定义,用例的创建人不是导入用户
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaomeinvG committed Aug 8, 2022
1 parent c645d47 commit 3e85bed
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -992,6 +992,8 @@ private void importCase(ApiDefinitionWithBLOBs apiDefinition, ApiTestCaseMapper
for (int i = 0; i < caseList.size(); i++) {
ApiTestCaseWithBLOBs apiTestCaseWithBLOBs = caseList.get(i);
apiTestCaseWithBLOBs.setApiDefinitionId(apiDefinition.getId());
apiTestCaseWithBLOBs.setCreateUserId(Objects.requireNonNull(SessionUtils.getUser()).getId());
apiTestCaseWithBLOBs.setUpdateUserId(Objects.requireNonNull(SessionUtils.getUser()).getId());
if (apiDefinition.getToBeUpdated() != null && !apiTestCaseWithBLOBs.getVersionId().equals("cover")) {
apiTestCaseWithBLOBs.setToBeUpdated(true);
//TODO:check setting
Expand Down

0 comments on commit 3e85bed

Please sign in to comment.