Re: Using JMeter variables in Javascript function

2010-12-22 Thread Michel Duijvestijn
Yes!!! That was the information I needed! ${__javaScript(for (i=0;i<=5;i++){myOutput=myOutput + vars.get("myVar_"+i)+'&'};,myOutput)} gives me the desired output! Thanks again Sebb! 2010/12/22 sebb : > On 22 December 2010 13:10, Michel Duijvestijn wrote: >> Thx Sebb and Felix (Excuse!) >> >> @Fel

Re: Using JMeter variables in Javascript function

2010-12-22 Thread sebb
On 22 December 2010 13:10, Michel Duijvestijn wrote: > Thx Sebb and Felix (Excuse!) > > @Felix: the $1$$2$$3$ is giving me only the results within one single > match, so that is not a solution. > > @Sebb: you wrote: "No, you can also use the vars Javascript object." > Does that give me access to t

Re: Using JMeter variables in Javascript function

2010-12-22 Thread Michel Duijvestijn
Thx Sebb and Felix (Excuse!) @Felix: the $1$$2$$3$ is giving me only the results within one single match, so that is not a solution. @Sebb: you wrote: "No, you can also use the vars Javascript object." Does that give me access to the whole set of JMeter variables in some way or another? If so, ca

Re: Using JMeter variables in Javascript function

2010-12-22 Thread sebb
On 22 December 2010 11:33, Michel Duijvestijn wrote: > In the documentation about the __javaScript function is stated that: > > "The following variables are made available to the script: > * ... > * vars - JMeterVariables object > * ..." > > Being rather new to JMeter I don't understand how to use

Re: Using JMeter variables in Javascript function

2010-12-22 Thread Felix Frank
On 12/22/2010 12:56 PM, Michel Duijvestijn wrote: > Thx Frank It's "Felix". > I have one sampler response in which ther is all the information I need, > I'm using a regular expression extractor which gives the (say) 99 > matches. Within this postprocessor I can (as far as I know) only use > one m

Re: Using JMeter variables in Javascript function

2010-12-22 Thread Michel Duijvestijn
Thx Frank I have one sampler response in which ther is all the information I need, I'm using a regular expression extractor which gives the (say) 99 matches. Within this postprocessor I can (as far as I know) only use one match (myVar). By using a negative number in the match No. parameter in comb

Re: Using JMeter variables in Javascript function

2010-12-22 Thread Felix Frank
On 12/22/2010 12:33 PM, Michel Duijvestijn wrote: > In the documentation about the __javaScript function is stated that: > > "The following variables are made available to the script: > * ... > * vars - JMeterVariables object > * ..." > > Being rather new to JMeter I don't understand how to use t

Using JMeter variables in Javascript function

2010-12-22 Thread Michel Duijvestijn
In the documentation about the __javaScript function is stated that: "The following variables are made available to the script: * ... * vars - JMeterVariables object * ..." Being rather new to JMeter I don't understand how to use this vars-object. I found out that you can use a variable name with