Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to write xml scripts for load testing "XMPP over BOSH" using Tsung?

I have to perform a comparison of "simple XMPP" with "XMPP over BOSH" for our mobile client(chat based). I want to use same tool to compare both. I searched on internet and found a tool called tsung which supports both HTTP and XMPP. I have setup and able to run tsung for XMPP with given example scripts.

Now the problem is that I am unable to write Tsung xml scripts for "XMPP over BOSH". I tried searching on internet but couldn't find any.

Can somebody please guide me in setting up Tsung for "XMPP over BOSH"?

Please let me know if there exist a tool other than Tsung which can serve my purpose.

like image 499
Dinesh Avatar asked Jan 24 '12 19:01

Dinesh


1 Answers

From some time ago you can find BOSH support on TSUNG but only on their master branch in:

https://github.com/processone/tsung/blob/master/src/tsung/ts_bosh.erl

For enabling it in your script just change the type of connection to your servers to "bosh":

<server host="my_bosh_server" port="5280" type="bosh"></server>

Just make sure that your XMPP server is listening for BOSH connections on the "http-bind":

http://my_bosh_server:5280/http-bind

Alternatively you can use "bosh_ssl" instead of "bosh" if you want to add SSL to your connections. In any case, yes, it's completely undocumented.

like image 86
Jose Avatar answered Sep 28 '22 08:09

Jose