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

相关推荐
花千树-01013 小时前
JMeter 入门与进阶指南:从零开始构建你的压测环境
java·spring boot·jmeter·性能优化·压力测试·可用性测试
川石课堂软件测试13 小时前
涨薪技术|Prometheus使用Recoding Rules优化性能
功能测试·测试工具·jmeter·mysql·面试·单元测试·prometheus
独断万古他化2 天前
抽奖系统性能负载测试:基于 JMeter 的梯度加压与本地缓存优化全流程
java·redis·jmeter·缓存·压力测试·测试·负载测试
程序员小远2 天前
Jmeter基础:Jmeter聚合报告详解
自动化测试·软件测试·python·测试工具·jmeter·测试用例·压力测试
大连好光景3 天前
接口测试之Postman+Jmeter
jmeter·http·postman
zuozewei5 天前
JMeter vs Claude Code:从“约束系统“到“解放系统“的工程设计范式跃迁
jmeter
yiwenrong5 天前
解决 JMeter 端口(Address already in use: connect)耗尽问题
jmeter
美好的事情能不能发生在我身上5 天前
Jmeter压测遇到的问题
java·分布式·jmeter
aka卡卡8 天前
JMeter学习教程
jmeter
xiufeia9 天前
JMeter
java·jmeter·tomcat·高并发