若是你想查看更多 Jmeter 經常使用函數能夠在這篇文章找找哦html
http://www.javashuo.com/article/p-nprqihsm-nd.html函數
判斷給定條件是否成立spa
${__if(3,3,2,4,)}
字段 | 含義 | 是否必傳 |
---|---|---|
Actual val | 實際值 | no |
Expected val | 預期值 | no |
if actual == expected | 若是相等則返回的值 | no |
if actual != expected | 若是不相等則返回的值 | no |
Variable name | 引用變量名 | no |
${__if(中文,中文,true,false,)}
相等,因此返回 truecode
${__if(中文,中 文,true,false,)}
不相等,因此返回 falsehtm
${__if(Aa1,Aa1,true,false,)}
相等,因此返回 trueblog
${__if(Aa1,Aa2,true,false,)}
不相等,因此返回 falseci
${__if(@#$%^&*,@#$%^&*,true,false,)}
相等,因此返回 trueget
${__if(@#$%^&*,@#$%^&*11,true,false,)}
不相等,因此返回 falsetable