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

相关推荐
糖果店的幽灵15 天前
软件测试接口测试从入门到精通:JMeter接口测试
软件测试·jmeter·接口测试·压力测试·性能测试
1candobetter16 天前
JMeter 性能压测监控实战
jmeter
wenying_4432374416 天前
软件测试—JMeter—跨线程组关联
jmeter·压力测试
川石课堂软件测试17 天前
UI自动化测试|下拉选择框&弹出框&滚动条操作实践
开发语言·python·jmeter·ui·docker·单元测试·harmonyos
测试199819 天前
Jmeter性能压测:TPS与QPS
自动化测试·软件测试·python·jmeter·测试用例·压力测试·性能测试
川石课堂软件测试20 天前
UI自动化测试|XPath元素定位实践
功能测试·测试工具·jmeter·microsoft·ui·postman·harmonyos
wenying_4432374420 天前
软件测试—Jmeter后置处理器—XPath提取器
jmeter
wenying_4432374420 天前
软件测试—Jmeter后置处理器—正则表达式提取器
jmeter·压力测试