jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nermin CALUK" <ner...@atlantbh.com>
Subject RE: For Each Controller
Date Wed, 30 Nov 2011 11:47:49 GMT
Depending on what you need:

- You use loop and ${evalVar()} when you want to loop through all matched
occurrences
- If you need to concatenate these values, simply use ${VAR1}${VAR2}${VAR3}
(without spaces)

Nermin

-----Original Message-----
From: Shaba K [mailto:shabazia09@gmail.com] 
Sent: Wednesday, November 30, 2011 10:47 AM
To: JMeter Users List
Subject: Re: For Each Controller

Hi All,

Here's how my reg ex looks

GET_EVENT_ID_1=175213
GET_EVENT_ID_1_g=1
GET_EVENT_ID_1_g0=packageInfo_175213">
GET_EVENT_ID_1_g1=175213
GET_EVENT_ID_2=175225
GET_EVENT_ID_2_g=1
GET_EVENT_ID_2_g0=packageInfo_175225">
GET_EVENT_ID_2_g1=175225
GET_EVENT_ID_3=175237
GET_EVENT_ID_3_g=1
GET_EVENT_ID_3_g0=packageInfo_175237">
GET_EVENT_ID_3_g1=175237
GET_EVENT_ID_4=175249
GET_EVENT_ID_4_g=1
GET_EVENT_ID_4_g0=packageInfo_175249">
GET_EVENT_ID_4_g1=175249
GET_EVENT_ID_matchNr=4


my for loop - INPUT var  - GET_EVENT_ID
OUTput  var = EVENT_ID

Debug sampler shows the value being fetched is correct.

I have to build all that is found in the one highlighted & send as
parameters for the next request ??

i can't add in for loop & a request ... can some guide on this please

-Shabana

On Tue, Nov 29, 2011 at 4:31 PM, Shaba K <shabazia09@gmail.com> wrote:

> Hi All,
>
> I have a problem with teh for each controller looping in.
>
> there is a webpage,which has images generated
>
> the html snippet looks like
>
> <input id="select_175213" type="checkbox" disabled="disabled" value="
> 175213" name="eventInTopPackage[175213]">
> <input type="hidden" value="175213" name="eventInTopPackage[175213]">
> <img id="packageInfoImage_175213" width="70" height="39" src="
> /static/images/default-205x115-ticket.png" title="Test sub event static
> plan" alt="Test sub event static plan
>
> now i have to get the id's that are associated  & then after retrieving
> all id's from all the images generated i have to send these parameters as
> post http data.
>
> Can some one please suggest how to go about.
>
> my Test script looks like.
>
> Test Plan.
> +Config Elements (CSV,UDV)
> +Thread Group
> ++http smapler
> ++httpsampler
> ++for each controller   - > i don't want the for each to post each id. (If
> i read the file from a CSV file.)
> +++httpsampler
>
>
> Your input helps.
>
> -Shaba
>


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


Mime
View raw message