Re: How can I make different threads use different values?

2016-03-07 Thread Prakash Palnati
Hi, Use counter and increment the variable. -Prakash On 07-Mar-2016 11:48 pm, "Sheetal Jharia Baru" wrote: > Hi Prakash , > > Using getThreadNum , I could get the thread number. I am running my threads > in loop. Is there a way I can get the loop number also ? > Thanks. > > On Thu, Mar 3, 2016

Re: How can I make different threads use different values?

2016-03-07 Thread Sheetal Jharia Baru
Hi Prakash , Using getThreadNum , I could get the thread number. I am running my threads in loop. Is there a way I can get the loop number also ? Thanks. On Thu, Mar 3, 2016 at 6:30 AM, Prakash Palnati wrote: > You can use ctx.getThreadNum which will return the current thread number > and use t

Re: How can I make different threads use different values?

2016-03-03 Thread Deepak Shetty
Here is the relevant documentation for distributed mode http://jmeter.apache.org/usermanual/remote-test.html On Thu, Mar 3, 2016 at 11:45 AM, Deepak Shetty wrote: > >I believe JMeter has feature to simulate such scenario by invoking > multiple threads on different machines ? > You can distribute

Re: How can I make different threads use different values?

2016-03-03 Thread Deepak Shetty
>I believe JMeter has feature to simulate such scenario by invoking multiple threads on different machines ? You can distribute JMeter so that it runs on different machines - but you really dont want each jmeter machine to only run one thread. Its easier to run your request through a tunnel or prox

Re: How can I make different threads use different values?

2016-03-03 Thread Sheetal Jharia Baru
Deepak , You have a valid point. Running multiple OS processes may not simulate it accurately. In ideal case, we will have different users running the same *command line *requesting images from our single server (this server is load balanced obviously). I believe JMeter has feature to simulate such

Re: How can I make different threads use different values?

2016-03-03 Thread Sheetal Jharia Baru
Hi Deepak, Prakash, Thanks a lot for your help. Both CSV Data Set config and ctx.getThreadNum solved my problem. I am new to JMeter and finding this small piece of info in vast documentation was difficult. Thanks! On Thu, Mar 3, 2016 at 6:30 AM, Prakash Palnati wrote: > You can use ctx.getThre

Re: How can I make different threads use different values?

2016-03-02 Thread Prakash Palnati
You can use ctx.getThreadNum which will return the current thread number and use that variable to differentiate which image to point/download. -Prakash On 03-Mar-2016 1:40 am, "Sheetal Jharia Baru" wrote: > I am using OS Sampler to execute a shell script on my local ubuntu system. > This script

Re: How can I make different threads use different values?

2016-03-02 Thread Deepak Shetty
>Even though it is http protocol , I have to use product specific commands to download and upload the image to the URL. And when real users are uploading/downloading images , they will all do so from the same physical server - if not then you might not be able to simulate this accurately - as runni

Re: How can I make different threads use different values?

2016-03-02 Thread Sheetal Jharia Baru
Thanks for the links, I will go through them. Even though it is http protocol , I have to use product specific commands to download and upload the image to the URL. On Thu, Mar 3, 2016 at 2:36 AM, Deepak Shetty wrote: > hi > yes this is pretty much standard for Jmeter. You can use variables > ${

Re: How can I make different threads use different values?

2016-03-02 Thread Deepak Shetty
hi yes this is pretty much standard for Jmeter. You can use variables ${variableName} and you only need to setup how this variable gets populated. The most common element used is CSV data set config - but there are others too (read the component reference) See - http://jmeter.apache.org/usermanual

How can I make different threads use different values?

2016-03-02 Thread Sheetal Jharia Baru
I am using OS Sampler to execute a shell script on my local ubuntu system. This script in turn downloads a image from remote repository. As expected , when the script is run multiple times, same image is downloaded. Is there a way that each thread can download a different image (can image become so