如何编写用于负载测试“XMPP over BOSH”的 xml 脚本用宗?
我必须为我们的移动客户端(基于聊天)执行“简单 XMPP”与“XMPP over BOSH”的比较。我想使用相同的工具来比较两者。我在网上搜索发现一个名为tsung的工具,它同时支持HTTP和XMPP。我已经设置并能够使用给定的示例脚本为 XMPP 运行 tsung。
现在的问题是我无法为“XMPP over BOSH”编写 Tsung xml 脚本。我尝试在互联网上搜索但找不到任何内容。
有人可以指导我为“XMPP over BOSH”设置 Tsung吗?
请告诉我除了 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
从前一段时间开始,您可以在 TSUNG 上找到 BOSH 支持,但仅限于其主分支:
https ://github.com/processone/tsung/blob/master/src/tsung/ts_bosh.erl
要在脚本中启用它,只需将服务器的连接类型更改为“bosh”:
只需确保您的 XMPP 服务器正在侦听“http-bind”上的 BOSH 连接:
或者,如果您想将 SSL 添加到连接,您可以使用“bosh_ssl”而不是“bosh”。无论如何,是的,它完全没有记录。
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":
Just make sure that your XMPP server is listening for BOSH connections on the "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.
Tsung 是测试 XMPP 的不错选择。
Tsung 有一个 jabber 插件 - 这是一个基本工具,仅适用于基本 XMPP,如注册、登录、添加联系人/重命名/删除、聊天、MUC、pubsub、存在(已连接、在线、离线)
... Tsung 的 jabber 插件支持原始 XML - 这意味着您可以使用原始类型将任何原始 XML 数据发送到服务器:
更多内容,请访问 http://tsung.erlang- items.org/user_manual.html#htoc58
Tsung is a good choice to test XMPP.
And there is a jabber plugin of Tsung - this is a basic tool, just for basic XMPP like register, login, add contact/rename/delete, chat, MUC ,pubsub, presence(connected, online, offline ) ...
And also Tsung's jabber plugin supports raw XML - that means you can send any raw XML data to the server using the raw type :
For more content by http://tsung.erlang-projects.org/user_manual.html#htoc58