Tutorial: Writing a Tsung plugin
Posted: 25 March 2007 06:50 PM   [ Ignore ]
Administrator
Avatar
RankRankRankRank
Total Posts:  430
Joined  2006-11-12

Hello,

tty has contributed a very nice tutorial: Writing a Tsung plugin

Your comments are welcome !

Profile
 
 
Posted: 27 June 2007 12:15 AM   [ Ignore ]   [ # 1 ]
Newbie
Rank
Total Posts:  1
Joined  2007-06-25

So, after using Tsung for some months, I bought this great book to learn a bit of Erlang (“Programming Erlang” http://pragmaticprogrammer.com/titles/jaerlang/) and following the tutorial, I managed to end up with a plugin we’ve been using at work to test a new implementation of Whois servers.

Whois protocol (RFC http://www.ietf.org/rfc/rfc3912.txt) is pretty straightforward, so it’s just a matter of connecting, sending data and validating output with regular expressions.

Thanks to the Tsung framework, I could reach 6,000 connections with a couple of Pentium 4 slaves.

Here is the source code, as described in the tutorial, plus a patch for tsung-1.0.dtd version 1.2.1.

Profile
 
 
Posted: 27 June 2007 05:01 PM   [ Ignore ]   [ # 2 ]
Administrator
Avatar
RankRankRankRank
Total Posts:  430
Joined  2006-11-12

Hello Isaac,

Great tutorial. Thank you !

Profile
 
 
Posted: 10 July 2007 04:13 PM   [ Ignore ]   [ # 3 ]
Newbie
Rank
Total Posts:  1
Joined  2007-07-10

Thanks for the tutorial.  It makes adding or modifying a protocol seem easy.  That is, until I try to run make.  I cannot locate or identify a working Makefile.  Makefile.in will not work for me.  Even if I explicitly make Makefile.in (there is no ‘Makefile’ or ‘makefile’ ) I get this message:

make: *** No rule to make target `@CONFIGURE_DEPENDENCIES@', needed by `configure'.  Stop. 

It would be very helpful if a little more detail was provided in the tutorial instructions for using make.

Thanks!
Kurt Risser
JFCOM, Suffolk, VA., USA.

Follow-up:  The solution to the problem above is simple, although not obvious:

You must execute configure first.  This creates the Makefile.

The tutorial will be improved if this step is documented rather than assumed.

Profile
 
 
Posted: 19 December 2009 08:54 AM   [ Ignore ]   [ # 4 ]
Newbie
Rank
Total Posts:  1
Joined  2009-12-19

Thanks… this is a grt help.

Profile
 
 
Posted: 13 March 2010 09:46 PM   [ Ignore ]   [ # 5 ]
Newbie
Avatar
Rank
Total Posts:  1
Joined  2010-03-13

Excellent Tutorial. It so much help me.

Profile