>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 Thread
Group 1 . Also if you have multiple threads - do you mean in thread group 1
? If sothey will overwrite one another's data since you are using the same
key - node_id. You usually have to add something like the thread number

See also
http://jmeter-plugins.org/wiki/InterThreadCommunication/
http://theworkaholic.blogspot.com/2013/03/sharing-session-ids-across-threads.html


On Mon, Jun 8, 2015 at 6:03 AM, Erez Naim <[email protected]> wrote:

> 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 setProperty and property functions. What could be my mistake? Or
> should I use other method to do this ?
>
>
>
> This is a very high level of my script:
>
>
>
> Thread group 1
>
>    --samplers
>
>    -- Json Path Extractor (saving node id ànode_id)
>
>    -- beanshell assertion ($__setProperty(node_id, ${node_id})}
>
>    --
>
>
>
> Thread Group 2
>
>     --samplers (inside I am using the property function --- >
> ${__property(node_id)}
>
>    --
>
>
>
>
>
> 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)
>
>
>
> Any help would be appreciated,
>
>
>
> BR,
>
>
>
> Erez Naim  |  QA Lead  |   [image: LinkedIn]
> <http://www.linkedin.com/profile/view?id=34323263>  [image: vCard]
> <http://www.theneura.com/vCards/gilad.vcf>  [image: Twitter]
> <http://twitter.com/#!/giladmeiri/>
>
> [image: cid:[email protected]]
>
> EL AL 2 Street | Herzliya
> mobile (+972) 50 9 555 686 | fax (408) 689.1366 | skype erez.neura
>
>
>
> website <http://www.theneura.com/>  |  blog <http://www.startupbitz.com/>
>  |  twitter <https://twitter.com/intent/user?screen_name=theneura>  |  map
> <http://goo.gl/maps/ZRkg5>
>
>
>
>
>

Reply via email to