[Tsung] pb with dyn_variable

Nicolas Niclausse nicolas at niclux.org
Wed Jun 6 13:13:16 CEST 2007


Boudon Cyrille ecrivait le 05.06.2007 18:23:
> Hi,
> 
> I have already use <dyn_variable name="jsf_tree_64"></dyn_variable>
> But i obtain "undefined" in the next request. And in tsung_controller at HOST.log i have :
> ts_search:(4:<0.65.0>) Dyn Var: no Match (varname=jsf_tree_64),
> 
> I don't know why this solution doesn't work because with regexp, jsf_tree_64 is found in the response (the hidden input is present, i have dumped the html).
> Is there a solution in erlang to read the response, found the value of jsf_tree_64 and replace all non alpha caracters with there html codes ?
> I'm a newbie in erlang :-(

Hello

OK, there is indeed  a bug in the default regexp. It's fixed in the svn now
(thanks to Jérôme Sautret)

However, i can't reproduce your problem with '+' replaced by a space.

I have:

      <request>
        <dyn_variable name="jsf_tree_64"/>
        <http url="/test.html" method="GET" version="1.1"/>
      </request>

      <request subst="true">
        <http url="/index.html?toto=%%_jsf_tree_64%%" method="GET"
version="1.1"/>
      </request>

and it works:

Recv:{1181,128012,424969}:<0.71.0>:HTTP/1.1 200 OK
Server: Yaws/1.56 Yet Another Web Server
DAV: 1
Date: Wed, 06 Jun 2007 11:06:52 GMT
Last-Modified: Wed, 06 Jun 2007 10:52:19 GMT
Etag: "12MzRMCOYPr"
Content-Length: 100
Content-Type: text/html;charset=

<input type="hidden" name="jsf_tree_64" id="jsf_tree_64"
value="H4sIAAAAAAAAAK1VS2/TQBBeo+kalCK
AA">

Send:{1181,128015,205284}:<0.71.0>:GET
/index.html?toto=H4sIAAAAAAAAAK1VS2/TQBBeo+kalCKAA HTTP/
1.1



-- 
Nicolas


More information about the Tsung-users mailing list