[Tsung] script to generate reports.
Stein, Martin
martin.stein at sap.com
Fri May 9 18:35:51 CEST 2008
Hello
I came up with a little script to generate reports for each of the
log/YYYY-MM-DD directories inside the .tsung/log directory. I wanted to
share it here as it may be useful.
Regards,
Martin
#!/bin/bash
# Run this in the tsung log directory. This goes through each directory
and
# builds reports in each. Then generate a index.html page in the log
# directory. Martin Stein 4/2008
REPDIRS=$(/bin/ls -d1 200[89]????-??:??)
echo " <HTML>
<HEAD>
<TITLE>Tsung Load Testing Reports for VOW2.</TITLE>
<H1>Tsung Load Testing Reports for VOW2.</H1>
</HEAD>
<BODY>" > index.html
for d in $REPDIRS; do
if [ ! -e ${d}/report.html ]; then
# only generate report if it doesn't exist.
pushd $d
/usr/local/lib/tsung/bin/tsung_stats.pl
popd
fi
echo "<p><a href=${d}/report.html>${d}</a></p>" >>index.html
done
echo "</BODY></HTML>" >>index.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.process-one.net/pipermail/tsung-users/attachments/20080509/c589526b/attachment.html
More information about the Tsung-users
mailing list