Base on OSX 10.10.3
安装
brew install tsung
在终端运行
tsung
可以看到下面的输出,其实就是帮助
![](https://img.haomeiwen.com/i258230/7914c0515ec0ebcf.png)
编写一个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脚本
![](https://img.haomeiwen.com/i258230/01d0c2b8f935d559.png)
最后用浏览器打开生成的report.html文件,就能看到结果了。
![](https://img.haomeiwen.com/i258230/25a8f3df0e7973e1.png)
网友评论