51Testing软件测试论坛

标题: 【求助】loadrunner测接口,接口返回内容是json,如何获取json中的内容用做关联参数 [打印本页]

作者: 吃饭睡觉    时间: 2018-10-30 19:49
标题: 【求助】loadrunner测接口,接口返回内容是json,如何获取json中的内容用做关联参数
【求助】loadrunner测接口,接口返回内容是json,想用关联函数获取json中的内容,为接下来的请求做参数化,用web_reg_save_param函数和eb_reg_save_param_ex函数都取不到值,提示:Action.c(133): Warning -26377: No match found for the requested parameter "id". Either the specified boundaries were not found in the response or the matched text is longer than current max html parameter size of 9999 bytes. The total length of the response is 142 bytes. You can use "web_set_max_html_param_len" to increase the max parameter size.  


作者: wuxi88    时间: 2018-10-31 10:13
当前是你写的代码有问题滴。
右边界缺少边界值,根据postman截图,应该是:"RB=,",同事lr_output_message()函数请放到web_custome_request()请求后面执行,这样应该就没有问题了的。
作者: 吃饭睡觉    时间: 2018-10-31 13:09
wuxi88 发表于 2018-10-31 10:13
当前是你写的代码有问题滴。
右边界缺少边界值,根据postman截图,应该是:"RB=,",同事lr_output_message( ...

大神,太感谢了,按你说的方法能获取到返回内容了

作者: 海海豚    时间: 2018-11-1 10:31
问题已经解决了,围观一下
作者: 梦想家    时间: 2018-11-1 10:56

作者: jingzizx    时间: 2018-11-1 11:03
搞定
作者: libingyu135    时间: 2018-11-1 11:18
解决了,
作者: qqq911    时间: 2018-11-1 11:22
恭喜解决




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2