jmeter 中多个采样器的线程间预处理数据

问题描述 投票:0回答:1
Test Plan
Http Cookie
Http Cache
CSV CONFIG file[having firstname column  with 1000 records]

TG1-1000
Sampler 1
Sampler 2-firstnamefromcsv
Regxfromsampler2Response
InterThreadpostprocesserfromsampler2-{empid}
Sampler 3

TG2-1000
Sampler 1
samepler 2{search firstname present in csv so passing {firstname}
InterThreadpreprocesser-fetching from empid
Sampler 3
InterThreadpreprocesser-fetching from empid[same has to use in sampler 3 also]

TG3-1000
Sampler 1
samepler 2
Sampler 3

QUE:在 TG2-sampler 2 中使用预处理时,由于 fifo_Sync 在采样器 2 使用时现在为空,因此无法在采样器 3 中使用相同的变量,我该如何处理?

group-by jmeter communication jmeter-plugins
1个回答
0
投票
  1. 对我来说,看起来您根本不需要使用 3 个线程组,只需将所有内容移动到一个线程组中,您就不需要这个 IPC.
  2. 您可以通过将相同的值放入 TG2 中的 FIFO 队列来解决这个问题。它可以是另一个队列,以避免任何冲突和重复请求)
  3. 最后但并非最不重要的是,除了线程间通信插件之外,您还可以使用 JMeter 属性跨线程组传递数据,就像在使用具有多个线程组的 JMeter 变量
  4. 中所描述的那样
© www.soinside.com 2019 - 2024. All rights reserved.