Base on OSX 10.10.3
安裝
brew install tsung
在終端運行
tsung
可以看到下面的輸出,其實就是幫助
輸出結(jié)果
編寫一個tsung的文件,可以參考這里
運行
tsung -f tsung.xml start
輸出會提示log的位置,當(dāng)讓這個位置可以使用前面看到的-l參數(shù)指定。
運行完畢,切換到log目錄,然后執(zhí)行
/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腳本
輸出結(jié)果
最后用瀏覽器打開生成的report.html文件,就能看到結(jié)果了。
統(tǒng)計結(jié)果