You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jmeter.apache.org by "FSchumacher (via GitHub)" <gi...@apache.org> on 2026/04/22 12:10:51 UTC

Re: [I] User defined variable of the last thread overrides the predecessor thread user defined variable [jmeter]

FSchumacher commented on issue #6494:
URL: https://github.com/apache/jmeter/issues/6494#issuecomment-4296094476

   Your assumption that User Defined Variables are scoped to individual thread groups is incorrect - they're global by default in JMeter. When Thread Group 2 defines P_url, it overwrites the value set by Thread Group 1.
   
   Workaround options:
   
   * Use the same name, but initialize them individually without a UDV on thread group start up
   * Use different variable names like P_urlTG1 and P_urlTG2 per thread group
   
   This is documented behavior, not a bug. See the [JMeter component reference on user defined variables](https://jmeter.apache.org/usermanual/component_reference.html#User_Defined_Variables) for more details.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@jmeter.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org