JMeter share setUp Thread Group variables with normal Thread Group

Viewed 5116

Imagine I have a simple test plan, like so:

setUp Thread Group
-- Http Request
---- JSON Extractor

Thread Group
-- Http Request

tearDown Thread Group
-- Http Request

By default, the variables extracted in the setUp Thread Group will not be accessible within the ordinary Thread Group nor the tearDown Thread Group. The variables' contents are different for each user and cannot be precomputed and loaded into the test plan. It is not possible to simulate the correct load using a single user.

How can I access each thread's setUp variables from within the corresponding Thread Group proper and tearDown?

2 Answers
Related