From 5f675b85cb4cc28e5b2b73db2d371acdbfa5be9d Mon Sep 17 00:00:00 2001 From: aaron <462826@qq.com> Date: Sun, 26 Apr 2020 16:50:40 +0800 Subject: [PATCH] update result --- res/messages_en.json | 8 ++++---- res/messages_zh.json | 8 ++++---- src/service/zentao/testResult.go | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/res/messages_en.json b/res/messages_en.json index c462380c..15c4ea46 100644 --- a/res/messages_en.json +++ b/res/messages_en.json @@ -384,12 +384,12 @@ }, { - "id": "success_to_submit_unit_test_result", - "translation": "Success to submit unit test results to Zentao。" + "id": "success_to_submit_test_result", + "translation": "Success to submit test results to Zentao。" }, { - "id": "fail_to_submit_unit_test_result", - "translation": "Fail to submit unit test results to Zentao %s" + "id": "fail_to_submit_test_result", + "translation": "Fail to submit test results to Zentao %s" }, { "id": "ignore_to_submit_result", diff --git a/res/messages_zh.json b/res/messages_zh.json index f672d818..43e9f82b 100644 --- a/res/messages_zh.json +++ b/res/messages_zh.json @@ -391,12 +391,12 @@ }, { - "id": "success_to_submit_unit_test_result", - "translation": "提交单元测试结果到禅道成功。" + "id": "success_to_submit_test_result", + "translation": "提交测试结果到禅道成功。" }, { - "id": "fail_to_submit_unit_test_result", - "translation": "提交单元测试结果到禅道失败 %s" + "id": "fail_to_submit_test_result", + "translation": "提交测试结果到禅道失败 %s" }, { "id": "ignore_to_submit_result", diff --git a/src/service/zentao/testResult.go b/src/service/zentao/testResult.go index c3c36c58..065df02b 100644 --- a/src/service/zentao/testResult.go +++ b/src/service/zentao/testResult.go @@ -57,9 +57,9 @@ func CommitTestResult(report model.TestReport, testTaskId int) { msg := "\n" if ok { - msg += color.GreenString(i118Utils.I118Prt.Sprintf("success_to_submit_unit_test_result")) + msg += color.GreenString(i118Utils.I118Prt.Sprintf("success_to_submit_test_result")) } else { - msg += color.RedString(i118Utils.I118Prt.Sprintf("fail_to_submit_unit_test_result", url)) + msg += color.RedString(i118Utils.I118Prt.Sprintf("fail_to_submit_test_result", url)) msg += "\n" + i118Utils.I118Prt.Sprintf("server_return") msg += "\n" + resp } -- GitLab