Base on OSX 10.10.3
安装
brew install tsung
在终端运行
tsung
可以看到下面的输出,其实就是帮助
输出结果运行
tsung -f tsung.xml start
输出会提示log的位置,当让这个位置可以使用前面看到的-l参数指定。
运行完毕,切换到log目录,然后执行
/usr/local/lib/tsung/bin/tsung_stats.pl
如果遇到这种错误
Can't locate Template.pm in @INC (you may need to install the Template module)
使用下面的命令安装这个perl module:
sudo cpan Template
然后再运行上面的perl脚本
输出结果最后用浏览器打开生成的report.html文件,就能看到结果了。
统计结果