JMeter BeanShellSampler 报错Error invoking bsh method: eval Sourced file: inline evaluation of

问题:

使用Jmeter BeanShellSampler导入java class文件后,运行,报如下错误

 

JMeter BeanShellSampler 报错Error invoking bsh method: eval	Sourced file: inline evaluation of

 

解决问题

1、如下为java源文件和class文件所在的位置

JMeter BeanShellSampler 报错Error invoking bsh method: eval	Sourced file: inline evaluation of

JMeter BeanShellSampler 报错Error invoking bsh method: eval	Sourced file: inline evaluation of

2、BeanShellSampler采取器的配置信息如下

JMeter BeanShellSampler 报错Error invoking bsh method: eval	Sourced file: inline evaluation of

3、经过各种查询得知,addClassPath 目录不能包含类的包名,修改addClassPath的值后再次运行,正常。

JMeter BeanShellSampler 报错Error invoking bsh method: eval	Sourced file: inline evaluation of

JMeter BeanShellSampler 报错Error invoking bsh method: eval	Sourced file: inline evaluation of