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进入

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

4、点击bundle下载

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

6、重启运行jmeter,即可

相关推荐
网易测试开发猿1 天前
吐血整理,性能测试-MySQL问题定位和分析+SQL优化(详细)
软件测试·软件测试工程师·jmeter·压力测试·性能测试·负载测试·jmeter性能测试
vHXIxsckCTh2 天前
LabVIEW中英文虚拟键盘源程序:便捷输入的利器
jmeter
少云清3 天前
【性能测试】15_JMeter _JMeter插件安装使用
开发语言·python·jmeter
少云清4 天前
【性能测试】14_JMeter _JMeter测试报告
jmeter·性能测试
少云清5 天前
【性能测试】4_JMeter _JMeter使用示例
jmeter·性能测试
少云清5 天前
【性能测试】12_JMeter _JMeter定时器
jmeter·性能测试
少云清5 天前
【性能测试】13_JMeter _JMeter分布式
分布式·jmeter·性能测试
先鱼鲨生6 天前
JMeter工具的使用
测试开发·jmeter·性能测试
少云清6 天前
【性能测试】11_JMeter _JMeter逻辑控制器
jmeter·性能测试
少云清6 天前
【性能测试】10_JMeter _JMeter连接数据库(重点)
数据库·jmeter