-
Description of the Problem Test Code Example import static org.assertj.core.api.Assertions.assertThat; import java.io.IOException; public class PerformanceTest { @test public static String buildRequestBody(JMeterVariables vars) { Error Details 2024-12-20 17:52:26,532 ERROR o.a.j.f.Jexl2Function: An error occurred while evaluating the expression "props.get('lambdaScript1').run(new('us.abstracta.jmeter.javadsl.core.util.PropertyScriptBuilder$PropertyScriptVars',ctx,log))" org.apache.commons.jexl2.JexlException: org.apache.jmeter.functions.Jexl2Function.execute@94![27,128]: 'props.get('lambdaScript1').run(new ('us.abstracta.jmeter.javadsl.core.util.PropertyScriptBuilder$PropertyScriptVars', ctx, log));' attempting to call method on null The stack trace points to an issue with the props.get method, which seems to be related to the use of a lambda function or PropertyScriptBuilder internally in the JMeter DSL. Observations I am not sure what I am missing, other examples are working fine, if I remove lambda usage its working. Request for Help Environment Details Any insights or suggestions from the community would be highly appreciated! Thank you in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Hello, thank you for trying and reporting a detailed description of the issue. Have you tried including jmeter-java-dsl library in the jmeter libs path of the worker nodes? |
Beta Was this translation helpful? Give feedback.
-
You need also to package the code containing the lambda (probably your test classes) and include it in the workers jmeter library path. |
Beta Was this translation helpful? Give feedback.
After reading other section of the documents along with the lambda section, made small changes and it seems its working.
Thanks @rabelenda for quick help.