vavst4
11 years agoNew Contributor
sharing a variable across multiple threads in a load test
Hi, I'm using SoapUI free edition to run a multithreaded load test.
I would like to define a single data structure (e.g., aConcurrentHashMap) that all the test threads access.
If I define this in a test step (as a Groovy script), then each individual thread would create a separate copy of the HashMap, whereas I want each thread to access the same HashMap.
Is there any way I can define the HashMap in a global or testsuite scope so that its visible to all the threads?