Also see the ForEach Controller:

http://jmeter.apache.org/usermanual/component_reference.html#ForEach_Controller

This is intended for use with the Regex Extractor.

If it is difficult to write a single RE to both extract the string and
convert it into a a list of IDs, note that the Regex Extractor can
operate on the contents of a JMeter variable, so you can use multiple
extractors in sequence if necessary.


On 22 September 2014 17:26, Deepak Shetty <shet...@gmail.com> wrote:
> Hi
> see something like
> http://theworkaholic.blogspot.com/2010/03/dynamic-parameters-in-jmeter.html
> The Beanshell pre processor in the script shows how to iterate through the
> returned values extracted by regex - you can concatenate or manipulate this
> however you want in java or equivalent - if you need help with that as well
> then you probably need to give more details (e.g. the variable name etc)
>
> On Mon, Sep 22, 2014 at 7:12 AM, BOLB (Bohdan L Bodnar) <b...@panduit.com>
> wrote:
>
>> I've a problem that apparently has occurred to other users (from an
>> internet search); however, I can't figure out how to do this in my
>> application (brain-dead?).  Here's the background:
>>
>> I'm using an HTML-based API call to do a function in our product; this
>> call returns a large string that includes numeric IDs of entities.  I want
>> to extract these IDs, build a string containing them, and use this string
>> in an API call.  For example:
>>
>>
>> 1.       API_1 call - returns "text, ID1, more text, ID2,...etc."
>> consisting of n IDs.
>>
>> 2.       Regular Expression Extractor call - return variable is called
>> "ELEMENTS"
>>
>> 3.       Build string that looks like "ID1,ID2,...IDn"
>>
>> 4.       API_2 call with body having string defined in step 3.
>>
>> I have no problem in step 2 picking off any one element, putting it in
>> ELEMENTS  and using it in step 4.  I don't know how to do step 3 if Match
>> Number is set to -1 in step 2.  This doesn't look like rocket science, but
>> I can't figure it out.  Would someone be so kind as to either show me how
>> to do this or refer me to a script that does this?
>>
>> Best regards,
>>
>> Bohdan
>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org

Reply via email to