jmeter BeanShell预处理程序:报错JSONObject not found in namespace

1、jmeter运行报错:

ERROR o.a.j.u.BeanShellInterpreter: Error invoking bsh method: eval    Sourced file: inline evaluation of: ". . . '' : Typed variable declaration : Class: JSONObject not found in namespace

WARN o.a.j.m.BeanShellPreProcessor: Problem in BeanShell script. org.apache.jorphan.util.JMeterException: Error invoking bsh method: eval    Sourced file: inline evaluation of: ". . . '' : Typed variable declaration : Class: JSONObject not found in namespace

2、下载json.jar包

到官网,搜索json,点击JSON In Java进入

jmeter BeanShell预处理程序:报错JSONObject not found in namespace_第1张图片

3、选择最新日期、使用人数最多

jmeter BeanShell预处理程序:报错JSONObject not found in namespace_第2张图片

4、点击bundle下载

jmeter BeanShell预处理程序:报错JSONObject not found in namespace_第3张图片

5、下载完成之后,把jar包放到jmeter路径lib目录

jmeter BeanShell预处理程序:报错JSONObject not found in namespace_第4张图片

6、重启运行jmeter,即可

你可能感兴趣的:(jmeter)