Can JMeter variables be shared between thread groups? 

 

A regression testcase I am building needs to 'scrape' a variable from a
webpage _only once_, then use it the scraped variable in load testing
another webservice. So I built a testcase with 2 thread groups with 'Run
each Thread Group separately' ticked in the test plan. The first thread
group runs just one thread - an HTTP request with a Regular Expression
Extractor that 'scrapes' a webpage to initializes a JMeter variable
reference. 

 

The second thread has multiple threads using the JMeter variable scraped
from the first thread group. However, I found the JMeter variable is
successfully initialized in the first thread, but not passed to the
second thread group. Is that expected behaviour? I am using JMeter 2.1.1

 

Kind regards,

Sonam Chauhan

-- 

Corporate Express Australia Ltd. 

Phone: +61-2-93350725, Email: [EMAIL PROTECTED]

 

Reply via email to