性能常识 Jmeter If 逻辑控制器的__jexl3 函数 与 While 逻辑控制器的__javaScript 函数有什么区别

活着丶 · 2020年02月25日 · 最后由 活着丶 回复于 2020年02月26日 · 2286 次阅读

Jmeter If 逻辑控制器的jexl3 函数 与 While 逻辑控制器的javaScript 函数有什么区别吗?

最佳回复

The javaScript function executes a piece of JavaScript (not Java!) code and returns its value
__javaScript 执行一段 JavaScript 代码,然后返回值。

The jexl function returns the result of evaluating a Commons JEXL expression. See links below for more information on JEXL expressions.
执行 JEXL 表达式。

JEXL is a library intended to facilitate the implementation of dynamic and scripting features in applications and frameworks written in Java.

共收到 4 条回复 时间 点赞

http://commons.apache.org/proper/commons-jexl/changes-report.html

https://commons.apache.org/proper/commons-jexl/download_jexl.cgi

Jexl - Javascript Expression Language: Powerful context-based expression parser and evaluator

jacksboy 回复

我过去看了,还是不明白,能说下吗

The javaScript function executes a piece of JavaScript (not Java!) code and returns its value
__javaScript 执行一段 JavaScript 代码,然后返回值。

The jexl function returns the result of evaluating a Commons JEXL expression. See links below for more information on JEXL expressions.
执行 JEXL 表达式。

JEXL is a library intended to facilitate the implementation of dynamic and scripting features in applications and frameworks written in Java.

恒温 回复

懂了,一个 javaScript,一个 java。
好奇怪,jmeter while 控制器 有用 js 来判断,if 控制器用 java 来判断。。。

需要 登录 后方可回复, 如果你还没有账号请点击这里 注册