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

相关推荐
banyoyo14 天前
jmeter测试使用方法
jmeter
汪汪88888814 天前
jmeter压测下载功能影响本地内存的方案
jmeter
跨境数据猎手15 天前
跨境电商系统JMeter 和 Gatling 分工
jmeter
han688916 天前
jmeter操作数据库
数据库·jmeter
川石课堂软件测试18 天前
涨薪技术|0到1学会性能测试第8课-Analysis分析图
服务器·数据库·python·sql·jmeter·mysql·容器
川石课堂软件测试19 天前
JMeter异步接口测试实战
数据库·python·jmeter·mysql·kubernetes·测试用例·prometheus
zuozewei21 天前
第02篇-k6-脚本结构与生命周期
软件测试·jmeter·性能测试·k6·ai 编程
fen_fen21 天前
Jmeter5.1.1连接oracle数据库的错误复盘
数据库·jmeter·oracle
川石课堂软件测试24 天前
自动化测试|持续集成Git使用详解
git·python·jmeter·mysql·ci/cd·容器·kubernetes
wuhuhuan1 个月前
JMeter 连接数据库并取值(JDBC 实战)
数据库·jmeter