Jexl3 Test failed to identify "var" syntax Exception: org.apache.commons.jexl3.JexlException$Parsing: @1:1 parsing error in 'var' This is due to using JexlExpression instead of JexlScript see link below https://issues.apache.org/jira/browse/JEXL-263?page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel&focusedCommentId=16544173#comment-16544173
Created attachment 36032 [details] Patch with using JexlScript over JexlExpression
Author: pmouawad Date: Wed Jul 18 18:46:32 2018 New Revision: 1836220 URL: http://svn.apache.org/viewvc?rev=1836220&view=rev Log: Bug 62541: Allow __jexl3, __jexl2 function to support new syntax as 'var x;'. Contributed by orimarko Bugzilla Id: 62541 Modified: jmeter/trunk/src/functions/org/apache/jmeter/functions/Jexl2Function.java jmeter/trunk/src/functions/org/apache/jmeter/functions/Jexl3Function.java jmeter/trunk/test/src/org/apache/jmeter/functions/TestJexl2Function.java jmeter/trunk/xdocs/changes.xml
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/4823