BeanShell PreProcessor not working

2,258 views
Skip to first unread message

Veeranagouda

unread,
Apr 16, 2014, 5:10:41 AM4/16/14
to maven-jmeter...@googlegroups.com
Hi,
I am running jmeter perf test which uses BeanShell PreProcessor. When run through GUI it is working fine. But with jmeter-maven-plugin it is not working. Getting below mentioned error:

2014/04/16 14:39:16 ERROR - jmeter.util.BeanShellInterpreter: Error invoking bsh method: eval   Sourced file: inline evaluation of: ``String env=props.get("ENV"); if(env.matches("QA")){ vars.put("TOKEN","ordering11 . . . '' 

2014/04/16 14:39:16 WARN  - jmeter.modifiers.BeanShellPreProcessor: Problem in BeanShell script org.apache.jorphan.util.JMeterException: Error invoking bsh method: eval        Sourced file: inline evaluation of: ``String env=props.get("ENV"); if(env.matches("QA")){ vars.put("TOKEN","ordering11 . . . '' 

Please let me know how to resolve this issue.

Thanks and regards,

Veeranagouda R M.

Mark Collin

unread,
Apr 18, 2014, 3:44:07 AM4/18/14
to maven-jmeter...@googlegroups.com
Can you provide a minimal test that shows the problem so I can try and reproduce it locally

--
You received this message because you are subscribed to the Google Groups "Maven JMeter Plugin Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maven-jmeter-plugi...@googlegroups.com.
To post to this group, send email to maven-jmeter...@googlegroups.com.
Visit this group at http://groups.google.com/group/maven-jmeter-plugin-users.
For more options, visit https://groups.google.com/d/optout.

signature.asc

Veeranagouda

unread,
Apr 26, 2014, 2:53:33 AM4/26/14
to maven-jmeter...@googlegroups.com
Hi,

Thank you for your reply. It was failing because of some syntax error in script. After fixing that, it works fine.

Thanks and regards,
Veeranagouda R M.


On Friday, 18 April 2014 13:14:07 UTC+5:30, Ardesco wrote:
Can you provide a minimal test that shows the problem so I can try and reproduce it locally
On 16 Apr 2014, at 10:10, Veeranagouda <veeran...@gmail.com> wrote:

Hi,
I am running jmeter perf test which uses BeanShell PreProcessor. When run through GUI it is working fine. But with jmeter-maven-plugin it is not working. Getting below mentioned error:

2014/04/16 14:39:16 ERROR - jmeter.util.BeanShellInterpreter: Error invoking bsh method: eval   Sourced file: inline evaluation of: ``String env=props.get("ENV"); if(env.matches("QA")){ vars.put("TOKEN","ordering11 . . . '' 

2014/04/16 14:39:16 WARN  - jmeter.modifiers.BeanShellPreProcessor: Problem in BeanShell script org.apache.jorphan.util.JMeterException: Error invoking bsh method: eval        Sourced file: inline evaluation of: ``String env=props.get("ENV"); if(env.matches("QA")){ vars.put("TOKEN","ordering11 . . . '' 

Please let me know how to resolve this issue.

Thanks and regards,

Veeranagouda R M.


--
You received this message because you are subscribed to the Google Groups "Maven JMeter Plugin Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to maven-jmeter-plugin-users+unsub...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages