Synopsis:
Find
out ways to pass a value between threads (i.e. capturing a value in one of the
thread and passing it to the other thread in the same test plan).
Tool
Used: JMeter:
Performance testing tool.
Solution: Sharing Variables
1)
Used Sampler : BSF Sampler
1) Screenshot displaying the use of the BSF Sampler using ${__setProperty(storeid, ${storeid})}; for
capturing the time. The website used is http://www.mail-archive.com/jmeter-user@jakarta.apache.org/info.html
for displaying the value captured in one thread to the other thread.
Screenshot 1: Displaying the BSF Sampler capturing the time value using ${__setProperty(storetime,
${__time(HMS)})};
Screenshot 2: Displaying the time captured using ${__property(storetime)} in the
other thread.
Screenshot3: Successful execution of the script
displaying the time value captured in Thread2