From 7b1e51cb1ff1e7899ea6d1245aad8ebcb7c1f397 Mon Sep 17 00:00:00 2001 From: WangXu10 Date: Mon, 18 Dec 2023 14:06:13 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=B5=8B=E8=AF=95=E8=B7=9F=E8=B8=AA):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AF=BC=E5=85=A5=E7=94=A8=E4=BE=8B=E5=90=8E?= =?UTF-8?q?=E8=BF=9B=E8=A1=8C=E4=BF=AE=E6=94=B9=EF=BC=8C=E5=8F=98=E6=9B=B4?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E6=97=A0=E6=95=B0=E6=8D=AE=E4=B8=94=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1033456 --user=王旭 【测试跟踪】github #27867导入excle的功能用例后,修改用例进行保存后,在变更记录里没有记录,接口和后台均有抛异常 https://www.tapd.cn/55049933/s/1444616 --- .../src/main/java/io/metersphere/service/TestCaseService.java | 1 + 1 file changed, 1 insertion(+) diff --git a/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java b/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java index 83a41b256b..ee883ccda8 100644 --- a/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java +++ b/test-track/backend/src/main/java/io/metersphere/service/TestCaseService.java @@ -1354,6 +1354,7 @@ public class TestCaseService { testCase.setRefId(testCase.getId()); testCase.setVersionId(request.getVersionId()); testCase.setLatest(true); + testCase.setType("functional"); mapper.insert(testCase); nextOrder += ServiceUtils.ORDER_STEP; batchInsertCustomFieldTestCase(testCaseCustomFieldMap, customFieldTestCaseMapper, testCase);