diff --git a/framework/sdk-parent/sdk/src/main/java/io/metersphere/log/service/OperatingLogService.java b/framework/sdk-parent/sdk/src/main/java/io/metersphere/log/service/OperatingLogService.java index 1b800fabeb..6caa351235 100644 --- a/framework/sdk-parent/sdk/src/main/java/io/metersphere/log/service/OperatingLogService.java +++ b/framework/sdk-parent/sdk/src/main/java/io/metersphere/log/service/OperatingLogService.java @@ -10,10 +10,8 @@ import io.metersphere.commons.utils.BeanUtils; import io.metersphere.commons.utils.JSON; import io.metersphere.i18n.Translator; import io.metersphere.log.constants.OperatorLevel; -import io.metersphere.log.vo.DetailColumn; -import io.metersphere.log.vo.OperatingLogDTO; -import io.metersphere.log.vo.OperatingLogDetails; -import io.metersphere.log.vo.OperatingLogRequest; +import io.metersphere.log.vo.*; +import io.metersphere.log.vo.track.TestCaseReference; import io.metersphere.service.ServiceUtils; import org.apache.commons.collections.CollectionUtils; import org.apache.commons.lang3.StringUtils; @@ -136,6 +134,10 @@ public class OperatingLogService { List columns = logWithBLOB.getDetails().getColumns(); columns.stream().forEach(column -> { if (StringUtils.isNotEmpty(column.getColumnTitle())) { + if (StringUtils.equalsIgnoreCase(TestCaseReference.testCaseColumns.get(column.getColumnName()), column.getColumnTitle())) { + column.setOriginalValue(Translator.get(column.getOriginalValue().toString()).replace("Not Support Key:", "")); + column.setNewValue(Translator.get(column.getNewValue().toString()).replace("Not Support Key:", "")); + } String columnsTitle = Translator.get(column.getColumnTitle()); column.setColumnTitle(columnsTitle.replace("Not Support Key:", "")); } diff --git a/framework/sdk-parent/sdk/src/main/resources/i18n/commons_en_US.properties b/framework/sdk-parent/sdk/src/main/resources/i18n/commons_en_US.properties index 34515d8469..5f13bd6487 100644 --- a/framework/sdk-parent/sdk/src/main/resources/i18n/commons_en_US.properties +++ b/framework/sdk-parent/sdk/src/main/resources/i18n/commons_en_US.properties @@ -405,4 +405,7 @@ select_resource_error_and_check=Select the resource error, check it please load_test_file_not_have_jmx=Load test not have jmx file load_test_file_is_not_jmx=Load test JMX file is illegal version_name_is_null=Version name is not null -current_version_already_exists=Current version already exists \ No newline at end of file +current_version_already_exists=Current version already exists +Prepare=Prepare +Underway=Underway +Completed=Completed \ No newline at end of file diff --git a/framework/sdk-parent/sdk/src/main/resources/i18n/commons_zh_CN.properties b/framework/sdk-parent/sdk/src/main/resources/i18n/commons_zh_CN.properties index e62c450203..605d089f42 100644 --- a/framework/sdk-parent/sdk/src/main/resources/i18n/commons_zh_CN.properties +++ b/framework/sdk-parent/sdk/src/main/resources/i18n/commons_zh_CN.properties @@ -402,4 +402,7 @@ select_resource_error_and_check=查找资源出错,请检查资源是否存在 load_test_file_not_have_jmx=性能测试里的JMX文件不存在 load_test_file_is_not_jmx=性能测试里的JMX文件不合法 version_name_is_null=版本名称不能为空 -current_version_already_exists=当前版本已存在 \ No newline at end of file +current_version_already_exists=当前版本已存在 +Prepare=未开始 +Underway=进行中 +Completed=已完成 \ No newline at end of file diff --git a/framework/sdk-parent/sdk/src/main/resources/i18n/commons_zh_TW.properties b/framework/sdk-parent/sdk/src/main/resources/i18n/commons_zh_TW.properties index 614bd0116b..cb3ccc2522 100644 --- a/framework/sdk-parent/sdk/src/main/resources/i18n/commons_zh_TW.properties +++ b/framework/sdk-parent/sdk/src/main/resources/i18n/commons_zh_TW.properties @@ -401,4 +401,7 @@ select_resource_error_and_check=查找資源出錯,請檢查資源是否存在 load_test_file_not_have_jmx=性能測試文件中不包含JMX文件 load_test_file_is_not_jmx=性能測試里的JMX文件不合法 version_name_is_null=版本名稱不能為空 -current_version_already_exists=當前版本已存在 \ No newline at end of file +current_version_already_exists=當前版本已存在 +Prepare=未開始 +Underway=進行中 +Completed=已完成 \ No newline at end of file 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 ee17bad81c..fe6f84194e 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 @@ -2699,6 +2699,12 @@ public class TestCaseService { DetailColumn detailColumn = new DetailColumn("comment", "comment", String.join(StringUtils.LF, names), null); columns.add(detailColumn); + columns.stream().forEach(item -> { + if ("status".equals(item.getColumnName())) { + item.setOriginalValue(bloBs.getStatus()); + } + }); + OperatingLogDetails details = new OperatingLogDetails(JSON.toJSONString(id), bloBs.getProjectId(), bloBs.getName(), bloBs.getCreateUser(), columns); return JSON.toJSONString(details); }