51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 2614|回复: 0
打印 上一主题 下一主题

[求助] loadrunner关联Error -26377错误

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2013-2-19 10:28:32 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
脚本:

web_submit_data("index.php_2",
"Action=http://localhost/bbs/index.php?m=u&c=login&a=dologin",
"Method=POST",
"RecContentType=text/html",
"Referer=http://localhost/bbs/",
"Snapshot=t21.inf",
"Mode=HTTP",
ITEMDATA,
"Name=username", "Value={NewParam_1}", ENDITEM,//参数化1
"Name=password", "Value={NewParam_2}", ENDITEM,//参数化2
"Name=csrf_token", "Value={CorrelationParameter_1}", ENDITEM,//自动关联
LAST);



web_url("index.php_3",
"URL=http://localhost/bbs/index.php?m=u&c=login&a=welcome&_statu=U9JS3FmMGlxJTJGWHZFbDZsajR0Q00lMkZhQ0NUWFlLV1ElMkJMRDU3TmJub1FLV3V4Vk1FN3drMm5sOVNZRHNCa01DJTJGRW16a3h3JTNEJTNEfGh0dHA6Ly9sb2NhbGhvc3QvYmJzLw",//需要手动关联参数化,回放脚本的时候这一步出不来,所以无法自动关联。只在录制的时候出现。
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t22.inf",
"Mode=HTTP",
LAST);



CodeGenerationLog.txt的通讯日志中

$$$$$$ Response Header For Transaction With Id 50 Ended $$$$$$

****** Response Body For Transaction With Id 50 ******
{"referer":"http:\/\/localhost\/bbs\/index.php?m=u&c=login&a=welcome&_statu=dU9JS3FmMGlxJTJGWHZFbDZsajR0Q00lMkZhQ0NUWFlLV1ElMkJMRDU3TmJub1FLV3V4Vk1FN3drMm5sOVNZRHNCa01DJTJGRW16a3h3JTNEJTNEfGh0dHA6Ly9sb2NhbGhvc3QvYmJzLw","refresh":false,"state":"success","data":"","message":{"check":{"url":null},"0":"\u6b22\u8fce\u56de\u6765..."},"__error":""}
$$$$$$ Response Body For Transaction With Id 50 Ended $$$$$$



我在web_url("index.php_3",。。。。前面,添加了手动关联函数后脚本如下:

web_set_max_html_param_len("999999");

web_reg_save_param_ex(
"ParamName=session",
"LB=m=u&c=login&a=welcome&_statu=",
"RB=\",\"refresh\":",
SEARCH_FILTERS,
"Scope=Body",
LAST);

web_url("index.php_3",
"URL=http://localhost/bbs/index.php?m=u&c=login&a=welcome&_statu={session}",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t22.inf",
"Mode=HTTP",
LAST);


把dU9JS3FmMGlxJTJGWHZFbDZsajR0Q00lMkZhQ0NUWFlLV1ElMkJMRDU3TmJub1FLV3V4Vk1FN3drMm5sOVNZRHNCa01DJTJGRW16a3h3JTNEJTNEfGh0dHA6Ly9sb2NhbGhvc3QvYmJzLw,更改为参数session了

但是最后还是出现Error -26377 999999的错误,请教高手哪有问题,谢谢
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-11-26 13:14 , Processed in 0.074472 second(s), 28 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表