Re: User supplied variables in JMeter test

2011-10-01 Thread itsbritto
if the usa are created from previous request means. Better you can use
regular expression component to get the I'd and make use of it anywhere




good luck
-brittoC
On Sep 30, 2011 12:39 PM, Nishant Chandra nishant.chan...@gmail.com
wrote:

 Hi,

 I have created a test plan in Jmeter for Web Service(SOAP request).
 The web API takes product Id as input.

 In a single test run, I want to invoke the API with 100 product Ids.
 Is there any way through which I can loop over product Ids and in each
 loop I can insert new product Id dynamically?

 Thanks,
 Nishant

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




Re: User supplied variables in JMeter test

2011-09-30 Thread Bruce Ide
Sure! Just put your product IDs in a CSV file or database and use a CSV
config data element or JDBC sampler to read them into an array. Then you can
use a ForEach logic controller to perform the same action using a different
variable from the array each time. In your SOAP request you'd just replace
your static variable ID with the jmeter variable you're using in your
ForEach loop.

-- 
Bruce Ide
flyingrhenqu...@gmail.com