[Tsung] no Match error for Dynamic variable
Girish
girish at picopeta.com
Thu Aug 31 11:48:07 CEST 2006
Nicolas Niclausse wrote:
>Girish ecrivait le 24.08.2006 08:48:
>
>
>>hi all,
>>
>> I have been assigned a task of testing ejabberd using Tsung testing
>>tool. I have gone through the documentation which helped me to get
>>insight of the project.
>> I have successfully tested the server with plain authenication method.
>>But when i used digest method (i.e. auth_digest) its able to authorize
>>it self but not able to get the sid of the server. I have enabled the
>>debug mode where I got the fallowing message returned from the server :
>> =INFO REPORT==== 24-Aug-2006::11:38:45 ===
>> ts_session_cache:(7:<0.47.0>) ok, found in cache for {<0.53.0>,
>> #Ref<0.0.0.142>}
>>
>>=INFO REPORT==== 24-Aug-2006::11:38:45 ===
>> ts_session_cache:(7:<0.47.0>) hitrate is 66.667
>>
>>=INFO REPORT==== 24-Aug-2006::11:38:45 ===
>> ts_search:(7:<0.52.0>) Parsing Dyn Variable; data is "<?xml
>>version='1.0'?><stream:stream xmlns='jabber:client'
>>xmlns:stream='http://etherx.jabber.org/streams' id='3050550894'
>>from='jupiter.picopeta.com' xml:lang='en'><stream:error><host-unknown
>>xmlns='urn:ietf:params:xml:ns:xmpp-streams'/></stream:error></stream:stream>"
>>
>>
>
>There is a problem somewhere in your setup if the server is sending
>stream:error ...
>
>You can try to use dumptraffic=true to see what's going on
>
>
>
>
After analysing I came to know that, even for plain auth server is
returning <stream:error> . Please help me out .
Here is tsung.dump:
NewClient:{1157,16781,743970}:<5208.51.0>
load:1
EndClient:{1157,16781,795268}:<5208.51.0>
load:0
NewClient:{1157,16783,980391}:<5208.52.0>
load:1
Send:{1157,16784,23481}:<5208.52.0>:<iq id='2' type='set' ><query
xmlns='jabber:iq:register'><username>anamika67</username><resource>tsung</resource><password>mika67</password></query></iq>
Recv:{1157,16784,39465}:<5208.52.0>:<?xml version='1.0'?><stream:stream
xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'
id='198094058' from='jupiter.picopeta.com'
xml:lang='en'><stream:error><invalid-namespace
xmlns='urn:ietf:params:xml:ns:xmpp-streams'/></stream:error></stream:stream>
Send:{1157,16784,106254}:<5208.52.0>:<stream:stream id='4'
to='picopeta.com' xmlns='jabber:client'
xmlns:stream='http://etherx.jabber.org/streams'>
Recv:{1157,16784,145066}:<5208.52.0>:<?xml version='1.0'?><stream:stream
xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'
id='4046207211' from='jupiter.picopeta.com'
xml:lang='en'><stream:error><host-unknown
xmlns='urn:ietf:params:xml:ns:xmpp-streams'/></stream:error></stream:stream>
NewClient:{1157,16784,533483}:<5208.53.0>
load:2
EndClient:{1157,16784,795538}:<5208.53.0>
load:1
Send:{1157,16786,323199}:<5208.52.0>:<iq id='6' type='get' ><query
xmlns='jabber:iq:auth'><username>anamika67</username></query></iq>
Recv:{1157,16786,325806}:<5208.52.0>:<?xml version='1.0'?><stream:stream
xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'
id='2299875433' from='jupiter.picopeta.com'
xml:lang='en'><stream:error><invalid-namespace
xmlns='urn:ietf:params:xml:ns:xmpp-streams'/></stream:error></stream:stream>
Send:{1157,16786,370232}:<5208.52.0>:<iq id='8' type='set' ><query
xmlns='jabber:iq:auth'><username>anamika67</username><resource>tsung</resource><password>mika67</password></query></iq>
Recv:{1157,16786,371761}:<5208.52.0>:<?xml version='1.0'?><stream:stream
xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'
id='640288796' from='jupiter.picopeta.com'
xml:lang='en'><stream:error><invalid-namespace
xmlns='urn:ietf:params:xml:ns:xmpp-streams'/></stream:error></stream:stream>
Send:{1157,16786,465178}:<5208.52.0>:<presence id='10' />
Recv:{1157,16786,500719}:<5208.52.0>:<?xml version='1.0'?><stream:stream
xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'
id='3439274457' from='jupiter.picopeta.com'
xml:lang='en'><stream:error><invalid-namespace
xmlns='urn:ietf:params:xml:ns:xmpp-streams'/></stream:error></stream:stream>
NewClient:{1157,16788,307881}:<5208.54.0>
load:2
Send:{1157,16788,350502}:<5208.54.0>:<iq id='11' type='set' ><query
xmlns='jabber:iq:register'><username>anamika435</username><resource>tsung</resource><password>mika435</password></query></iq>
Recv:{1157,16788,353058}:<5208.54.0>:<?xml version='1.0'?><stream:stream
xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams'
id='449213734' from='jupiter.picopeta.com'
xml:lang='en'><stream:error><invalid-namespace xmlns='urn:ietf:par
Respective tsung.xml:
-- <?xml version="1.0"?>
<!DOCTYPE tsung SYSTEM "/usr/local/share/tsung/tsung-1.0.dtd">
<tsung loglevel="debug" dumptraffic="true" version="1.0">
<clients>
<!--if use_controller_vm ="false" In this case, tsung will start a
new VM as soon as maxusers(800) is reached otherwise it will restric itself to 800-->
<!--client host="localhost" use_controller_vm="false"></client-->
<client host="trojan" weight="1" maxusers="1024">
<ip value="202.62.79.153"></ip>
<ip value="192.168.1.120"></ip>
</client>
</clients>
<!-- Server side setup -->
<servers>
<server host="jupiter.picopeta.com" port="5222" type="tcp"></server>
</servers>
<load>
<arrivalphase phase="1" duration="1" unit="minute">
<users interarrival="2" unit="second"></users>
</arrivalphase>
<!--arrivalphase phase="2" duration="10" unit="minute">
<users interarrival="1" unit="second"></users>
</arrivalphase>
<arrivalphase phase="3" duration="10" unit="minute">
<users interarrival="0.1" unit="second"></users>
</arrivalphase-->
</load>
<!-- JABBER parameters -->
<!-- to synchronise users, use a global acknoledgement -->
<options>
<option type="ts_jabber" name="global_number" value="100"></option>
<option type="ts_jabber" name="userid_max" value="1000"></option>
<option type="ts_jabber" name="domain" value="picopeta.com"></option>
<option type="ts_jabber" name="username" value="anamika"></option>
<option type="ts_jabber" name="passwd" value="mika"></option>
</options>
<sessions>
<session probability="100" name="jabber-example" type="ts_jabber">
<request> <jabber type="register" ack="local" id="new"></jabber></request>
<request> <jabber type="connect" ack="no_ack"></jabber> </request>
<thinktime value="2"></thinktime>
<transaction name="auth_plain">
<request> <jabber type="auth_get" ack="local"></jabber> </request>
<request> <jabber type="auth_set_plain" ack="local"></jabber> </request>
</transaction>
<request> <jabber type="presence:initial" ack="no_ack"/> </request>
<thinktime value="240"></thinktime>
<transaction name="roster">
<request> <jabber type="iq:roster:get" ack="local"></jabber></request>
</transaction>
<thinktime value="240"></thinktime>
<transaction name="online">
<request> <jabber type="chat" ack="no_ack" size="16" destination="online"></jabber> </request>
</transaction>
<thinktime value="500"></thinktime>
<transaction name="offline">
<request> <jabber type="chat" ack="no_ack" size="56" destination="offline"></jabber> </request>
</transaction>
<thinktime value="250"></thinktime>
<transaction name="close">
<request> <jabber type="close" ack="no_ack"></jabber> </request>
</transaction>
</session>
</sessions>
</tsung>
Thanks & regards
----------------------------------------------------------------------
" Faith begins when Ability ends...
Girish A J (girish.a at geodesiconline.com)
Associate - Systems, Ph: (80) 2361 8184-86 Ext 135
PicoPeta Simputers Pvt Ltd. Fax: (80) 2361 7568
146 5th Cross, RMV Extension,
Bangalore - 560 080.
URL http://www.picopeta.com
--------------------------------------------------------------------------
More information about the Tsung-users
mailing list