共计 568 个字符,预计需要花费 2 分钟才能阅读完成。
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,即可
原文地址: jmeter BeanShell 预处理程序:报错 JSONObject not found in namespace
正文完