Re: sharing variables between thread groups

2015-06-08 Thread Deepak Shetty
>Then I am running it for X users (if I am running it with 1 user it works like a charm , the problem begins when I >scale up number of virtual users) Are your thread groups running sequentially or not ? if not sequential , then you cannot guarantee that Thread Group 2 will always run before Threa

sharing variables between thread groups

2015-06-08 Thread Erez Naim
Hi all, I am trying to pass variables between two different thread groups , the first thread group is for preparations and the second one is to use the variables which prepared in the 1st thread group. For some reasons not all the variables are being transferred as desired, I am using setPr

Re: Sharing variables between thread-groups in the same test plan

2012-09-11 Thread Mikhail T.
On 11.09.2012 16:19, sebb wrote: Already raised as an enhancement suggestion: https://issues.apache.org/bugzilla/show_bug.cgi?id=53795 Awesome. I just voted it up, if anybody cares... Yours, -mi

Re: Sharing variables between thread-groups in the same test plan

2012-09-11 Thread sebb
On 11 September 2012 21:15, Mikhail T. wrote: > On 11.09.2012 16:06, Jomebrew wrote: >> >> I did a blog post on my method of sharing variables between thread groups. >> In my case, I needed to pick up a session token and reuse it to >> authenticate a separat

Re: Sharing variables between thread-groups in the same test plan

2012-09-11 Thread Mikhail T.
On 11.09.2012 16:06, Jomebrew wrote: I did a blog post on my method of sharing variables between thread groups. In my case, I needed to pick up a session token and reuse it to authenticate a separate connection. http://www.jomebrew.com/2011/10/jmeter-random-transactions-and-sharing.html If I

Re: Sharing variables between thread-groups in the same test plan

2012-09-11 Thread Jomebrew
I did a blog post on my method of sharing variables between thread groups. In my case, I needed to pick up a session token and reuse it to authenticate a separate connection. http://www.jomebrew.com/2011/10/jmeter-random-transactions-and-sharing.html Cheers! On Tue, Sep 11, 2012 at 1:01 PM

Re: Sharing variables between thread-groups in the same test plan

2012-09-11 Thread Mikhail T.
On 11.09.2012 15:55, Anthony Johnson wrote: Everyone likes follow-up questions in separate threads, but you can use a Setup Thread Group: http://jmeter.apache.org/usermanual/component_reference.html#setUp_Thread_Group Great, thank you... Would it not be considered reasonable, if variables set

Re: Sharing variables between thread-groups in the same test plan

2012-09-11 Thread Anthony Johnson
Everyone likes follow-up questions in separate threads, but you can use a Setup Thread Group: http://jmeter.apache.org/usermanual/component_reference.html#setUp_Thread_Group You can also do some stuff where you block other threads from running by setting a property that blocks them. If you need

Re: Sharing variables between thread-groups in the same test plan

2012-09-11 Thread Mikhail T.
On 11.09.2012 14:04, Deepak Shetty wrote: Variables are scoped to a thread Your options are a. use properties with a suitable naming convention b. write your variables to file and reread them c. Use bsh.shared --http://jmeter.apache.org/usermanual/best-practices.html d. Use external plugin http:/

Re: Sharing variables between thread-groups in the same test plan

2012-09-11 Thread Deepak Shetty
Variables are scoped to a thread Your options are a. use properties with a suitable naming convention b. write your variables to file and reread them c. Use bsh.shared -- http://jmeter.apache.org/usermanual/best-practices.html d. Use external plugin http://code.google.com/p/jmeter-plugins/wiki/Inte

Sharing variables between thread-groups in the same test plan

2012-09-11 Thread Mikhail T.
Hello! There are some pieces of data, which multiple thread-groups need. But, even I ask for the groups to be executed in sequence, the variables set by one are not seen in subsequent ones. Is there a way to solve this nicely, or do I need custom-scripting? Thanks! -mi