[英]Sending messages to other users randomly using tsung
I am using tsung.I want to create so many users then allow them to send messages to each others randomly.I have created a CSV file with values of username and passwords in it and i checked that are authorized.My problem is with the code of sending messaging between them i got always this error 我正在使用tsung。我想创建那么多用户,然后允许他们向彼此随机发送消息。我创建了一个CSV文件,其中包含用户名和密码的值,我检查是否已授权。我的问题是代码他们之间发送消息的方式我总是遇到此错误
** **
Config Error, aborting ! {{noproc,
{gen_server,call,
[{global,ts_file_server},
{get_all_lines,userdb}]}},
{gen_server,call,
[{global,ts_user_server},{reset,10000}]}}
** This is my tsung.xml **这是我的tsung.xml
<clients>
<client host="localhost" use_controller_vm="true" maxusers="20000"></client>
</clients>
<servers>
<server host="localhost" port="5222" type="tcp"></server>
</servers>
<load>
<arrivalphase phase="1" duration="60" unit="minute">
<users arrivalrate="5" unit="second"></users>
</arrivalphase>
</load>
<options>
<option name="file_server" id='userdb' value="/root/.tsung/users" />
<option type="ts_jabber" name="random_from_fileid" value="userdb"/>
<option type="ts_jabber" name="offline_from_fileid" value="userdb"/>
</options>
<sessions>
<session probability="100" name="xmpp-connection" type="ts_jabber">
<setdynvars sourcetype="file" fileid="userdb" delimiter=";" order="iter">
<var name="username" />
<var name="password" />
</setdynvars>
<request subst='true'>
<jabber type="connect" ack="no_ack">
<xmpp_authenticate username="%%_username%%" passwd="%%_password%%"/>
</jabber>
</request>
<request> <jabber type="connect" ack="local"></jabber>
</request>
<thinktime value="10"></thinktime>
<transaction name="authenticate">
<request>
<jabber type="auth_sasl" ack="local"></jabber></request>
<request>
<jabber type="connect" ack="local"></jabber>
</request>
<request>
<jabber type="auth_sasl_bind" ack="local"></jabber></request>
<request>
<jabber type="auth_sasl_session"
ack="local" ></jabber></request>
</transaction>
<request>
<jabber type="presence:initial" ack="global"></jabber></request>
<thinktime value="5"></thinktime>
<transaction name="online">
<request> <jabber type="chat" ack="no_ack" size="56" destination="online"></jabber> </request>
</transaction>
<thinktime value="3"></thinktime>
<transaction name="offline">
<request> <jabber type="chat" ack="no_ack" size="56" destination="offline"></jabber> </request>
</transaction>
<transaction name="close">
<request> <jabber type="close" ack="no_ack"></jabber> </request>
</transaction>
</session>
</sessions>
Can someone figure out what's wrong in my Tsung.xml file.Thank you 有人可以找出我的Tsung.xml文件出了什么问题吗?谢谢
I am currently struggling with tsung, and had the same error message as you. 我目前在与tsung进行斗争,并且收到与您相同的错误消息。 I removed the lines 我删除了线
<option type="ts_jabber" name="random_from_fileid" value="userdb"/>
<option type="ts_jabber" name="offline_from_fileid" value="userdb"/>
and my test started to run but with results i am not sure are correct (this is a personal issue). 并且我的测试开始运行,但是我不确定结果是否正确(这是个人问题)。 I know that csv for tsung is according to your xml, but as i said the error disappeared. 我知道tsung的csv是根据您的xml,但是正如我所说的,错误消失了。
Can you please check and let me know if you had better luck with your test ? 您能否检查一下,让我知道您的考试是否有更好的运气?
Edit: I compared our configuration files and noticed you are missing an option like 编辑:我比较了我们的配置文件,发现您缺少像
<option type="ts_jabber" name ="domain" value="yourDomainName">
Try to add this and let me know. 尝试添加它,让我知道。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.