We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
姚春荣
v2.10.14-lts
否
ms- beanshell调用三方jar包删除Redis数据失败,jmeter可成功
已封装好的三方jar包,jmeter调用可成功(jar包私聊可发) metersphere调用控制台报错
已封装好的三方jar包,jmeter调用可成功 metersphere调用控制台报错
============================================================================
import redis.clients.jedis.Jedis; import test.metersphere.tools.Tools; String redisString="10.1.13.68:6379"; String dbindex="1"; String password = "Password123@redis"; String key ="checkIdface:key1_value1;"; log.info("put结果:"+Tools.PutRedisValues(redisString,dbindex,password,key)); Map a = Tools.GetRedisValues(redisString, dbindex, password, "checkIdface:key1"); log.info(a.toString()); log.info("del结果:"+Tools.DelRedisValues(redisString,dbindex,password,key));
Jedis jedis = new Jedis("10.1.13.68",Integer.parseInt("6379")); jedis.auth(password); jedis.connect(); jedis.select(Integer.parseInt(dbindex)); // jedis.del("checkIdface:key1"); log.info("del结果:"+jedis.del("checkIdface:key1"));
No response
The text was updated successfully, but these errors were encountered:
youliyuan-fit2cloud
No branches or pull requests
联系方式
姚春荣
MeterSphere 版本
v2.10.14-lts
使用外置数据库
否
问题描述
ms- beanshell调用三方jar包删除Redis数据失败,jmeter可成功
重现步骤
已封装好的三方jar包,jmeter调用可成功(jar包私聊可发)
metersphere调用控制台报错
期待的正确结果
已封装好的三方jar包,jmeter调用可成功
metersphere调用控制台报错
============================================================================
import redis.clients.jedis.Jedis;
import test.metersphere.tools.Tools;
String redisString="10.1.13.68:6379";
String dbindex="1";
String password = "Password123@redis";
String key ="checkIdface:key1_value1;";
log.info("put结果:"+Tools.PutRedisValues(redisString,dbindex,password,key));
Map a = Tools.GetRedisValues(redisString, dbindex, password, "checkIdface:key1");
log.info(a.toString());
log.info("del结果:"+Tools.DelRedisValues(redisString,dbindex,password,key));
Jedis jedis = new Jedis("10.1.13.68",Integer.parseInt("6379"));
jedis.auth(password);
jedis.connect();
jedis.select(Integer.parseInt(dbindex));
// jedis.del("checkIdface:key1");
log.info("del结果:"+jedis.del("checkIdface:key1"));
相关日志输出
No response
附加信息
No response
The text was updated successfully, but these errors were encountered: