jmeter和metersphere引用jar包报错Error invoking bsh method和 not found in namespace

2024-01-09 09:26:38 ERROR 54b7e26f 1-1 Error invoking bsh method: eval Sourced file: inline evaluation of: // BeanShell脚本开始 import com.example.demo.DemoApplication; DemoApplica . . . '' : Typed variable declaration : Class: DemoApplication not found in namespace 2024-01-09 09:26:38 WARN 54b7e26f 1-1 Exception executing script. org.apache.jorphan.util.JMeterException: Error invoking bsh method: eval Sourced file: inline evaluation of: // BeanShell脚本开始 import com.example.demo.DemoApplication; DemoApplica . . . ‘’ : Typed variable declaration : Class: DemoApplication not found in namespace

1.查看jar包有没有上传
2.引用包名.类名.方法名
3.查看包是否引用第三方依赖,如果有打包的是需要依赖一起打包
pom文件里面配置:

            
              maven-assembly-plugin  
                
                  
                  
                      
                          
                      
                  
                    
                      jar-with-dependencies  
                    
             
        

你可能感兴趣的:(jmeter,metersphere,jar)