提交 93de1968 编写于 作者: aaronchen2k2k's avatar aaronchen2k2k

add scripts for other languages

上级 3bf9bd76
......@@ -8,8 +8,8 @@ steps: @开头的为含验证点的步骤
expects:
%s
readme:
- 脚本输出日志和expects章节中,#号标注的验证点需保持一致对应
- 脚本中/* */标注的需用代码替换,//注解的为说明文字
- 脚本输出日志,同expects章节中#号标注的验证点需保持一致对应
- 脚本中CODE打头的注释需用代码替换
- 参考样例https://github.com/easysoft/zentaoatf/tree/master/xdoc/sample
TC;
......
package main
/*
<<TC
caseId: 100
title: 用户登录
steps: @开头的为含验证点的步骤
1000 打开登录页面
1010 输入正确的用户名和密码
@1020 点击'登录'按钮
expects:
#
@step1020期望结果, 可以有多行
readme:
- 脚本输出日志和expects章节中,#号标注的验证点需保持一致对应
- 脚本中CODE注解的需用代码替换,双斜标注的为说明文字
- 参考样例https://github.com/easysoft/zentaoatf/tree/master/xdoc/sample
TC
*/
func main() {
println("hello world.")
}
#!/usr/bin/env lua
--[[<<TC
title:lua hello world.
expect:hello world.
TC ]]
print('hello world.')
#!/usr/bin/env perl
<<TC;
title:perl hello world.
expect:hello world.
TC
print "hello world.\n";
......@@ -16,7 +16,7 @@ readme:
- 脚本中/* */标注的需用代码替换,//注解的为说明文字
- 参考样例https://github.com/easysoft/zentaoatf/tree/master/xdoc/sample
TC;
TC ;
/* 此处编写操作步骤代码 */
......
#!/usr/bin/env python
''' <<TC
title: python hello world.
expect: hello world.
TC '''
print 'hello world.';
#!/usr/bin/env python
'''
<<TC
title: python hello world.
expect: hello world.
TC
'''
print("Hello World")
#!/usr/bin/env ruby
<<TC
title: ruby hello world.
expect: hello world.
TC
print "hello world.\n";
#!/usr/bin/env bash
<<TC
title:shell hello world.
expect:hello world.
TC
echo hello world.
#!/usr/bin/env tclsh
set case { <<TC
title: tcl hello world.
expect:hello world.
TC }
set hello "hello world."
puts [set hello]
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册