[Tsung] pb with dyn_variable
Isaac Uribe
isaac.uribe at gmail.com
Tue Jun 5 18:02:52 CEST 2007
Hi,
You don't need to use regexp, since it's already a hidden value in the form.
Just leave it like this (Extract from script I'm using to test a
Tomcat-based app):
Here I'm using jsf_sequence since we changed the session type, but it
worked just the same:
<transaction name="modification_register_2">
<request subst="true">
<match do="abort" when="nomatch">logout.jsf</match>
<match do="abort" when="match">error</match>
<dyn_variable name="jsf_sequence"></dyn_variable>
<http url='##__MAIN_URL__##jsf/domain_abc/create/validate.jsf'
version='1.1' contents='domainForm%3AcreateButton=Registrar&domainForm_SUBMIT=1&jsf_sequence=%%_jsf_sequence%%&domainForm%3A_link_hidden_='
content_type='application/x-www-form-urlencoded' method='POST'></http>
</request>
</transaction>
Isaac
On 6/5/07, Boudon Cyrille <cboudon at cpage.fr> wrote:
>
>
>
>
> Hi,
>
>
>
> I use Tsung with a JSF application. There is a parameter named « jsf_tree_64
> » that contains caracters in [a-zA-Z0-9+/=]. When i declare a dyn_variable,
> all caracter '+' are replaced with space.
>
> For example if jsf_tree_64 is in html :
>
> <input type="hidden" name="jsf_tree_64" id="jsf_tree_64"
> value="H4sIAAAAAAAAAK1VS2/TQBBeo+kalCKAA">
>
>
>
> If i use
>
> <dyn_variable name="jsf_tree_64"/>
>
> Then %%_jsf_tree_64%% is undefined so i use :
>
> <dyn_variable name="tree64"
> regexp='<input.*id="jsf_tree_64" value="\(.*\)">'/>
>
> And then %%_tree64%% = "H4sIAAAAAAAAAK1VS2/TQBBeo kalCKAA"
>
> (+ replaced by space)
>
>
>
> Is there a solution to have these caracters unchanged or replaced with their
> html caracters like '%2B' ?
>
>
>
> Regards,
>
> Cyrille
>
>
> _______________________________________________
> Tsung-users mailing list
> Tsung-users at lists.process-one.net
> https://lists.process-one.net/mailman/listinfo/tsung-users
>
>
--
Isaac,
"Limit" is a state of mind....
More information about the Tsung-users
mailing list