jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepak Shetty <shet...@gmail.com>
Subject Re: building a string from a list of values
Date Thu, 18 Jun 2009 15:47:03 GMT
hi
you are probably better off with a beanshell preprocessor script  that
formats the string and adds it to the request

regards
deepak

On Thu, Jun 18, 2009 at 8:37 AM, illogic <qbr0g@mailinator.com> wrote:

>
> I would like to build a string from a list of numbers.  I'm working with
> the
> following data (example):
> testints = 34,495,234,549
>
> However, I don't know ahead of time how many numbers will be in the list.
>  I
> can split the list with ${__split(${testints},testint)} so I get:
> testint_1 = 34
> testint_2 = 495
> etc
> testint_n = 4
>
> What I'm trying to build is something like the following string as a post
> parameter:
>
> "testlist:[[test34],[test495],[test234],[test549]],datalist:[[data34],[data495],[data234],[data549]]"
>
> How can I achieve this?  I figured I could do a ForEach loop and append
> each
> testint to a testlist string and datalist string, but I'm not sure how to
> go
> about initializing and appending to string variables like that.
>
> Thanks!
> --
> View this message in context:
> http://www.nabble.com/building-a-string-from-a-list-of-values-tp24095095p24095095.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message