Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个随机变量和一个从页面读取的变量。如何减去或乘以这两个变量以及 JMeter 中的哪个组件。
查看Jmeter的功能页面。它有大量很酷的数学工具,您可以将它们插入脚本的任何位置。
你很可能最终会执行一个jexl命令,它看起来像这样:${__jexl2(${var1}-${var2})}
${__jexl2(${var1}-${var2})}
以上对我不起作用。我是如何解决我的问题的:
${__jexl(vars.get("YOUR_VARIABLE")+1)}