小编sid*_*idd的帖子

JMeter/Beanshell"调用bsh方法时出错:eval源文件:"

我在JMeter中遇到问题,我收到此错误

2014/08/14 14:13:26 ERROR - jmeter.util.BeanShellInterpreter: Error invoking bsh method: eval   Sourced file: inline evaluation of: ``String RequestUrl = vars.get("RequestUrl"); String[] params = RequestUrl.split(" . . . '' : Typed variable declaration 
2014/08/14 14:13:26 WARN  - jmeter.extractor.BeanShellPostProcessor: Problem in BeanShell script org.apache.jorphan.util.JMeterException: Error invoking bsh method: eval   Sourced file: inline evaluation of: ``String RequestUrl = vars.get("RequestUrl"); String[] params = RequestUrl.split(" . . . '' : Typed variable declaration 
Run Code Online (Sandbox Code Playgroud)

我不知道什么是错的,否则代码似乎工作正常.谁能给我一些建议?

这是有问题的代码块:

String RequestUrl = vars.get("RequestUrl");
String[] params = RequestUrl.split("\\?");
String RequestTask …
Run Code Online (Sandbox Code Playgroud)

jmeter beanshell

11
推荐指数
1
解决办法
3万
查看次数

标签 统计

beanshell ×1

jmeter ×1