【问题描述】
jmeter使用beanshell断言报错:
2020-07-31 11:56:49,536 ERROR o.a.j.u.BeanShellInterpreter: Error invoking bsh method: eval Sourced file: inline evaluation of: import org.json.*; String response = prev.getResponseDataAsString(); JSONObje . . . '' : Typed variable declaration : Class: JSONObject not found in namespace 2020-07-31 11:56:49,536 WARN o.a.j.a.BeanShellAssertion: Error in BeanShellAssertion org.apache.jorphan.util.JMeterException: Error invoking bsh method: eval Sourced file: inline evaluation of:
import org.json.*; String response = prev.getResponseDataAsString(); JSONObje . . . ‘’ : Typed variable declaration : Class: JSONObject not found in namespace
at org.apache.jmeter.util.BeanShellInterpreter.bshInvoke(BeanShellInterpreter.java:180) ~[ApacheJMeter_core.jar:5.2.1]