• 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

    待续...

  • 相关阅读:
    python-数据结构代码 图(邻接表)
    python-数据结构代码 查找树
    day013内置函数一
    day012生成器函数、生成器表达式、列表推导式
    day011 函数名的运用,闭包,迭代器
    day010 动态传参、函数嵌套、命名空间、作用域
    day009 初识函数
    day008文件操作及应用
    day007深度拷贝和数据补充、set去重、fromkeys
    day006 小数据池,再谈编码
  • 原文地址:https://www.cnblogs.com/shoebill/p/16144425.html
Copyright © 2020-2023  润新知