请问各位大神,如题:我
在使用jmeter做接口测试时,在同一个BeanShell中输入了自定义的java代码,代码是最基础的定义变量,调用方法,已在eclipse中运行成功;
然后使用jmete内置的函${__setProperty(参数名,${参数值})};};,运行时报错
报错信息:Response code: 500
Response message: org.apache.jorphan.util.JMeterException: Error invoking bsh method: eval Sourced file: inline evaluation of: ``import java.util.Date; import java.text.SimpleDateFormat; import tools.*; //取当 . . . '' Token Parsing Error: Lexical error at line 13, column 21. Encountered: "g" (103), after : "\"\"
后来我分成两个BeanShell运行就成功了,请问各位,这是不兼容吗?怎么解决?