Jmeter日常--Beanshell腳本日常報錯


1.Typed variable declaration

2022-04-14 14:19:17,747 ERROR o.a.j.u.BeanShellInterpreter: Error invoking bsh method: eval    Sourced file: inline evaluation of: ``String  response =prev.getSubResults()[0].getSubResults()[0].getResponseDataAsSt . . . '' : Typed variable declaration
2022-04-14 14:19:17,748 WARN o.a.j.e.BeanShellPostProcessor: Problem in BeanShell script: org.apache.jorphan.util.JMeterException: Error invoking bsh method: eval    Sourced file: inline evaluation of: ``String  response =prev.getSubResults()[0].getSubResults()[0].getResponseDataAsSt . . . '' : Typed variable declaration

說明:這個錯誤不會指明哪行那個地方報錯,不明白的不好找;

一般是指代變量賦值格式不支持,不正確,可以從變量定義或者賦值去排查

有可能是JAVA兼容的, 到Jmeter不一定支持

2.Method info( int ) not found in class'org.apache.logging.slf4j.Log4jLogger'

2022-04-14 14:30:19,227 ERROR o.a.j.u.BeanShellInterpreter: Error invoking bsh method: eval    Sourced file: inline evaluation of: ``String  response =prev.getSubResults()[0].getSubResults()[0].getResponseDataAsSt . . . '' : Error in method invocation: Method info( int ) not found in class'org.apache.logging.slf4j.Log4jLogger'
2022-04-14 14:30:19,227 WARN o.a.j.e.BeanShellPostProcessor: Problem in BeanShell script: org.apache.jorphan.util.JMeterException: Error invoking bsh method: eval    Sourced file: inline evaluation of: ``String  response =prev.getSubResults()[0].getSubResults()[0].getResponseDataAsSt . . . '' : Error in method invocation: Method info( int ) not found in class'org.apache.logging.slf4j.Log4jLogger'

說明:log.info()不支持數字,列表等,只支持String

 

待續...

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM