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] 自定义脚本,全局参数赋值之后,值没有变化。 #425

Open
1 of 2 tasks
lzbxqmy opened this issue Mar 15, 2024 · 0 comments
Open
1 of 2 tasks
Labels
bug Something isn't working

Comments

@lzbxqmy
Copy link

lzbxqmy commented Mar 15, 2024

Search before asking

  • I searched in the issue and found nothing similar. | 我查找了并确认issue列表无相似报告。

Sonic version

2.6.4

Deploy platform

Linux

Minimal reproduce step

【操作步骤】
1、测试数据管理->全局参数页面,创建参数名为"mobile",值为"111";
2、测试步骤里,自定义脚本如下:
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
String stringMobile = "{"mobile":"333"}";
JSONObject jsonMobile = JSON.parseObject(stringMobile);
androidStepHandler.setGlobalParams(jsonMobile);
3、运行脚本测试步骤。
【问题】
查看全局参数,mobile的值仍然是“111”,没有修改成功。

Are you willing to submit a PR?

  • I'm willing to submit a PR! | 我将发起PR!
@lzbxqmy lzbxqmy added the bug Something isn't working label Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant