[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jmeter-user
Subject:    Re: Foreach Controller - Only extract 1st 20 values from list
From:       sebb <sebbaz () gmail ! com>
Date:       2011-11-29 12:35:38
Message-ID: CAOGo0VZRgCWtZ7sMnZJimigj_mdKYRO70sfEWwL6V1EMPBezbQ () mail ! gmail ! com
[Download RAW message or body]

On 28 November 2011 19:51, testerinCO <cmolatch@comcast.net> wrote:
> I have a foreach controller with 100+ items, but I'm only interested in t=
he
> 1st 20 items. =A0How can I restrict the controller to only extract the 1s=
t 20
> items and then quit?

The ForEach Controller exits when the variable is not defined, so one
way to stop it early would be to delete the 21st variable.
This can be done in a post-processor just after the regex extractor.

The following script should work with BeanShell, Jexl etc.

vars.remove("REGEXVAR_21");

> Thank you.
>
> --
> View this message in context: http://jmeter.512774.n5.nabble.com/Foreach-=
Controller-Only-extract-1st-20-values-from-list-tp5029901p5029901.html
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@jmeter.apache.org
> For additional commands, e-mail: user-help@jmeter.apache.org
>

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic