[Tsung] no Match error for Dynamic variable

Girish girish at picopeta.com
Thu Aug 24 08:48:36 CEST 2006


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>" 


=INFO REPORT==== 24-Aug-2006::11:38:45 ===
          ts_search:(4:<0.52.0>) Dyn Var: no Match (varname=sid),

and tsung.xml's  session fragment :

 <sessions>
  <session probability="100" name="jabber-example" type="ts_jabber">

<!-- regexp captures stream ID returned by server -->
  <request>
      <dyn_variable name="sid" regexp="&lt;stream:stream 
xmlns=&quot;\\(.*\\)&quot; xmlns:stream=&quot;\\(.*\\)&quot; 
id=&quot;\\(.*\\)&quot; from"/>
      <jabber type="connect" ack="local"></jabber>
  </request>

  <thinktime value="2"></thinktime>

  <transaction name="auth_digest">
     <request> <jabber type="auth_get" ack="local"></jabber> </request>
     <request subst='true'> <jabber type="auth_set_digest" 
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>


And plz guide me about how to reduce the timeout errors also.

Waiting for your replys...


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