简体   繁体   English

JMeter“如果控制器”与布尔值var

[英]JMeter “If controller” with boolean var

I have a BeanShell assertion in Jmeter and one of the vars is boolean . 我在Jmeter有一个BeanShell断言,并且其中一个变量是boolean

I'm trying to use If controller and i want it will execute the http request if the var is true. 我正在尝试使用If控制器,并且我希望它在var为true时执行http请求。 this is the condition i wrote: 这是我写的条件:

${todo} == true

todo is the boolean var in the beanshell assertion, and it is not executing the request. todo是beanshell断言中的布尔型var,它不执行请求。

what is wrong with my condition? 我的病怎么了?

thanks. 谢谢。

The parameter use in condition is correct. 条件中使用的参数正确。 The problem likely lies with how you're storing the value of todo. 问题可能在于您如何存储todo的价值。 Use a debug sampler to verify the value of todo variable. 使用调试采样器来验证todo变量的值。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM