51Testing软件测试论坛
标题: LoadRunner使用web_reg_save_param_ex获取token匹配不到的问题 [打印本页]
作者: 测试积点老人 时间: 2021-11-23 13:11
标题: LoadRunner使用web_reg_save_param_ex获取token匹配不到的问题
使用web_reg_save_param_ex获取登录接口返回的token值:
- web_reg_save_param_ex(
- "ParamName=token",
- "LB={\"access_token\":\"",
- "RB=\",\"token_type",
- "Ordinal=1",
- SEARCH_FILTERS,
- "Scope=BODY",
- LAST);
- lr_output_message("token");
复制代码登录接口返回的token格式如下:
{"access_token":"61714d0a-777c-4208-98a5-b4d8a10fe19c","token_type":"bearer","refresh_toke
Action.c(26): n":"ac88f5bd-0079-476f-bfa5-dda4c5045cc8","expires_in":4894,"scope":"all"}
从web_reg_save_param_ex看左右边界都存在,但回放就是显示Error -26377: No match found for the requested parameter "token". Check whether the requested boundaries exist in the response data.
到底哪里出了问题?
[attach]135413[/attach]
[attach]135414[/attach]
作者: 海海豚 时间: 2021-11-24 09:34
https://blog.csdn.net/zzljn/article/details/2448841 参考下这个
作者: qqq911 时间: 2021-11-24 11:35
Scope=BODY 改成all试试
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) |
Powered by Discuz! X3.2 |