JMeter share setUp Thread Group variables with normal Thread Group -
imagine have simple test plan, so:
setup thread group -- http request ---- json extractor thread group -- http request teardown thread group -- http request by default, variables extracted in setup thread group not accessible within ordinary thread group nor teardown thread group. variables' contents different each user , cannot precomputed , loaded test plan. not possible simulate correct load using single user.
how can access each thread's setup variables within corresponding thread group proper , teardown?
jmeter variables scope limited current thread group only, if need pass data between different thread groups need convert jmeter variables jmeter properties:
- use __setproperty() function set jmeter property in i.e. setup thread group
- use __p() function or __property() function read property value in thread group.
more information: knit 1 pearl two: how use variables in different thread groups
Comments
Post a Comment