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,即可

相关推荐
Qredsun6 天前
jmeter setUp Thread Group
jmeter
Qredsun6 天前
jmeter全局变量的设置与使用
jmeter
菩提树下的打坐8 天前
性能测试进阶:从 JMeter 基线到 SLO 驱动的压测体系
学习·jmeter
zzz_236810 天前
ShopXO 商城系统测试报告:功能、后台管理、异常状态与 JMeter 性能验证
jmeter
小白上线*^_^*10 天前
Jmeter从入门到精通指南
软件测试·测试工具·jmeter·接口测试·测试工程师
zzz_236812 天前
码上面试平台测试报告:功能、后台管理、异常状态与 JMeter 性能验证
jmeter·面试·职场和发展
郑重其事,鹏程万里14 天前
JMeter组件说明
jmeter
川石课堂软件测试14 天前
安全测试|服务器安全加固方法
服务器·功能测试·测试工具·jmeter·mysql·web安全·单元测试
测试员周周17 天前
【skills5】一份 spec 生成 k6/JMeter/Locust:性能压测 + 全站截图,上线前的双保险
功能测试·网络协议·测试工具·jmeter·http·自动化·集成测试