JMeter - 在 运行 时间第二次调用时测试未 运行ning
JMeter - Test not running on second call at run time
我在以下布局中设置了我的测试:
Test Plam
Test Fragment
EP-1(include controller)
EP-2(include controller)
EP-3(include controller)
Thread Group
Parameterized controller
Module Controller
EP1
Parameterized controller
Module Controller
EP2
Parameterized controller
Module Controller
EP1
Parameterized controller
Module Controller
EP3
View Results Tree
结果:
EP1
EP2
第3集
当 运行 进行这些测试时,我只得到 EP1 运行 一次而没有 运行 第二次(看起来甚至不像它试图 运行)
除了已加载(包括控制器)外,JMeter 日志中没有任何信息
我直接添加了 HTTP 请求并且遇到了同样的问题所以做了以下设置:
Test Plan
Test Fragment
EP-1(include controller)
EP-2(include controller)
EP-3(include controller)
Thread Group
Parameterized controller
EP1
Parameterized controller
EP2
Parameterized controller
EP1
Parameterized controller
EP3
View Results Tree
还是一样的结果。有什么想法吗?
新:
这个输出是:
- 智威汤逊令牌
- 包括 Controller1 (PUT)
- 包括 Controller2 (GET)
- HTTP 请求 (PUT)
- 包括 Controller1 (PUT)
- HTTP 请求 (GET)
- 包括 Controller1 (PUT)
预计:
- 智威汤逊令牌
- 包括 Controller1 (PUT)
- 包括 Controller2 (GET)
- HTTP 请求 (PUT)
- 包括 Controller1 (PUT)
- 包括 Controller2 (GET)
- HTTP 请求 (GET)
- 包括 Controller1 (PUT)
- HTTP 请求 (GET)
- 包括 Controller2 (GET)
我无法使用每个包含文件中测试片段下的最新稳定版 JMeter 5.2.1 and your test plan structure with simple single Dummy Samplers 重现您的问题。
我将包含的采样器配置为使用 __threadGroupName() and __V() functions combination 显示当前线程组迭代,例如:
${__V(__jm__${__threadGroupName}__idx,)}
如您所见,一切运行良好:
原来缓存管理器正在缓存 (GET) 请求(复选框)
取消选中它,它起作用了。
希望这可以帮助任何人在编写这些测试时有片刻无法弄清楚为什么没有执行以下 (GET) 请求。
我在以下布局中设置了我的测试:
Test Plam
Test Fragment
EP-1(include controller)
EP-2(include controller)
EP-3(include controller)
Thread Group
Parameterized controller
Module Controller
EP1
Parameterized controller
Module Controller
EP2
Parameterized controller
Module Controller
EP1
Parameterized controller
Module Controller
EP3
View Results Tree
结果: EP1 EP2 第3集
当 运行 进行这些测试时,我只得到 EP1 运行 一次而没有 运行 第二次(看起来甚至不像它试图 运行)
除了已加载(包括控制器)外,JMeter 日志中没有任何信息
我直接添加了 HTTP 请求并且遇到了同样的问题所以做了以下设置:
Test Plan
Test Fragment
EP-1(include controller)
EP-2(include controller)
EP-3(include controller)
Thread Group
Parameterized controller
EP1
Parameterized controller
EP2
Parameterized controller
EP1
Parameterized controller
EP3
View Results Tree
还是一样的结果。有什么想法吗?
新:
这个输出是:
- 智威汤逊令牌
- 包括 Controller1 (PUT)
- 包括 Controller2 (GET)
- HTTP 请求 (PUT)
- 包括 Controller1 (PUT)
- HTTP 请求 (GET)
- 包括 Controller1 (PUT)
预计:
- 智威汤逊令牌
- 包括 Controller1 (PUT)
- 包括 Controller2 (GET)
- HTTP 请求 (PUT)
- 包括 Controller1 (PUT)
- 包括 Controller2 (GET)
- HTTP 请求 (GET)
- 包括 Controller1 (PUT)
- HTTP 请求 (GET)
- 包括 Controller2 (GET)
我无法使用每个包含文件中测试片段下的最新稳定版 JMeter 5.2.1 and your test plan structure with simple single Dummy Samplers 重现您的问题。
我将包含的采样器配置为使用 __threadGroupName() and __V() functions combination 显示当前线程组迭代,例如:
${__V(__jm__${__threadGroupName}__idx,)}
如您所见,一切运行良好:
原来缓存管理器正在缓存 (GET) 请求(复选框)
取消选中它,它起作用了。
希望这可以帮助任何人在编写这些测试时有片刻无法弄清楚为什么没有执行以下 (GET) 请求。