From be2c32d94ab26303ea9a4e1688162a8f9fa87055 Mon Sep 17 00:00:00 2001 From: Aaron Chen <462826@qq.com> Date: Mon, 2 Sep 2019 13:31:28 +0800 Subject: [PATCH] add \n when write php script line --- src/utils/const/const.go | 6 +++--- src/utils/lang/lang.go | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/utils/const/const.go b/src/utils/const/const.go index 2fcaac93..2aab080a 100644 --- a/src/utils/const/const.go +++ b/src/utils/const/const.go @@ -47,12 +47,12 @@ var ( list ls -l 查看测试用例列表。可指定目录和文件的列表,之间用空格隔开。 view -v 查看测试用例详情。可指定目录和文件的列表,之间用空格隔开。` - Example = ` $>atf.exe run scripts-demo/tc-01.bat 执行演示测试用例,非windows系统请使用tc-01.sh脚本。 + Example = ` $>atf.exe run scripts-demo\tc-01.bat 执行演示测试用例,非windows系统请使用tc-01.sh脚本。 $>atf.exe set 根据系统提示,设置语言、禅道系统地址、账号和密码参数。 可使用测试数据 http://ruiyinxin.test.zentao.net,autotest01 / P2ssw0rd $>atf.exe co 交互式导出禅道测试用例,将提示用户输入导出类型和编号。 $>atf.exe co -product 1 -language python 导出编号为1的产品测试用例,使用python语言,缩写-p -l。 - $>atf.exe co -p 1 -m 16 -l python 导出产品编号为1、模块编号为16的测试用例。 + $>atf.exe co -p 1 -m 15 -l python 导出产品编号为1、模块编号为16的测试用例。 $>atf.exe co -s 1 -l python 导出编号为1的套件所含测试用例。 $>atf.exe co -t 1 -l python 导出编号为1的测试单所含用例。 $>atf.exe up -t 1 -l python 更新编号为1的测试单所含用例的信息。 @@ -63,7 +63,7 @@ var ( $>atf.exe run c:\scripts -suite 1 执行禅道系统中编号为1的套件, 缩写-s。 $>atf.exe run c:\scripts -task 1 执行禅道系统中编号为1的任务, 缩写-t。 - $>atf.exe ci tc01.py 将脚本里面修改的用例信息,同步到禅道系统。 + $>atf.exe ci tc01.py 将脚本里面修改的用例信息,同步到禅道系统。TODO: $>atf.exe cr logs/2019-08-28T164819 提交测试结果到禅道系统。 $>atf.exe cb logs/2019-08-28T164819 提交测试结果中失败用例为缺陷。 diff --git a/src/utils/lang/lang.go b/src/utils/lang/lang.go index 4740439e..ea0c5038 100644 --- a/src/utils/lang/lang.go +++ b/src/utils/lang/lang.go @@ -37,7 +37,7 @@ func GetSupportedScriptLang() map[string]map[string]string { "php": { "extName": "php", "commentsTag": "//", - "printGrammar": "echo \"#\";", + "printGrammar": "echo \"#\\n\";", }, "python": { "extName": "py", -- GitLab