[Tsung] pb with dyn_variable

Boudon Cyrille cboudon at cpage.fr
Tue Jun 5 18:23:59 CEST 2007


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 :-(

  Thanks
  Cyrille


-----Message d'origine-----
De : Isaac Uribe [mailto:isaac.uribe at gmail.com] 
Envoyé : mardi 5 juin 2007 18:03
À : Boudon Cyrille
Cc : tsung-users at process-one.net
Objet : Re: [Tsung] pb with dyn_variable

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&amp;domainForm_SUBMIT=1&amp;jsf_sequence=%%_jsf_sequence%%&amp;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='&lt;input.*id="jsf_tree_64" value="\(.*\)"&gt;'/>
>
> 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