Skip to content

Commit

Permalink
fix a issue about more than one comments block in script
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronchen2k committed Jun 9, 2021
1 parent a6efd84 commit de4b243
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion demo/sample/8_extract_desc.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@
print("<<\n");

print("expect 4\n");
print("expect 5\n");
print("expect 5\n");
1 change: 1 addition & 0 deletions res/doc/sample.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ $>ztf.exe run demo\appium\android.php --interp runtime\php\php7\php.exe
$>ztf.exe junit -p 1 mvn clean package test 执行junit单元测试脚本,
更多请参照https://www.ztesting.net/book/ztf-doc/junit-33.html
$>ztf.exe expect demo\sample\1_simple.php 在脚本1_simple.php的同目录下,生成.exp期待结果文件。
$>ztf.exe extract demo\sample\8_extract_desc.php 提取脚本中的注释,生成用例步骤和期待结果。
$>ztf.exe ci product01\tc-1.py 将脚本里修改的用例信息,同步到禅道系统。
$>ztf.exe cr log\001 -p 1 提交测试结果到禅道系统编号为1的产品。
$>ztf.exe cr log\001 -p 1 -t 1 -y 提交测试结果到禅道系统。使用-t提供TaskID、或-y忽略确认时,不需要确认。
Expand Down
1 change: 1 addition & 0 deletions res/doc/usage.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ ci 将脚本中修改的用例信息,同步到禅道系统。
cr 将用例执行结果提交到禅道系统中。
cb 将执行结果中的失败用例,作为缺陷提交到禅道系统。
expect 执行脚本,生产独立的期待结果.exp文件。
extract 提取脚本中的注释,生成用例步骤和期待结果。
list ls -l 查看测试用例列表。可指定目录和文件的列表,之间用空格隔开。
view -v 查看测试用例详情。可指定目录和文件的列表,之间用空格隔开。
clean -c 清除脚本执行日志。
Expand Down

0 comments on commit de4b243

Please sign in to comment.