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

相关推荐
程序媛_8 天前
【JMeter】准备token文件
android·jmeter
Madison-No719 天前
基于JMeter工具的性能测试(接口)
python·jmeter·postman
小乙说20 天前
JMeter接口测试
jmeter·接口测试
观无20 天前
JMeter的基础应用
jmeter
幸运的星竹20 天前
jmeter中设置属性值的用法
jmeter
AngusKit23 天前
AngusTester 与 Postman、MeterSphere:私有化统一测试怎么选
测试工具·jmeter·压力测试·metersphere·web测试·移动端测试
TomEval24 天前
【性能测试】17 - 性能测试入门
测试工具·jmeter
测试19981 个月前
Jmeter接口自动化测试:Jmeter变量的使用
自动化测试·软件测试·测试工具·jmeter·职场和发展·测试用例·接口测试
川石课堂软件测试1 个月前
涨薪技术|Prometheus之HTTP API中使用PromQL
网络协议·测试工具·jmeter·http·单元测试·postman·prometheus
yxlalm1 个月前
4.1 JMeter 压测工具使用
jmeter