vlsi opened a new issue, #5877: URL: https://github.com/apache/jmeter/issues/5877
### Expected behavior There should be a way to initialize variables at the beginning of the test. For instance: a) Initialize variables based on properties b) Set thread-group specific variables In JMeter, `variable` should have `thread` scope, and it is unexpected for the variables from different threads to interfere. The name `User Defined Variable` suggests that the config element configures variables, however, it configures **test plan** variables which is completely misleading ### Actual behavior Currently, `User Defined Variables` are replaced globally in the test plan which results in surprising behaviour. For instance, if several `User Defined Variables` located under different thread groups share a variable name, only one of the values win, and the same value is reused for all the threads. ### Steps to reproduce the problem <img width="577" alt="Test plan to reproduce the issue" src="https://user-images.githubusercontent.com/213894/236209123-f3aee29a-c724-48f2-816f-f870df18543a.png"> [udv_sharing.zip](https://github.com/apache/jmeter/files/11397627/udv_sharing.zip) ### JMeter Version 5.5 ### Java Version 17 ### OS Version _No response_ -- 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-unsubscr...@jmeter.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org