You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2015/02/12 22:53:37 UTC

[Bug 57576] New: IfController should not use Javascript

https://issues.apache.org/bugzilla/show_bug.cgi?id=57576

            Bug ID: 57576
           Summary: IfController should not use Javascript
           Product: JMeter
           Version: 2.12
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Main
          Assignee: issues@jmeter.apache.org
          Reporter: p.mouawad@ubik-ingenierie.com

By default IfController relies on Javascript to evaluate conditions and uses
for this Rhino.
Performances are bad (really bad).

JDK8 ships with Nashorn which we could use but it would force us to drop JAVA6
and 7 compatibility which is an issue.

So maybe we should instead rely on a more performant engine:
- Groovy
- Jexl2
....

And if Java8 is used use it.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 57576] IfController should not use Javascript Rhino by default

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57576

Philippe Mouawad <p....@ubik-ingenierie.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |p.mouawad@ubik-ingenierie.c
                   |                            |om
            Summary|IfController should not use |IfController should not use
                   |Javascript                  |Javascript Rhino by default

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 57576] IfController should not use Javascript Rhino by default

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57576

--- Comment #1 from Sebb <se...@apache.org> ---
We cannot change the IfController default to a new language, because that will
break test plans.

Note that the controller already supports the use of Jexl etc.
Just enable "Interpret Condition as Variable Expression?" and use a function
call in the appropriate language.

It may be possible to use Nashorn Javascript instead of RhinoScript, provided
that the language syntax is the same.

-- 
You are receiving this mail because:
You are the assignee for the bug.