jmeter- cross-thread group by value

Are independent of each other, then to how to achieve between the thread group jmeter cross-thread group by value it, then use the function box _property and _setProperty the two functions

Case:

  1, add 1 thread group, add the HTTP sampler tree and view the results in order to http://www.hao123.com example,

  

 

 

  2, the regular expression added extractor post processor in the HTTP request, extracts 'Bedroom' the parameters of FIG.

  

  3, using _setProperty function function box, the value of the incoming global

 

  

 

  4, added in the sampler BeanShell thread group 1, the value filled in 3 copies of the script

  

 

  5, using the function _property assistant to obtain the value from the global, copy function strings generated

  

 

 

   6, add a thread group 2, add the HTTP sampler to www.baidu.com to search incoming values ​​just obtained, and finally add a tree to see the results

  

 

  7, running View Results

   

 

  As can be seen in the thread 1 has been successfully set of parameters passed to the thread in the group 2

 

   

 

Guess you like

Origin www.cnblogs.com/xwxxh/p/11457090.html