51Testing软件测试论坛
标题:
JMeter的Beanshell这段代码为啥报错
[打印本页]
作者:
测试积点老人
时间:
2022-1-27 10:53
标题:
JMeter的Beanshell这段代码为啥报错
for(int i=1;i<=10;i++){
str1=vars.getObject("result").get(i).get("client_id");
复制代码
[attach]136320[/attach]
ThreadName:线程组1-1
SAMPLSTA 202-01-2620:14:55 GMT+08:00
LOADTIME: 6
CONNECT TIME: 0
ATENCY:0
Sizeinbytes:0
Sent bytes:0
Headers size in bytes:0
Body size in bytes:0
SAMPLE COUNT 1
ERROR COUNT 1
DATATYPE (TEXTTBINT TEXT
Responsemessage:org.apachejorphan.util.JMeterE SOURCED fE: ON OF TOR(INT=1:<=10:++) MEtHO
nvocationget
ResPONse Headers
SampleResltfields
CONTENTTYPE:
DATAENCODINGNU
复制代码
str2=vars.getObject("result").get(i).get("fund_account");
log.info(str1);
log.info(str2);
}
作者:
郭小贱
时间:
2022-1-28 09:55
贴完整代码看看呢
作者:
kallinr
时间:
2022-1-28 10:24
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2