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

List:       jmeter-user
Subject:    Re: Switch request method dynamically
From:       Thibaut Raballand <thibaut.raballand () gmail ! com>
Date:       2010-06-28 11:41:08
Message-ID: AANLkTil9Zl1Sbvn85QUeD3QoNJouuYMPqPRVd121N3Pk () mail ! gmail ! com
[Download RAW message or body]


Hi,

Or you can put a beanshell common preprocessor to all your HTTP requests.
In this one, according to the variable retrieved in your CSV, you change th=
e
method of the coming sampler with setMethod(string).

See in API : http://jakarta.apache.org/jmeter/api/index.html

regards,
Tibo

2010/6/28 Andrey Pohilko <apc@fininfor.ru>

> Hi,
>
> Just use 2 samplers, one making GET request, another making POST. Use
> controllers if needed. It will be the most efficient way in your case.
>
>
> =F3 =D5=D7=C1=D6=C5=CE=C9=C5=CD,
> =E1=CE=C4=D2=C5=CA =F0=CF=C8=C9=CC=D8=CB=CF
> -----Original Message-----
> From: Karsten Gaul [mailto:karsten.gaul@exedio.com]
> Sent: Monday, June 28, 2010 12:27 PM
> To: jmeter-user@jakarta.apache.org
> Subject: Switch request method dynamically
>
> Hi,
>
> what I would like to do is get the HTTPRequest method (POST, GET)
> dynamically from a csv file which I created. The reason is that I want
> to replay recorded data including many different paths and variables on
> the same host. I used the CSV Config Element, only one HTTPRequest, and
> as many iterations in the thread group as I have rows in the csv. This
> works fine except for the request method because it has a combo box
> where I cannot insert variable names.
>
> Any Ideas?
>
> rgds,
> Karsten
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>


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

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