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

相关推荐
川石课堂软件测试2 天前
性能测试|JMeter常用线程组设置策略
大数据·数据库·功能测试·测试工具·jmeter·mysql·单元测试
1candobetter4 天前
文件下载接口从预热到正式性能测试实践(JMeter + Prometheus + Grafana)
jmeter·grafana·prometheus
川石课堂软件测试5 天前
零基础小白如何学习自动化测试
python·功能测试·学习·测试工具·jmeter·压力测试·harmonyos
_周游5 天前
【软件测试】Jmeter插件管理工具
jmeter·压力测试
一氧化二氢.h5 天前
图中元件的执行顺序
测试工具·jmeter
哆啦A梦的口袋呀6 天前
JMeter基础用法
jmeter
查拉图斯特拉面条7 天前
【JMeter 高阶】正则提取器万能匹配 gsdm、czygsdm、ddgsdm 同后缀字段
jmeter
原来是猿7 天前
安装JMeter
jmeter
查拉图斯特拉面条7 天前
JMeter 兼容整数 / 小数金额断言方案:JSONPath 转为 JSR223 Groovy 断言实战
jmeter