loadrunner 没有取到关联参数,并用lr_output_message没有看到打印出的关联变量信息

showboat 2015-06-08 11:09:40
loadrunner11

取关联参数代码:

web_reg_save_param("ParamName=CorrelationParameter_1", "LB=[华数求索记录][求生一加一S02E07 海上遇险 ", "RB=][TS][1080P][2.93G][国语中字][BD]", "Ord=1", "Search=Body", LAST);

web_url("forum.php_3",
"URL=http://www.jlpzj.net/forum.php?mod=forumdisplay&fid=93",
"TargetFrame=",
"Resource=0",
"RecContentType=text/html",
"Referer=http://www.jlpzj.net/forum.php",
"Snapshot=t7.inf",
"Mode=HTML",
EXTRARES,
"URL=/static/image/common/arw_l.gif", "Referer=http://www.jlpzj.net/forum.php?mod=forumdisplay&fid=93", ENDITEM,
"URL=/static/image/common/fav.gif", "Referer=http://www.jlpzj.net/forum.php?mod=forumdisplay&fid=93", ENDITEM,
"URL=/static/image/common/fall.png", "Referer=http://www.jlpzj.net/forum.php?mod=forumdisplay&fid=93", ENDITEM,
"URL=/static/image/common/titlebg_sd.png", "Referer=http://www.jlpzj.net/forum.php?mod=forumdisplay&fid=93", ENDITEM,
"URL=/static/image/common/increase.png", "Referer=http://www.jlpzj.net/forum.php?mod=forumdisplay&fid=93", ENDITEM,
"URL=/static/image/common/atarget.png", "Referer=http://www.jlpzj.net/forum.php?mod=forumdisplay&fid=93", ENDITEM,
"URL=/static/image/common/arw_r.gif", "Referer=http://www.jlpzj.net/forum.php?mod=forumdisplay&fid=93", ENDITEM,
"URL=/data/cache/smilies.js?I3F", "Referer=http://www.jlpzj.net/forum.php?mod=forumdisplay&fid=93", ENDITEM,
"URL=/static/image/editor/editor.gif", "Referer=http://www.jlpzj.net/forum.php?mod=forumdisplay&fid=93", ENDITEM,
"URL=/data/cache/common_smilies_var.js?I3F", "Referer=http://www.jlpzj.net/forum.php?mod=forumdisplay&fid=93", ENDITEM,
"URL=/static/image/smiley/default/mad.gif", "Referer=http://www.jlpzj.net/forum.php?mod=forumdisplay&fid=93", ENDITEM,
"URL=/static/image/smiley/default/call.gif", "Referer=http://www.jlpzj.net/forum.php?mod=forumdisplay&fid=93", ENDITEM,
"URL=/static/image/smiley/default/handshake.gif", "Referer=http://www.jlpzj.net/forum.php?mod=forumdisplay&fid=93", ENDITEM,
"URL=/static/image/smiley/default/sleepy.gif", "Referer=http://www.jlpzj.net/forum.php?mod=forumdisplay&fid=93", ENDITEM,
"URL=/static/image/smiley/default/time.gif", "Referer=http://www.jlpzj.net/forum.php?mod=forumdisplay&fid=93", ENDITEM,
"URL=/static/image/smiley/default/loveliness.gif", "Referer=http://www.jlpzj.net/forum.php?mod=forumdisplay&fid=93", ENDITEM,
"URL=/static/image/smiley/default/curse.gif", "Referer=http://www.jlpzj.net/forum.php?mod=forumdisplay&fid=93", ENDITEM,
"URL=/static/image/smiley/default/sad.gif", "Referer=http://www.jlpzj.net/forum.php?mod=forumdisplay&fid=93", ENDITEM,
"URL=/static/image/smiley/default/sweat.gif", "Referer=http://www.jlpzj.net/forum.php?mod=forumdisplay&fid=93", ENDITEM,
"URL=/static/image/smiley/default/hug.gif", "Referer=http://www.jlpzj.net/forum.php?mod=forumdisplay&fid=93", ENDITEM,
"URL=/static/image/smiley/default/dizzy.gif", "Referer=http://www.jlpzj.net/forum.php?mod=forumdisplay&fid=93", ENDITEM,
"URL=/static/image/smiley/default/tongue.gif", "Referer=http://www.jlpzj.net/forum.php?mod=forumdisplay&fid=93", ENDITEM,
"URL=/static/image/smiley/default/huffy.gif", "Referer=http://www.jlpzj.net/forum.php?mod=forumdisplay&fid=93", ENDITEM,
"URL=/static/image/smiley/default/funk.gif", "Referer=http://www.jlpzj.net/forum.php?mod=forumdisplay&fid=93", ENDITEM,
"URL=/static/image/smiley/default/biggrin.gif", "Referer=http://www.jlpzj.net/forum.php?mod=forumdisplay&fid=93", ENDITEM,
"URL=/static/image/smiley/default/cry.gif", "Referer=http://www.jlpzj.net/forum.php?mod=forumdisplay&fid=93", ENDITEM,
"URL=/static/image/smiley/default/shy.gif", "Referer=http://www.jlpzj.net/forum.php?mod=forumdisplay&fid=93", ENDITEM,
"URL=/static/image/smiley/default/kiss.gif", "Referer=http://www.jlpzj.net/forum.php?mod=forumdisplay&fid=93", ENDITEM,
"URL=/static/image/smiley/default/victory.gif", "Referer=http://www.jlpzj.net/forum.php?mod=forumdisplay&fid=93", ENDITEM,
"URL=/static/image/common/swfupload.swf?preventswfcaching=1433572015335", "Referer=http://www.jlpzj.net/forum.php?mod=forumdisplay&fid=93", ENDITEM,
"URL=/static/image/smiley/default/titter.gif", "Referer=http://www.jlpzj.net/forum.php?mod=forumdisplay&fid=93", ENDITEM,
"URL=/static/image/smiley/default/lol.gif", "Referer=http://www.jlpzj.net/forum.php?mod=forumdisplay&fid=93", ENDITEM,
"URL=/static/image/smiley/default/shutup.gif", "Referer=http://www.jlpzj.net/forum.php?mod=forumdisplay&fid=93", ENDITEM,
"URL=/static/image/smiley/default/smile.gif", "Referer=http://www.jlpzj.net/forum.php?mod=forumdisplay&fid=93", ENDITEM,
"URL=/static/image/smiley/default/shocked.gif", "Referer=http://www.jlpzj.net/forum.php?mod=forumdisplay&fid=93", ENDITEM,
LAST);

