[Tsung] Dynamix variable parsing error?

Stein, Martin martin.stein at sap.com
Tue Apr 22 19:50:00 CEST 2008


Hello

 

I am very excited about using Tsung on our Erlang-based project. I need
to talk to a server, receive data and fire off responses based on the
data I received. But my config file has a problem that shows up as:

 

 

> tsung start

Starting Tsung "Log directory is:
/home/steinma/.tsung/log/20080422-17:42"

["Config Error, aborting ! ",

{{badmatch,{ok,[{var,1,'CID_var1'}],1}},

[{ts_config,parse,2},{lists,foldl,3},{ts_config,read,1},{ts_config_serve
r,handle_call,3},{gen_server,handle_msg,5},{proc_lib,init_p,5}]}]

 

 

The problem seems to be in the configuration, however, the problem is an
ok return code! Here the corresponding tsung.xml snapshot:

 

<sessions>

  <session name="http-soap-vow" probability="100" type="ts_http">

 

<request>

<dyn_variable name="CID_var1" regexp="CID&gt;\(.*\)&lt;/p:CID&gt;"/>

<http url="/xxx.yaws" version="1.1"  contents="&lt;soapenv:Envelope
xmlns:soapenv=&quot;http://schemas.xmlsoap.org/soap/envelope/&quot;
xmlns:open=&quot;http://openqueue.corp.sap.pal&quot;&gt;

   &lt;soapenv:Header/&gt;

   &lt;soapenv:Body&gt;

      &lt;open:connect&gt;

         &lt;open:input&gt;

            &lt;open:entity&gt;372.VC&lt;/open:entity&gt;

            &lt;open:welcome&gt;false&lt;/open:welcome&gt;

         &lt;/open:input&gt;

      &lt;/open:connect&gt;

   &lt;/soapenv:Body&gt;

&lt;/soapenv:Envelope&gt;" content_type="text/xml;charset=UTF-8"
method="POST">

  <soap action=""></soap>

</http></request>

 

 

The SOAP stuff was recorded with the tsung recorder and I just changed '
to " and added the dyn_variable statement, copied from the manual. Where
am I going wrong?

 

Thanks!

Martin

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.process-one.net/pipermail/tsung-users/attachments/20080422/b58e8761/attachment.html


More information about the Tsung-users mailing list