Questions tagged [beanshell]

Scripting made easy for Java with a focus on simplicity.

Transforming the JSON body request from Postman into a Jmeter body request

const today = new Date(); const time = today.getTime(); pm.environment.set('time', time); let eventArray = []; for(let i = 1; i <= 50; i++) { let t = time + (i * 1000); eventArray.push({ "eid": i, "time": t }); } const data = ...

Error message: org.apache.jorphan.util.JMeterException: Unable to execute bsh method: evalSourced script: inline evaluation of:

After upgrading from selenium-server-standalone-2.53.0 to selenium-server-standalone-3.1.0 in the %Jmeter%lib folder, I encountered the following error: Response message: org.apache.jorphan.util.JMeterException: Error invoking bsh method: eval Sourced fil ...