[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>\(.*\)</p:CID>"/>
<http url="/xxx.yaws" version="1.1" contents="<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:open="http://openqueue.corp.sap.pal">
<soapenv:Header/>
<soapenv:Body>
<open:connect>
<open:input>
<open:entity>372.VC</open:entity>
<open:welcome>false</open:welcome>
</open:input>
</open:connect>
</soapenv:Body>
</soapenv:Envelope>" 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