Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
易企天创
zentaoatf
提交
2a0d3eb2
Z
zentaoatf
项目概览
易企天创
/
zentaoatf
9 个月 前同步成功
通知
11
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
3
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Z
zentaoatf
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
3
Issue
3
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
2a0d3eb2
编写于
9月 03, 2019
作者:
aaronchen2k2k
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tips
上级
7ec7db4d
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
281 addition
and
741 deletion
+281
-741
res/messages_en.json
res/messages_en.json
+135
-365
res/messages_zh.json
res/messages_zh.json
+129
-359
src/service/zentao/result.go
src/service/zentao/result.go
+1
-1
src/ui/variable.go
src/ui/variable.go
+1
-10
src/utils/stdin/stdin.go
src/utils/stdin/stdin.go
+15
-6
未找到文件。
res/messages_en.json
浏览文件 @
2a0d3eb2
...
...
@@ -2,142 +2,184 @@
"language"
:
"en-US"
,
"messages"
:
[
{
"id"
:
"need_config"
,
"message"
:
"need config"
,
"translation"
:
"you need to config the zentao site before checkout, type 'exit' to quit"
"id"
:
"total"
,
"translation"
:
"Total"
},
{
"id"
:
"begin_config"
,
"message"
:
"begin config, type 'exit' to quit"
,
"translation"
:
"begin to config"
"id"
:
"pass"
,
"translation"
:
"Pass"
},
{
"id"
:
"fail"
,
"translation"
:
"Fail"
},
{
"id"
:
"skip"
,
"translation"
:
"Skip"
},
{
"id"
:
"product_id"
,
"translation"
:
"Product Id"
},
{
"id"
:
"module_id"
,
"translation"
:
"Module Id"
},
{
"id"
:
"suite_id"
,
"translation"
:
"Suite Id"
},
{
"id"
:
"task_id"
,
"translation"
:
"Task Id"
},
{
"id"
:
"test_case"
,
"message"
:
"test case"
,
"translation"
:
"case"
"translation"
:
"test case"
},
{
"id"
:
"test_suite"
,
"translation"
:
"Test Suite"
},
{
"id"
:
"test_script"
,
"translation"
:
"Test Script"
},
{
"id"
:
"result"
,
"message"
:
"result"
,
"translation"
:
"result"
},
{
"id"
:
"step"
,
"translation"
:
"Step"
},
{
"id"
:
"steps"
,
"translation"
:
"Steps"
},
{
"id"
:
"checkpoint"
,
"translation"
:
"Checkpoint"
},
{
"id"
:
"expect_result"
,
"translation"
:
"Expect Result"
},
{
"id"
:
"actual_result"
,
"translation"
:
"Actual Result"
},
{
"id"
:
"content"
,
"message"
:
"Content"
,
"translation"
:
"Content"
},
{
"id"
:
"module"
,
"translation"
:
"Module"
},
{
"id"
:
"category"
,
"translation"
:
"Category"
},
{
"id"
:
"version"
,
"translation"
:
"Version"
},
{
"id"
:
"severity"
,
"translation"
:
"Severity"
},
{
"id"
:
"priority"
,
"translation"
:
"Priority"
},
{
"id"
:
"title_cannot_be_empty"
,
"message"
:
"Title cannot be empty"
,
"translation"
:
"Title cannot be empty"
},
{
"id"
:
"need_config"
,
"translation"
:
"You need to config Zentao site before checkout, type 'exit' to quit."
},
{
"id"
:
"begin_config"
,
"translation"
:
"Begin to config, type 'exit' to quit."
},
{
"id"
:
"want_to_continue"
,
"message"
:
""
,
"translation"
:
"Do you want to continue[Y/n]?"
},
{
"id"
:
"case_update_confirm"
,
"message"
:
""
,
"translation"
:
"Will update case as below:
\n
Title: %s"
},
{
"id"
:
"enter_dir"
,
"message"
:
"enter dir"
,
"translation"
:
"enter %s dir."
},
{
"id"
:
"enter_id"
,
"message"
:
"enter id"
,
"translation"
:
"enter %s id."
"translation"
:
"Enter %s dir."
},
{
"id"
:
"dir_not_exist"
,
"message"
:
""
,
"translation"
:
"dir not exist"
"translation"
:
"Dir not exist"
},
{
"id"
:
"enter_language"
,
"message"
:
"enter language"
,
"translation"
:
"enter the language you want to use, English / Chinese, default English."
"translation"
:
"Enter the language you want to use:
\n
1. English *
\n
2. Chinese"
},
{
"id"
:
"config_zentao_site"
,
"message"
:
"config zentao site"
,
"translation"
:
"do you want to config Zentao site? Yes / No, default Yes."
"translation"
:
"Do you want to config Zentao site[Y/n]?"
},
{
"id"
:
"enter_url"
,
"message"
:
"zentao site url"
,
"translation"
:
"zentao site url"
"translation"
:
"Zentao site url:"
},
{
"id"
:
"enter_account"
,
"message"
:
"zentao site login account"
,
"translation"
:
"zentao site login account"
"translation"
:
"Zentao site account:"
},
{
"id"
:
"enter_password"
,
"message"
:
"enter password"
,
"translation"
:
"account password"
},
{
"id"
:
"enter_password"
,
"message"
:
"enter password"
,
"translation"
:
"enter password"
"translation"
:
"Account password:"
},
{
"id"
:
"enter_co_type"
,
"message"
:
""
,
"translation"
:
"Import test cases from?
\n
1. Product
\n
2. Module
\n
3. Suite
\n
4. Task"
},
{
"id"
:
"enter_co_independent"
,
"message"
:
"enter co independent"
,
"translation"
:
"Save expect results in independent file[y/N]?"
},
{
"id"
:
"enter_co_language"
,
"message"
:
"enter co language"
,
"translation"
:
"select script language. %s"
"translation"
:
"Select script language:
\n
%s"
},
{
"id"
:
"enter_case_id_for_report_bug"
,
"message"
:
""
,
"translation"
:
"which case do you want to report bug for? enter case id, 'exit' to quit"
"translation"
:
"Which case do you want to report bug for?"
},
{
"id"
:
"invalid_input"
,
"message"
:
"invalid input"
,
"translation"
:
"invalid input, please try again"
"translation"
:
"Invalid input, please try again."
},
{
"id"
:
"zentao_config_success"
,
"message"
:
"zentao config success"
,
"translation"
:
"success to config Zentao connection"
"translation"
:
"Success to config Zentao connection."
},
{
"id"
:
"zentao_config_fail"
,
"message"
:
"zentao config fail"
,
"translation"
:
"fail to config Zentao connection"
"translation"
:
"Fail to config Zentao connection."
},
{
"id"
:
"current_config"
,
"message"
:
"current config"
,
"translation"
:
"current config"
},
{
"id"
:
"set_config"
,
"message"
:
"set config"
,
"translation"
:
"set %s to %s"
},
{
"id"
:
"use_language"
,
"message"
:
"Use English language"
,
"translation"
:
"Use English language"
},
{
"id"
:
"language"
,
"message"
:
"language"
,
"translation"
:
"language"
},
{
"id"
:
"workDir"
,
"message"
:
"Work Dir"
,
"translation"
:
"Work Dir"
"translation"
:
"Current config:"
},
{
...
...
@@ -152,395 +194,123 @@
},
{
"id"
:
"support_language"
,
"message"
:
"only en(%s) and zh(%s) language is acceptable"
,
"translation"
:
"only en(%s) and zh(%s) language is acceptable"
},
{
"id"
:
"run_sets_with_no_dir"
,
"message"
:
""
,
"translation"
:
"To run suite or task, the first param should be a dir that contains scripts"
"translation"
:
"Only en(%s) and zh(%s) language is acceptable."
},
{
"id"
:
"no_cases"
,
"message"
:
"No test cases found"
,
"translation"
:
"No test cases found"
"translation"
:
"No test cases found."
},
{
"id"
:
"no_scripts"
,
"message"
:
"No test scripts found"
,
"translation"
:
"No test scripts found"
"translation"
:
"No test scripts found."
},
{
"id"
:
"success_to_login"
,
"message"
:
""
,
"translation"
:
"success to login"
"translation"
:
"Success to login."
},
{
"id"
:
"fail_to_login"
,
"message"
:
""
,
"translation"
:
"fail to login"
"translation"
:
"Fail to login."
},
{
"id"
:
"start_execution"
,
"message"
:
"Start Execution"
,
"translation"
:
"Start Execution"
},
{
"id"
:
"end_execution"
,
"message"
:
"End Execution"
,
"translation"
:
"End Execution"
},
{
"id"
:
"start_case"
,
"message"
:
"Start Case"
,
"translation"
:
"Start Case %s at %s"
},
{
"id"
:
"end_case"
,
"message"
:
"End Case"
,
"translation"
:
"End Case %s at %s, spend %dsecs"
},
{
"id"
:
"begin_analyse"
,
"message"
:
"Run scripts"
,
"translation"
:
"Begin to analyse test result"
"translation"
:
"End Case %s at %s, spend %d secs"
},
{
"id"
:
"run_scripts"
,
"message"
:
"Run scripts"
,
"translation"
:
"Run scripts in folder '%s' on %s OS"
"translation"
:
"Run scripts in folder '%s' on %s OS."
},
{
"id"
:
"time_from_to"
,
"message"
:
"From To"
,
"translation"
:
"From %s to %s, spend %d secs"
},
{
"id"
:
"total"
,
"message"
:
"Total"
,
"translation"
:
"Total"
},
{
"id"
:
"pass"
,
"message"
:
"Pass"
,
"translation"
:
"Pass"
},
{
"id"
:
"fail"
,
"message"
:
"Fail"
,
"translation"
:
"Fail"
},
{
"id"
:
"skip"
,
"message"
:
"Skip"
,
"translation"
:
"Skip"
"translation"
:
"From %s to %s, spend %d secs."
},
{
"id"
:
"step"
,
"message"
:
"Step"
,
"translation"
:
"Step"
},
{
"id"
:
"steps"
,
"message"
:
"Steps"
,
"translation"
:
"Steps"
},
{
"id"
:
"checkpoint"
,
"message"
:
"Checkpoint"
,
"translation"
:
"Checkpoint"
},
{
"id"
:
"expect_result"
,
"message"
:
"Expect Result"
,
"translation"
:
"Expect Result"
},
{
"id"
:
"actual_result"
,
"message"
:
"Actual Result"
,
"translation"
:
"Actual Result"
},
{
"id"
:
"no_checkpoints"
,
"message"
:
"No checkpoints"
,
"translation"
:
"No checkpoints"
"translation"
:
"No checkpoints."
},
{
"id"
:
"only_support_script_language"
,
"message"
:
"only support language %s"
,
"translation"
:
"only support language %s"
"translation"
:
"Only support language %s."
},
{
"id"
:
"total_test_case"
,
"message"
:
"Totally %d test cases"
,
"translation"
:
"Totally %d test cases"
},
{
"id"
:
"usage_of_atf"
,
"message"
:
"Usage of atf"
,
"translation"
:
"Usage of atf"
},
{
"id"
:
"sample_to_use"
,
"message"
:
"Sample to use: "
,
"translation"
:
"Sample to use: "
"translation"
:
"Totally %d test cases."
},
{
"id"
:
"is_checkpoint"
,
"message"
:
"Step begin with '@' has checkpoint"
,
"translation"
:
"Step begin with '@' has checkpoint"
"translation"
:
"Step begin with '@' has checkpoint."
},
{
"id"
:
"your_codes_here"
,
"message"
:
"Write your codes here"
,
"translation"
:
"Write your codes here"
"translation"
:
"Write your codes here."
},
{
"id"
:
"expect_result_here"
,
"message"
:
"Expect Results"
,
"translation"
:
"Expect Results, can be more than one line"
"translation"
:
"Expect Results, can be more than one line."
},
{
"id"
:
"actual_result_here"
,
"message"
:
"Record actual results"
,
"translation"
:
"Record actual results"
"translation"
:
"Record actual results."
},
{
"id"
:
"success_to_generate"
,
"message"
:
"success to generate %d test scripts in '%s'"
,
"translation"
:
"success to generate %d test scripts in '%s'"
"translation"
:
"Success to generate %d test scripts in '%s'."
},
{
"id"
:
"success_to_commit_case"
,
"message"
:
""
,
"translation"
:
"success to commit case %d"
"translation"
:
"Success to commit case %d."
},
{
"id"
:
"success_to_report_bug"
,
"message"
:
""
,
"translation"
:
"success to report bug for case %s"
"translation"
:
"Success to report bug for case %s."
},
{
"id"
:
"success_to_submit_result"
,
"message"
:
"success to submit the results for case %d, resultId is %d"
,
"translation"
:
"success to submit the results for case %d, resultId is %d"
},
{
"id"
:
"success_to_switch_project"
,
"message"
:
"success to switch to project %s: %s"
,
"translation"
:
"success to switch to project %s: %s"
"id"
:
"success_to_commit_result"
,
"translation"
:
"Success to commit the results for case %d, resultId is %d"
},
{
"id"
:
"test_suite"
,
"message"
:
"Test Suite"
,
"translation"
:
"Test Suite"
},
{
"id"
:
"test_script"
,
"message"
:
"Test Script"
,
"translation"
:
"Test Script"
},
{
"id"
:
"content"
,
"message"
:
"Content"
,
"translation"
:
"Content"
},
{
"id"
:
"run"
,
"message"
:
"Run"
,
"translation"
:
"Run"
},
{
"id"
:
"results"
,
"message"
:
"Results"
,
"translation"
:
"Results"
},
{
"id"
:
"upload_result"
,
"message"
:
"Upload Result"
,
"translation"
:
"Upload Result"
},
{
"id"
:
"report_bug"
,
"message"
:
"Report Bug"
,
"translation"
:
"Report Bug"
},
{
"id"
:
"or"
,
"message"
:
"or"
,
"translation"
:
"or"
},
{
"id"
:
"zentao_url"
,
"message"
:
"ZentaoUrl"
,
"translation"
:
"ZentaoUrl"
},
{
"id"
:
"pls_input"
,
"message"
:
""
,
"translation"
:
"Please input"
},
{
"id"
:
"product_id"
,
"message"
:
""
,
"translation"
:
"Product Id"
},
{
"id"
:
"module_id"
,
"message"
:
""
,
"translation"
:
"Module Id"
},
{
"id"
:
"suite_id"
,
"message"
:
""
,
"translation"
:
"Suite Id"
},
{
"id"
:
"task_id"
,
"message"
:
""
,
"translation"
:
"Task Id"
},
{
"id"
:
"independent_expect_result"
,
"message"
:
"Indep. Result"
,
"translation"
:
"Indep. Result"
},
{
"id"
:
"account"
,
"message"
:
"Account"
,
"translation"
:
"Account"
},
{
"id"
:
"password"
,
"message"
:
"Password"
,
"translation"
:
"Password"
"id"
:
"pls_enter"
,
"translation"
:
"Please enter"
},
{
"id"
:
"submit"
,
"message"
:
"Submit"
,
"translation"
:
"Submit"
},
{
"id"
:
"save"
,
"message"
:
"Save"
,
"translation"
:
"Save"
},
{
"id"
:
"cancel"
,
"message"
:
"Cancel"
,
"translation"
:
"Cancel"
},
{
"id"
:
"close"
,
"message"
:
"close"
,
"translation"
:
"Close"
},
{
"id"
:
"switch_to"
,
"message"
:
"Switch To"
,
"translation"
:
"Switch To"
},
{
"id"
:
"project_config"
,
"message"
:
""
,
"translation"
:
"%s
\\
n Work dir: %s
\\
n Zentao project: %s
\\
n Import type: %s
\\
n Product code: %s
\\
n Language: %s
\\
n
\"
+
\n
\"
Indep. ExpectResult file: %t
\"
"
},
{
"id"
:
"module"
,
"message"
:
"Module"
,
"translation"
:
"Module"
},
{
"id"
:
"category"
,
"message"
:
"Category"
,
"translation"
:
"Category"
},
{
"id"
:
"version"
,
"message"
:
"Version"
,
"translation"
:
"Version"
},
{
"id"
:
"severity"
,
"message"
:
"Severity"
,
"translation"
:
"Severity"
},
{
"id"
:
"priority"
,
"message"
:
"Priority"
,
"translation"
:
"Priority"
},
{
"id"
:
"title_cannot_be_empty"
,
"message"
:
"Title cannot be empty"
,
"translation"
:
"Title cannot be empty"
},
{
"id"
:
"switch"
,
"message"
:
"Switch"
,
"translation"
:
"Switch"
},
{
"id"
:
"switch_project"
,
"message"
:
"Create/Switch Project"
,
"translation"
:
"Create/Switch Project"
},
{
"id"
:
"import_from_zentao"
,
"message"
:
"Import from Zentao"
,
"translation"
:
"Import from Zentao"
},
{
"id"
:
"workdir"
,
"message"
:
"WorkDir"
,
"translation"
:
"WorkDir"
},
{
"id"
:
"testing"
,
"message"
:
"Testing"
,
"translation"
:
"Testing"
},
{
"id"
:
"projects"
,
"message"
:
"Projects"
,
"translation"
:
"Projects"
},
{
"id"
:
"settings"
,
"message"
:
"Settings"
,
"translation"
:
"Settings"
},
{
"id"
:
"help_key_bind"
,
"message"
:
"help"
,
"translation"
:
"HELP"
},
{
"id"
:
"help_mouse"
,
"message"
:
"Mouse: Mouse support"
,
"translation"
:
"Mouse: Mouse support"
},
{
"id"
:
"help_tab"
,
"message"
:
"Tab: Move between form widgets"
,
"translation"
:
"Tab: Move between form widgets"
},
{
"id"
:
"help_space"
,
"message"
:
"Space: Toggle radio box"
,
"translation"
:
"Space: Toggle radio box"
},
{
"id"
:
"help_enter"
,
"message"
:
"Enter: Click button"
,
"translation"
:
"Enter: Click button"
},
{
"id"
:
"help_show"
,
"message"
:
""
,
...
...
res/messages_zh.json
浏览文件 @
2a0d3eb2
...
...
@@ -2,367 +2,286 @@
"language"
:
"zh"
,
"messages"
:
[
{
"id"
:
"need_config"
,
"message"
:
"need config"
,
"translation"
:
"在导出用例之前,您需要先配置禅道站点"
"id"
:
"total"
,
"translation"
:
"合计"
},
{
"id"
:
"begin_config"
,
"message"
:
"begin config"
,
"translation"
:
"开始配置, 输入'exit'退出"
"id"
:
"pass"
,
"translation"
:
"通过"
},
{
"id"
:
"fail"
,
"translation"
:
"失败"
},
{
"id"
:
"skip"
,
"translation"
:
"跳过"
},
{
"id"
:
"product_id"
,
"translation"
:
"产品Id"
},
{
"id"
:
"module_id"
,
"translation"
:
"模块Id"
},
{
"id"
:
"suite_id"
,
"translation"
:
"套件Id"
},
{
"id"
:
"task_id"
,
"translation"
:
"任务Id"
},
{
"id"
:
"test_case"
,
"message"
:
"test case"
,
"translation"
:
"用例"
},
{
"id"
:
"test_suite"
,
"translation"
:
"测试套件"
},
{
"id"
:
"test_script"
,
"translation"
:
"测试脚本"
},
{
"id"
:
"result"
,
"message"
:
"result"
,
"translation"
:
"结果"
},
{
"id"
:
"step"
,
"translation"
:
"步骤"
},
{
"id"
:
"checkpoint"
,
"translation"
:
"验证点"
},
{
"id"
:
"expect_result"
,
"translation"
:
"期待结果"
},
{
"id"
:
"actual_result"
,
"translation"
:
"实际结果"
},
{
"id"
:
"content"
,
"translation"
:
"内容"
},
{
"id"
:
"module"
,
"translation"
:
"模块"
},
{
"id"
:
"category"
,
"translation"
:
"目录"
},
{
"id"
:
"version"
,
"message"
:
"Version"
,
"translation"
:
"版本"
},
{
"id"
:
"severity"
,
"translation"
:
"严重级别"
},
{
"id"
:
"priority"
,
"translation"
:
"紧急程度"
},
{
"id"
:
"title_cannot_be_empty"
,
"translation"
:
"标题不能为空。"
},
{
"id"
:
"need_config"
,
"translation"
:
"在导出用例之前,您需要先配置禅道站点。"
},
{
"id"
:
"begin_config"
,
"translation"
:
"开始配置, 输入'exit'退出。"
},
{
"id"
:
"want_to_continue"
,
"message"
:
""
,
"translation"
:
"确认继续[Y/n]?"
},
{
"id"
:
"case_update_confirm"
,
"message"
:
""
,
"translation"
:
"以下用例信息将被更新:
\n
标题: %s"
},
{
"id"
:
"enter_dir"
,
"message"
:
"enter dir"
,
"translation"
:
"输入%s目录"
},
{
"id"
:
"enter_id"
,
"message"
:
"enter id"
,
"translation"
:
"enter %s id."
"translation"
:
"输入%s目录:"
},
{
"id"
:
"dir_not_exist"
,
"message"
:
""
,
"translation"
:
"目录不存在"
},
{
"id"
:
"enter_language"
,
"message"
:
"enter language"
,
"translation"
:
"请输入你期望使用的语言。English / Chinese,默认En"
"translation"
:
"请输入你期望使用的语言:
\n
1. English *
\n
2. Chinese"
},
{
"id"
:
"config_zentao_site"
,
"message"
:
"config zentao site"
,
"translation"
:
"现在开始配置同禅道系统的同步参数? Yes / No,默认Yes"
"translation"
:
"现在开始配置同禅道系统的同步参数[Y/n]?"
},
{
"id"
:
"enter_url"
,
"message"
:
"zentao site url"
,
"translation"
:
"请输入禅道站点的网站"
"translation"
:
"请输入禅道站点的网站:"
},
{
"id"
:
"enter_account"
,
"message"
:
"zentao site login account"
,
"translation"
:
"请输入登录账号"
"translation"
:
"请输入登录账号:"
},
{
"id"
:
"enter_password"
,
"message"
:
"enter password"
,
"translation"
:
"请输入账号密码"
"translation"
:
"请输入账号密码:"
},
{
"id"
:
"enter_co_type"
,
"message"
:
"enter co type"
,
"translation"
:
"请选择用例来源。Product / Module / Suite / Task"
"translation"
:
"请选择用例来源
\n
1. 产品
\n
2. 模块
\n
3. 套件
\n
4. 任务"
},
{
"id"
:
"enter_co_independent"
,
"message"
:
"enter co independent"
,
"translation"
:
"是否将用例期待结果保存在独立的文件中?Yes / No,默认No"
"translation"
:
"是否将用例期待结果保存在独立的文件中[y/N]?"
},
{
"id"
:
"enter_co_language"
,
"message"
:
"enter co language"
,
"translation"
:
"请选择脚本语言。 %s"
"translation"
:
"请选择脚本语言。%s"
},
{
"id"
:
"enter_case_id_for_report_bug"
,
"message"
:
""
,
"translation"
:
"请输入您想提交缺陷的用例编号,输入'exit'退出"
},
{
"id"
:
"invalid_input"
,
"message"
:
"invalid input"
,
"translation"
:
"无效数据,请重新输入"
"translation"
:
"无效数据,请重新输入。"
},
{
"id"
:
"zentao_config_success"
,
"message"
:
"zentao config success"
,
"translation"
:
"禅道系统连接配置成功"
"translation"
:
"禅道系统连接配置成功。"
},
{
"id"
:
"zentao_config_fail"
,
"message"
:
"zentao config fail"
,
"translation"
:
"禅道系统连接配置失败"
"translation"
:
"禅道系统连接配置失败。"
},
{
"id"
:
"current_config"
,
"message"
:
"Current config"
,
"translation"
:
"当前配置"
},
{
"id"
:
"set_config"
,
"message"
:
"set config"
,
"translation"
:
"设置%s为%s"
},
{
"id"
:
"language"
,
"message"
:
"language"
,
"translation"
:
"语言"
},
{
"id"
:
"workDir"
,
"message"
:
"Work Dir"
,
"translation"
:
"工作目录"
"translation"
:
"当前配置:"
},
{
"id"
:
"en"
,
"message"
:
"English"
,
"translation"
:
"英文"
},
{
"id"
:
"zh"
,
"message"
:
"Chinese"
,
"translation"
:
"中文"
},
{
"id"
:
"support_language"
,
"message"
:
"只支持语言en(%s)和zh(%s)"
,
"translation"
:
"只支持语言en(%s)和zh(%s)"
},
{
"id"
:
"run_sets_with_no_dir"
,
"message"
:
""
,
"translation"
:
"执行套件或任务时,第一个参数必须为包含脚本的目录"
"translation"
:
"只支持语言en(%s)和zh(%s)。"
},
{
"id"
:
"no_cases"
,
"message"
:
"No test cases found"
,
"translation"
:
"No test cases found"
"translation"
:
"未发现测试用例。"
},
{
"id"
:
"no_scripts"
,
"message"
:
"No test scripts found"
,
"translation"
:
"未发现测试脚本"
"translation"
:
"未发现测试脚本。"
},
{
"id"
:
"success_to_login"
,
"message"
:
""
,
"translation"
:
"登录成功"
"translation"
:
"登录成功。"
},
{
"id"
:
"fail_to_login"
,
"message"
:
""
,
"translation"
:
"登录失败"
},
{
"id"
:
"use_language"
,
"message"
:
"Use Chinese language"
,
"translation"
:
"使用中文语言"
"translation"
:
"登录失败。"
},
{
"id"
:
"start_execution"
,
"message"
:
"Start Execution"
,
"translation"
:
"开始执行"
"translation"
:
"开始执行。"
},
{
"id"
:
"end_execution"
,
"message"
:
"End Execution"
,
"translation"
:
"结束执行"
"translation"
:
"结束执行。"
},
{
"id"
:
"start_case"
,
"message"
:
"Start Case"
,
"translation"
:
"开始用例 %s %s"
"translation"
:
"开始用例 %s %s。"
},
{
"id"
:
"end_case"
,
"message"
:
"End Case"
,
"translation"
:
"结束用例 %s %s,耗时%d秒"
"translation"
:
"结束用例 %s %s,耗时%d秒。"
},
{
"id"
:
"begin_analyse"
,
"message"
:
"Run scripts"
,
"translation"
:
"开始分析测试结果"
},
{
"id"
:
"run_scripts"
,
"message"
:
"Run scripts"
,
"translation"
:
"运行脚本'%s'于%s操作系统"
"translation"
:
"运行脚本'%s'于%s操作系统。"
},
{
"id"
:
"time_from_to"
,
"message"
:
"From To"
,
"translation"
:
"从%s到%s, 耗时%d秒"
},
{
"id"
:
"total"
,
"message"
:
"Total"
,
"translation"
:
"合计"
},
{
"id"
:
"pass"
,
"message"
:
"Pass"
,
"translation"
:
"通过"
},
{
"id"
:
"fail"
,
"message"
:
"Fail"
,
"translation"
:
"失败"
},
{
"id"
:
"skip"
,
"message"
:
"Skip"
,
"translation"
:
"跳过"
"translation"
:
"从%s到%s, 耗时%d秒。"
},
{
"id"
:
"step"
,
"message"
:
"Step"
,
"translation"
:
"步骤"
},
{
"id"
:
"checkpoint"
,
"message"
:
"Checkpoint"
,
"translation"
:
"验证点"
},
{
"id"
:
"expect_result"
,
"message"
:
"Expect Result"
,
"translation"
:
"期待结果"
},
{
"id"
:
"actual_result"
,
"message"
:
"Actual Result"
,
"translation"
:
"实际结果"
},
{
"id"
:
"no_checkpoints"
,
"message"
:
"No checkpoints"
,
"translation"
:
"没有验证点"
"id"
:
"no_checkpoints"
,
。
"translation"
:
"没有验证点。"
},
{
"id"
:
"steps"
,
"message"
:
"Steps"
,
"translation"
:
"步骤"
},
{
"id"
:
"only_support_script_language"
,
"message"
:
"only support language %s"
,
"translation"
:
"只支持脚本语言%s"
"translation"
:
"只支持脚本语言%s。"
},
{
"id"
:
"total_test_case"
,
"message"
:
"Totally %d test cases"
,
"translation"
:
"合计%d个测试用例"
},
{
"id"
:
"usage_of_atf"
,
"message"
:
"Usage of atf"
,
"translation"
:
"使用帮助"
},
{
"id"
:
"sample_to_use"
,
"message"
:
"Sample to use: "
,
"translation"
:
"使用示例"
"translation"
:
"合计%d个测试用例。"
},
{
"id"
:
"is_checkpoint"
,
"message"
:
"Step begin with '@' has checkpoint"
,
"translation"
:
"@开头的为含验证点的步骤"
"translation"
:
"@开头的为含验证点的步骤。"
},
{
"id"
:
"your_codes_here"
,
"message"
:
"Write your codes here"
,
"translation"
:
"此处编写操作步骤代码"
"translation"
:
"此处编写操作步骤代码。"
},
{
"id"
:
"expect_result_here"
,
"message"
:
"Expect Results"
,
"translation"
:
"期望结果, 可以有多行"
"translation"
:
"期望结果, 可以有多行
。
"
},
{
"id"
:
"actual_result_here"
,
"message"
:
"Record actual results"
,
"translation"
:
"输出验证点实际结果"
"translation"
:
"输出验证点实际结果。"
},
{
"id"
:
"success_to_generate"
,
"message"
:
"success to generate %d test scripts in '%s'"
,
"translation"
:
"成功创建%d个测试脚本, 目录: '%s'"
"translation"
:
"成功创建%d个测试脚本, 目录: '%s'。"
},
{
"id"
:
"success_to_commit_case"
,
"message"
:
""
,
"translation"
:
"成功更新用例%d"
},
{
"id"
:
"success_to_report_bug"
,
"message"
:
""
,
"translation"
:
"成功为用例%s提交缺陷"
},
{
"id"
:
"success_to_submit_result"
,
"message"
:
"success to submit the results for case %d, resultId is %d"
,
"id"
:
"success_to_commit_result"
,
"translation"
:
"成功为用例%d提交结果, 返回结果编号%d"
},
{
"id"
:
"success_to_switch_project"
,
"message"
:
"success to switch to project %s: %s"
,
"translation"
:
"成功切换到项目%s,路径%s"
},
{
"id"
:
"test_suite"
,
"message"
:
"Test Suite"
,
"translation"
:
"测试套件"
},
{
"id"
:
"test_script"
,
"message"
:
"Test Script"
,
"translation"
:
"测试脚本"
},
{
"id"
:
"content"
,
"message"
:
"Content"
,
"translation"
:
"内容"
},
{
"id"
:
"run"
,
"message"
:
"Run"
,
"translation"
:
"运行"
},
{
"id"
:
"results"
,
"message"
:
"Results"
,
"translation"
:
"结果"
},
{
"id"
:
"upload_result"
,
"message"
:
"Upload Result"
,
"translation"
:
"上传结果"
},
{
"id"
:
"report_bug"
,
"message"
:
"Report Bug"
,
"translation"
:
"提交缺陷"
},
{
"id"
:
"or"
,
"message"
:
"or"
,
...
...
@@ -370,184 +289,35 @@
},
{
"id"
:
"zentao_url"
,
"message"
:
"ZentaoUrl"
,
"translation"
:
"禅道地址"
},
{
"id"
:
"pls_input"
,
"message"
:
""
,
"id"
:
"pls_enter"
,
"translation"
:
"请输入"
},
{
"id"
:
"product_id"
,
"message"
:
""
,
"translation"
:
"产品Id"
},
{
"id"
:
"module_id"
,
"message"
:
""
,
"translation"
:
"模块Id"
},
{
"id"
:
"suite_id"
,
"message"
:
""
,
"translation"
:
"套件Id"
},
{
"id"
:
"task_id"
,
"message"
:
""
,
"translation"
:
"任务Id"
},
{
"id"
:
"independent_expect_result"
,
"message"
:
"Indep. Result"
,
"translation"
:
"独立期待结果文件"
},
{
"id"
:
"account"
,
"message"
:
"Account"
,
"translation"
:
"账号"
},
{
"id"
:
"password"
,
"message"
:
"Password"
,
"translation"
:
"密码"
},
{
"id"
:
"submit"
,
"message"
:
"Submit"
,
"translation"
:
"提交"
},
{
"id"
:
"save"
,
"message"
:
"Save"
,
"translation"
:
"保存"
},
{
"id"
:
"cancel"
,
"message"
:
"Cancel"
,
"translation"
:
"取消"
},
{
"id"
:
"close"
,
"message"
:
"close"
,
"translation"
:
"关闭"
},
{
"id"
:
"switch_to"
,
"message"
:
"Switch To"
,
"translation"
:
"切换至"
},
{
"id"
:
"no_name"
,
"message"
:
"No Name"
,
"translation"
:
"空"
},
{
"id"
:
"project_config"
,
"message"
:
""
,
"translation"
:
"%s
\\
n 工作目录: %s
\\
n 禅道项目: %s
\\
n 导入类型: %s
\\
n 产品ID: %s
\\
n 语言: %s
\\
n
\"
+
\n
\"
独立期待结果文件: %t
\"
"
},
{
"id"
:
"module"
,
"message"
:
"Module"
,
"translation"
:
"模块"
},
{
"id"
:
"category"
,
"message"
:
"Category"
,
"translation"
:
"目录"
},
{
"id"
:
"version"
,
"message"
:
"Version"
,
"translation"
:
"版本"
},
{
"id"
:
"severity"
,
"message"
:
"Severity"
,
"translation"
:
"严重级别"
},
{
"id"
:
"priority"
,
"message"
:
"Priority"
,
"translation"
:
"紧急程度"
},
{
"id"
:
"title_cannot_be_empty"
,
"message"
:
"Title cannot be empty"
,
"translation"
:
"标题不能为空"
},
{
"id"
:
"switch"
,
"message"
:
"Switch"
,
"translation"
:
"切换"
},
{
"id"
:
"switch_project"
,
"message"
:
"Create/Switch Project"
,
"translation"
:
"创建/切换项目"
},
{
"id"
:
"import_from_zentao"
,
"message"
:
"Import from Zentao"
,
"translation"
:
"从禅道导入"
},
{
"id"
:
"workdir"
,
"message"
:
"WorkDir"
,
"translation"
:
"工作目录"
},
{
"id"
:
"testing"
,
"message"
:
"Testing"
,
"translation"
:
"测试"
},
{
"id"
:
"projects"
,
"message"
:
"Projects"
,
"translation"
:
"项目"
},
{
"id"
:
"settings"
,
"message"
:
"Settings"
,
"translation"
:
"设置"
},
{
"id"
:
"help_key_bind"
,
"message"
:
"KEYBINDINGS"
,
"translation"
:
"帮助"
},
{
"id"
:
"help_mouse"
,
"message"
:
"Mouse: Mouse support"
,
"translation"
:
"Mouse: 支持鼠标"
},
{
"id"
:
"help_tab"
,
"message"
:
"Tab: Move between form widgets"
,
"translation"
:
"Tab: 表单控件导航"
},
{
"id"
:
"help_space"
,
"message"
:
"Space: Toggle radio box"
,
"translation"
:
"Space: 选中/取消单选框"
},
{
"id"
:
"help_enter"
,
"message"
:
"Enter: Click button"
,
"translation"
:
"Enter: 点击按钮"
},
{
"id"
:
"help_show"
,
"message"
:
""
,
"translation"
:
"CTRL+H: 显示/隐藏帮助"
},
{
"id"
:
"help_exit"
,
"message"
:
""
,
"translation"
:
"CTRL+C: 退出"
}
]
...
...
src/service/zentao/result.go
浏览文件 @
2a0d3eb2
...
...
@@ -51,7 +51,7 @@ func CommitResult(resultDir string) {
_
,
ok
:=
client
.
PostObject
(
url
,
requestObj
)
if
ok
{
resultId
:=
GetLastResult
(
conf
.
Url
,
id
)
logUtils
.
PrintToCmd
(
i118Utils
.
I118Prt
.
Sprintf
(
"success_to_
sub
mit_result"
,
id
,
resultId
)
+
"
\n
"
,
-
1
)
logUtils
.
PrintToCmd
(
i118Utils
.
I118Prt
.
Sprintf
(
"success_to_
com
mit_result"
,
id
,
resultId
)
+
"
\n
"
,
-
1
)
}
}
}
...
...
src/ui/variable.go
浏览文件 @
2a0d3eb2
...
...
@@ -9,15 +9,6 @@ var ViewMap map[string][]string
func
init
()
{
var
once
sync
.
Once
once
.
Do
(
func
()
{
ViewMap
=
map
[
string
][]
string
{
"root"
:
{},
"testingTab"
:
{},
"projectsTab"
:
{},
"settingsTab"
:
{},
"import"
:
{},
}
ModuleTabs
=
make
([]
string
,
0
)
ModuleTabs
=
append
(
ModuleTabs
,
"testing"
,
"projects"
,
"settings"
)
ViewMap
=
map
[
string
][]
string
{}
})
}
src/utils/stdin/stdin.go
浏览文件 @
2a0d3eb2
...
...
@@ -82,27 +82,27 @@ func InputForCheckout(productId *string, moduleId *string, suiteId *string, task
coType
=
strings
.
ToLower
(
coType
)
if
coType
==
"1"
{
*
productId
=
getInput
(
"
\\
d+"
,
i118Utils
.
I118Prt
.
Sprintf
(
"pls_
input
"
)
+
" "
+
i118Utils
.
I118Prt
.
Sprintf
(
"product_id"
))
i118Utils
.
I118Prt
.
Sprintf
(
"pls_
enter
"
)
+
" "
+
i118Utils
.
I118Prt
.
Sprintf
(
"product_id"
))
}
else
if
coType
==
"2"
{
*
productId
=
getInput
(
"
\\
d+"
,
i118Utils
.
I118Prt
.
Sprintf
(
"pls_
input
"
)
+
" "
+
i118Utils
.
I118Prt
.
Sprintf
(
"product_id"
))
i118Utils
.
I118Prt
.
Sprintf
(
"pls_
enter
"
)
+
" "
+
i118Utils
.
I118Prt
.
Sprintf
(
"product_id"
))
*
moduleId
=
getInput
(
"
\\
d+"
,
i118Utils
.
I118Prt
.
Sprintf
(
"pls_
input
"
)
+
" "
+
i118Utils
.
I118Prt
.
Sprintf
(
"module_id"
))
i118Utils
.
I118Prt
.
Sprintf
(
"pls_
enter
"
)
+
" "
+
i118Utils
.
I118Prt
.
Sprintf
(
"module_id"
))
}
else
if
coType
==
"3"
{
*
suiteId
=
getInput
(
"
\\
d+"
,
i118Utils
.
I118Prt
.
Sprintf
(
"pls_
input
"
)
+
" "
+
i118Utils
.
I118Prt
.
Sprintf
(
"suite_id"
))
i118Utils
.
I118Prt
.
Sprintf
(
"pls_
enter
"
)
+
" "
+
i118Utils
.
I118Prt
.
Sprintf
(
"suite_id"
))
}
else
if
coType
==
"4"
{
*
taskId
=
getInput
(
"
\\
d+"
,
i118Utils
.
I118Prt
.
Sprintf
(
"pls_
input
"
)
+
" "
+
i118Utils
.
I118Prt
.
Sprintf
(
"task_id"
))
i118Utils
.
I118Prt
.
Sprintf
(
"pls_
enter
"
)
+
" "
+
i118Utils
.
I118Prt
.
Sprintf
(
"task_id"
))
}
InputForBool
(
independentFile
,
false
,
"enter_co_independent"
)
regx
:=
langUtils
.
GetSupportLangageRegx
()
fmtParam
:=
strings
.
Join
(
langUtils
.
GetSupportLangageArr
(),
"
/
"
)
fmtParam
:=
strings
.
Join
(
langUtils
.
GetSupportLangageArr
(),
"
\n
"
)
*
scriptLang
=
getInput
(
regx
,
"enter_co_language"
,
fmtParam
)
}
...
...
@@ -119,6 +119,15 @@ func InputForBool(in *bool, defaultVal bool, fmtStr string, fmtParam ...string)
if
str
==
""
{
*
in
=
defaultVal
msg
:=
""
if
*
in
{
msg
=
"Yes"
}
else
{
msg
=
"No"
}
logUtils
.
PrintToStdOut
(
msg
,
-
1
)
return
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录