测试积点老人 发表于 2018-7-26 10:12:18

Day5-5测试积点任务

问题:
beanshell代码
String id=vars.get("pfid");
String ack=vars.get("access_token");
// vars.get("access_token")

vars.put("access_token",ack);

vars.put("pfid", id);
props.put("access_token",ack);
props.put("pfid", id));

报错内容
ERROR o.a.j.u.BeanShellInterpreter: Error invoking bsh method: eval Sourced file: inline evaluation of: ``String id=vars.get("pfid"); String ack=vars.get("access_token"); // vars.get("ac . . . '' : Method Invocation props.put

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 id=vars.get("pfid"); String ack=vars.get("access_token"); // vars.get("ac . . . '' : Method Invocation props.put

ERROR o.a.j.u.BeanShellInterpreter: Error invoking bsh method: eval In file: inline evaluation of: ``String id=vars.get("pfid"); String ack=vars.get("access_token"); // vars.get("ac . . . '' Encountered ")" at line 9, column 22.

qqq911 发表于 2018-7-27 10:44:10

对应方法未找到

libingyu135 发表于 2018-7-27 11:02:53

调用bsh方法时出错

jingzizx 发表于 2018-7-27 13:19:58

包引用对了吗?
页: [1]
查看完整版本: Day5-5测试积点任务