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, can you give me a hint or an example how to do that? Michel 2010/12/22 sebb <[email protected]>: > On 22 December 2010 11:33, Michel Duijvestijn <[email protected]> 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 this vars-object. > > This is a Javascript object, not a JMeter variable. > >> I found out that you can use a variable name within quotes like >> ${__javaScript(myOutput='${myVar}';,myOutput)} >> but is this the only/best way to work with JMeter variables? > > No, you can also use the vars Javascript object. > >> What I finally want to do is joining the value of quite a number of >> JMeter variables (obtained with the ForEach controller) into a long >> string. Something like >> ${__javaScript(myOutput ='';for (i=0;i<=99;i++){myOutput = myOutput + >> '${myVar_' + i + '}';},myOutput)}. >> This should join the values of ${myVar_1} to ${myVar_99} into one >> (parameter)string. >> >> Thanks for your help! >> --- >> Michel Duijvestijn <[email protected]> >> Rotterdam University >> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

