Skip to content
New issue

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

[BUG] ms- beanshell调用三方jar包删除Redis数据失败,jmeter可成功 #30656

Open
fit2cloud-yaochunrong opened this issue Apr 30, 2024 · 0 comments
Assignees
Labels
类型:缺陷 使用过程中出现不符合预期情况

Comments

@fit2cloud-yaochunrong
Copy link

fit2cloud-yaochunrong commented Apr 30, 2024

联系方式

姚春荣

MeterSphere 版本

v2.10.14-lts

使用外置数据库

问题描述

ms- beanshell调用三方jar包删除Redis数据失败,jmeter可成功

重现步骤

已封装好的三方jar包,jmeter调用可成功(jar包私聊可发)
metersphere调用控制台报错

期待的正确结果

已封装好的三方jar包,jmeter调用可成功
image
metersphere调用控制台报错
image

============================================================================

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

@github-actions github-actions bot added the 状态:待处理 已分配给相关处理人等待处理人处理并更新状态 label Apr 30, 2024
@youliyuan-fit2cloud youliyuan-fit2cloud added 类型:缺陷 使用过程中出现不符合预期情况 and removed 状态:待处理 已分配给相关处理人等待处理人处理并更新状态 labels Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
类型:缺陷 使用过程中出现不符合预期情况
Projects
None yet
Development

No branches or pull requests

2 participants