lr_output_message("the CorrelationParameter is %s.", lr_eval_string("{CorrelationParameter_1}"));

结果在loadrunner的repaly log中看不到参数变量的信息
查找"the CorrelationParameter is"是空的?
...全文
1266 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
冷风||||| 2016-01-21
  • 打赏
  • 举报
回复
不知道你用中文做边界值管不管用,最好中文不做边界值试试,整体取下来,再切割自己需要的内容。你没设置Notfund=Empty,该字段CorrelationParameter_1就不是空的,取不到值会报错,最好打开全部日志回放看下到底服务返回了什么,你取到的又是什么
vitahuang 2015-08-06
  • 打赏
  • 举报
回复
应该是转义字符的原因: web_reg_save_param("ParamName=CorrelationParameter_1", "LB=\[华数求索记录\]\[求生一加一S02E07 海上遇险 ", "RB=\]\[TS\]\[1080P\]\[2.93G\]\[国语中字\]\[BD\]", "Ord=1", "Search=Body", LAST);

5,202

社区成员

发帖
与我相关
我的任务
社区描述
软件工程/管理 质量管理/软件测试
功能测试压力测试安全性测试 个人社区 湖南省·长沙市
社区管理员
  • 软件测试
  • 虫无涯
  • 小博测试成长之路
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

欢迎大家加入到软件测试的社区,在这里,希望大家勇于发表自己的看法,欢迎大家分享自己在软件测试工作过程中遇到的问题以及工作经验分享。

1.想转行的小伙伴,遇到问题没有及时回复的,可以私聊小博进行反馈

2.大家对社区有好的建议,都可以在社区发帖进行反馈

推荐大家学习的软件测试入门笔记:软件测试入门学习笔记

试试用AI创作助手写篇文章吧