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

I need to perform a comparison of “plain XMPP” with “XMPP over BOSH” for our mobile client (chat based). I want to use the same tool to compare both. I searched the Internet and found a tool called tsung that supports both HTTP and XMPP. I have the configuration and the ability to run tsung for XMPP using the given script examples.

Now the problem is that I cannot write XSS XML scripts for "XMPP over BOSH". I tried searching on the Internet but could not find.

Can anyone advise me to configure Tsung for "XMPP over BOSH" ?

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

+5
source share
2 answers

From some time you can find BOSH support on TSUNG, but only on your main branch in:

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

To enable it in the 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 your XMPP server is listening on BOSH connections on "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 is completely undocumented.

+6
source

Tsung - XMPP. Jabber- Tsung - , XMPP, , , //, , MUC, pubsub, (, , )...

Tsung jabber raw XML - , XML- :

raw XML XML- :

<jabber type="raw" ack="no_ack" data="&lt;stream&gt;foo&lt;/stream&gt;"></jabber>

: XML, <, > , &, ..

http://tsung.erlang-projects.org/user_manual.html#htoc58

+3

All Articles