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
2.6.4
Linux
【操作步骤】 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”,没有修改成功。
The text was updated successfully, but these errors were encountered:
String stringMobile = "{"mobile":"333"}";
这样能成功就有鬼了
Sorry, something went wrong.
可以参考官网文档
No branches or pull requests
Search before asking
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?
The text was updated successfully, but these errors were encountered: