From 93de196874dc77ccd8435be51efef3db563c1c7a Mon Sep 17 00:00:00 2001 From: Aaron Chen <462826@qq.com> Date: Mon, 22 Jul 2019 11:34:23 +0800 Subject: [PATCH] add scripts for other languages --- xdoc/script-template.txt | 4 +-- xdoc/scripts/go/tc-100.go | 25 +++++++++++++++++++ xdoc/scripts/lua/tc-100.lua | 7 ++++++ xdoc/scripts/perl/tc-100.pl | 6 +++++ xdoc/scripts/{ => php}/tc-100.php | 2 +- xdoc/scripts/{ => php}/tc-200.php | 0 xdoc/scripts/{ => php}/tc-300.php | 0 xdoc/scripts/{ => php}/ts-001.suite | 0 xdoc/scripts/{ => php}/ts-002.suite | 0 .../php/\347\224\250\344\276\213-400.php" | 0 xdoc/scripts/python/tc-100-python2.py | 6 +++++ xdoc/scripts/python/tc-200-python3.py | 9 +++++++ xdoc/scripts/ruby/tc-100.rb | 6 +++++ xdoc/scripts/shell/tc-100.sh | 6 +++++ xdoc/scripts/tcl/tc-100.tl | 8 ++++++ 15 files changed, 76 insertions(+), 3 deletions(-) create mode 100755 xdoc/scripts/go/tc-100.go create mode 100755 xdoc/scripts/lua/tc-100.lua create mode 100755 xdoc/scripts/perl/tc-100.pl rename xdoc/scripts/{ => php}/tc-100.php (99%) rename xdoc/scripts/{ => php}/tc-200.php (100%) rename xdoc/scripts/{ => php}/tc-300.php (100%) rename xdoc/scripts/{ => php}/ts-001.suite (100%) rename xdoc/scripts/{ => php}/ts-002.suite (100%) rename "xdoc/scripts/\347\224\250\344\276\213-400.php" => "xdoc/scripts/php/\347\224\250\344\276\213-400.php" (100%) create mode 100755 xdoc/scripts/python/tc-100-python2.py create mode 100755 xdoc/scripts/python/tc-200-python3.py create mode 100755 xdoc/scripts/ruby/tc-100.rb create mode 100755 xdoc/scripts/shell/tc-100.sh create mode 100755 xdoc/scripts/tcl/tc-100.tl diff --git a/xdoc/script-template.txt b/xdoc/script-template.txt index 2bfed214..c8da55c9 100644 --- a/xdoc/script-template.txt +++ b/xdoc/script-template.txt @@ -8,8 +8,8 @@ steps: @开头的为含验证点的步骤 expects: %s readme: -- 脚本输出日志和expects章节中,#号标注的验证点需保持一致对应 -- 脚本中/* */标注的需用代码替换,//注解的为说明文字 +- 脚本输出日志,同expects章节中#号标注的验证点需保持一致对应 +- 脚本中CODE打头的注释需用代码替换 - 参考样例https://github.com/easysoft/zentaoatf/tree/master/xdoc/sample TC; diff --git a/xdoc/scripts/go/tc-100.go b/xdoc/scripts/go/tc-100.go new file mode 100755 index 00000000..531ec8f4 --- /dev/null +++ b/xdoc/scripts/go/tc-100.go @@ -0,0 +1,25 @@ +package main + +/* +<