Function Helper 中的 JMeter __chooseRandom 不起作用

JMeter __chooseRandom in Function Helper doesn't work

打开JMeter的Function Helper并尝试执行chooseRandom(jmeter插件添加)时

它失败了,因为它需要至少 3 个参数,而 JMeter 只显示 2 个

org.apache.jmeter.functions.InvalidVariableException: __chooseRandom called with wrong number of parameters. Actual: 2. Expected at least: 3.

有没有办法在Function Helper里面执行呢?

如果不是,是JMeter还是JMeter插件的bug?

我认为您无法验证 __chooseRandom() function with the help of the Function Helper Dialog,因为当您填充要从中选择的值列表时,它会用反斜杠转义逗号:

我认为 JMeter 开发人员不会考虑这个问题(但是您可以 ask) as it's a 3rd-party plugin. Neither JMeter Plugin developers/maintainers 重构函数,因为它会破坏向后兼容性。

你可以四处询问,因为我可能是错的,同时你可以使用 Debug Sampler and View Results Tree listener combination

来验证函数输出