Jmeter后置处理器之[email protected] - Inter-Thread Communication PostProcessor

原文链接:https://blog.****.net/paidaxing_dashu/article/details/102677723

就是跨线程组传递数据,类似函数_setProperty 和 _property,需要配合前置处理器[email protected] - Inter-Thread Communication PreProcessor来使用

应用

1)新建一个脚本,两个线程组:
Jmeter后置处理器之[email protected] - Inter-Thread Communication PostProcessor
2)第一个线程组中是提取数据的:

[email protected] - Dummy Sampler这货就是用来模拟数据输入和数据返回的,调试用的,贼方便。写了模拟返回数据:
Jmeter后置处理器之[email protected] - Inter-Thread Communication PostProcessor
正则提取一下:
Jmeter后置处理器之[email protected] - Inter-Thread Communication PostProcessor
添加一个后置这位老哥:[email protected] - Inter-Thread Communication PostProcessor
Jmeter后置处理器之[email protected] - Inter-Thread Communication PostProcessor
3)第二个线程组接收数据:
Jmeter后置处理器之[email protected] - Inter-Thread Communication PostProcessor
Jmeter后置处理器之[email protected] - Inter-Thread Communication PostProcessor
模拟请求中:
Jmeter后置处理器之[email protected] - Inter-Thread Communication PostProcessor
执行一下:
Jmeter后置处理器之[email protected] - Inter-Thread Communication PostProcessor
第二个线程组把第一个线程组中提取的数据调用到了。就是这么用的。