Skip to content

Unable to access global variables such as dbdict, _ED, inside my custom script #740

Answered by sm-shaw
Sheharyar570 asked this question in Q&A
Discussion options

You must be logged in to vote

Yes, that is correct and intentional. The Virtual Users are threads and can create and manage their own variables. If you want to share variables between threads you need to use thread shared variables https://www.tcl.tk/man/tcl8.6/ThreadCmd/tsv.htm, https://www.activestate.com/blog/threads-done-right-tcl/

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Sheharyar570
Comment options

Answer selected by sm-shaw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants