Skip to content

Instantly share code, notes, and snippets.

@huberflores
Last active December 27, 2015 08:58
Show Gist options
  • Save huberflores/7299813 to your computer and use it in GitHub Desktop.
Save huberflores/7299813 to your computer and use it in GitHub Desktop.
Using tsung-recorder example
/*
* author Huber Flores
*/
#Tsung-recorder
#A tool that enables to record activities within a Web browser. Those activies can include filling forms, REST (GET/POST), user sessions, etc.
#Install Tsung as explained in https://gist.github.com/huberflores/2827890 (avoid this step if tsung is already installed)
#Install these dependecies if they are not installed.
#Perl Templating-Toolkit and the Gnu plotting utility to create HTML and graphical reports with the result data set.
$ apt-get install gnuplot-nox libtemplate-perl libhtml-template-perl libhtml-template-expr-perl
#Configure tsung-recorder in your browser setup (proxy= localhost port=8090)
#Tsung-recorder with parent proxy
$ tsung-recorder -u -I address -IP port start
(e.g.)
$ tsung-recorder -u -I 193.40.xxx.xxx -P 3128 start
#tsung-recoder creates an xml representation of the activities
(e.g.)
<session name='zompopo' probability='100' type='ts_http'>
<request><http url='/Uploader/uimage' version='1.1' contents_from_file='/root/.tsung/tsung_recorder20110713-15:50-1.bin' content_type='multipart/form-data; boundary=---------------------------12060338813221352851214549942' method='POST'></http></request>
</session>
#This xml session has to be located within the load configuration file of tsung as showed in https://gist.github.com/huberflores/2827890
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment