[英]Jmeter concurrency issue for a Thread of 7 Users
I have 1 thread Group, Within that I have 5 HTTP Request calls.我有 1 个线程组,其中有 5 个 HTTP 请求调用。 1st HTTP Request returns a value & that value is used in rest 4 HTTP Requests. 1st HTTP 请求返回一个值,该值用于 rest 4 HTTP 请求。 The Thread Group Set Up with Number of Thread (Users): 7 & Ramp-Up period: 5 & Loop Count: infinite.线程组设置线程数(用户):7 & Ramp-Up period: 5 & Loop Count: infinite。 When I run the thread group it breaks due to concurrency.当我运行线程组时,它由于并发而中断。
Example:例子:
When User Thread 1 executes -> Request 1,当用户线程 1 执行 -> 请求 1 时,
Thread 2 executes -> Request 2 (It expects a value from Request 1, Which has not happened for thread 2, Hence it breaks).线程 2 执行 -> 请求 2(它期望来自请求 1 的值,线程 2 没有发生,因此它中断)。
Please find the Jmeter SetUp Images below,请在下面找到 Jmeter 设置图片,
HttpCookieManager HttpCookieManager
I am new to Jmeter please help me in this.我是 Jmeter 的新手,请帮助我。
So there is no option that Thread 1 executes Sampler 1 and Thread 2 executes Sampler 2, all users will be executing all Samplers sequentially, it can be checked using__threadNum() function :所以没有线程 1 执行采样器 1 和线程 2 执行采样器 2 的选项,所有用户将按顺序执行所有采样器,可以使用__threadNum() function进行检查:
So my expectation is that either your extractor fails or Sampler 1 execution by Thread 2 fails somewhere somehow, check the requests and responses using View Results Tree listener, the JMeter Variables using Debug Sampler and jmeter.log file for any suspicious entries.所以我的预期是,要么你的提取器失败,要么线程 2 执行采样器 1 以某种方式失败,使用查看结果树侦听器检查请求和响应,使用调试采样器检查 JMeter 变量和jmeter.log 文件以查找任何可疑条目。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.