lr 9.5 录制脚本是否错误?
环境:windows xp +ie 7+lr 9.5协议:http/htmllr自带的航班订票系统 http://127.0.0.1:1080/WebTours/脚本如下:
Action()
{
hdr_buflen30 = 118;
body_buflen30 = 0;
body_filelen30 = 0;
flags30 = 0;
wplus_http_wsock_request_ex(1, 1, 1464280379, 80, "", &hdr_buffer30, &hdr_buflen30, &body_buffer30, &body_buflen30, &body_filename30, &body_filelen30, &flags30, 1711384768, 9933);
hdr_buflen31 = 136;
body_buflen31 = 0;
body_filelen31 = 0;
flags31 = 0;
wplus_http_wsock_request_ex(2, 1, 968125553, 80, "", &hdr_buffer31, &hdr_buflen31, &body_buffer31, &body_buflen31, &body_filename31, &body_filelen31, &flags31, 1711384768, 9933);
hdr_buflen32 = 318;
body_buflen32 = 0;
body_filelen32 = 0;
flags32 = 0;
wplus_http_wsock_request_ex(3, 1, 16777343, 1080, "", &hdr_buffer32, &hdr_buflen32, &body_buffer32, &body_buflen32, &body_filename32, &body_filelen32, &flags32, 1711384768, 9933);
hdr_buflen33 = 639;
body_buflen33 = 0;
body_filelen33 = 0;
flags33 = 0;
wplus_http_wsock_request_ex(3, 2, 16777343, 1080, "", &hdr_buffer33, &hdr_buflen33, &body_buffer33, &body_buflen33, &body_filename33, &body_filelen33, &flags33, 1711384768, 9933);
hdr_buflen34 = 389;
body_buflen34 = 0;
body_filelen34 = 0;
flags34 = 0;
wplus_http_wsock_request_ex(3, 3, 16777343, 1080, "", &hdr_buffer34, &hdr_buflen34, &body_buffer34, &body_buflen34, &body_filename34, &body_filelen34, &flags34, 1711384768, 9933);
hdr_buflen35 = 651;
body_buflen35 = 0;
body_filelen35 = 0;
flags35 = 0;
wplus_http_wsock_request_ex(4, 1, 16777343, 1080, "", &hdr_buffer35, &hdr_buflen35, &body_buffer35, &body_buflen35, &body_filename35, &body_filelen35, &flags35, 1711384768, 9933);
hdr_buflen36 = 390;
body_buflen36 = 0;
body_filelen36 = 0;
flags36 = 0;
wplus_http_wsock_request_ex(5, 1, 16777343, 1080, "", &hdr_buffer36, &hdr_buflen36, &body_buffer36, &body_buflen36, &body_filename36, &body_filelen36, &flags36, 1711384768, 9933);
hdr_buflen37 = 688;
body_buflen37 = 0;
body_filelen37 = 0;
flags37 = 0;
wplus_http_wsock_request_ex(4, 2, 16777343, 1080, "", &hdr_buffer37, &hdr_buflen37, &body_buffer37, &body_buflen37, &body_filename37, &body_filelen37, &flags37, 1711384768, 9933);
hdr_buflen38 = 693;
body_buflen38 = 0;
body_filelen38 = 0;
flags38 = 0;
wplus_http_wsock_request_ex(3, 4, 16777343, 1080, "", &hdr_buffer38, &hdr_buflen38, &body_buffer38, &body_buflen38, &body_filename38, &body_filelen38, &flags38, 1711384768, 9933);
hdr_buflen39 = 422;
body_buflen39 = 0;
body_filelen39 = 0;
flags39 = 0;
wplus_http_wsock_request_ex(5, 2, 16777343, 1080, "", &hdr_buffer39, &hdr_buflen39, &body_buffer39, &body_buflen39, &body_filename39, &body_filelen39, &flags39, 1711384768, 9933);
hdr_buflen40 = 324;
body_buflen40 = 0;
body_filelen40 = 0;
flags40 = 0;
wplus_http_wsock_request_ex(4, 3, 16777343, 1080, "", &hdr_buffer40, &hdr_buflen40, &body_buffer40, &body_buflen40, &body_filename40, &body_filelen40, &flags40, 1711384768, 9933);
lr_think_time(6);
hdr_buflen41 = 774;
body_buflen41 = 121;
body_filelen41 = 0;
flags41 = 0;
wplus_http_wsock_request_ex(3, 5, 16777343, 1080, "", &hdr_buffer41, &hdr_buflen41, &body_buffer41, &body_buflen41, &body_filename41, &body_filelen41, &flags41, 1711384768, 9933);
hdr_buflen42 = 937;
body_buflen42 = 0;
body_filelen42 = 0;
flags42 = 0;
wplus_http_wsock_request_ex(5, 3, 16777343, 1080, "", &hdr_buffer42, &hdr_buflen42, &body_buffer42, &body_buflen42, &body_filename42, &body_filelen42, &flags42, 1711384768, 9933);
hdr_buflen43 = 932;
body_buflen43 = 0;
body_filelen43 = 0;
flags43 = 0;
wplus_http_wsock_request_ex(3, 6, 16777343, 1080, "", &hdr_buffer43, &hdr_buflen43, &body_buffer43, &body_buflen43, &body_filename43, &body_filelen43, &flags43, 1711384768, 9933);
hdr_buflen44 = 679;
body_buflen44 = 0;
body_filelen44 = 0;
flags44 = 0;
wplus_http_wsock_request_ex(3, 7, 16777343, 1080, "", &hdr_buffer44, &hdr_buflen44, &body_buffer44, &body_buflen44, &body_filename44, &body_filelen44, &flags44, 1711384768, 9933);
hdr_buflen45 = 681;
body_buflen45 = 0;
body_filelen45 = 0;
flags45 = 0;
wplus_http_wsock_request_ex(5, 4, 16777343, 1080, "", &hdr_buffer45, &hdr_buflen45, &body_buffer45, &body_buflen45, &body_filename45, &body_filelen45, &flags45, 1711384768, 9933);
hdr_buflen46 = 679;
body_buflen46 = 0;
body_filelen46 = 0;
flags46 = 0;
wplus_http_wsock_request_ex(6, 1, 16777343, 1080, "", &hdr_buffer46, &hdr_buflen46, &body_buffer46, &body_buflen46, &body_filename46, &body_filelen46, &flags46, 1711384768, 9933);
hdr_buflen47 = 679;
body_buflen47 = 0;
body_filelen47 = 0;
flags47 = 0;
wplus_http_wsock_request_ex(7, 1, 16777343, 1080, "", &hdr_buffer47, &hdr_buflen47, &body_buffer47, &body_buflen47, &body_filename47, &body_filelen47, &flags47, 1711384768, 9933);
lr_think_time(10);
hdr_buflen48 = 951;
body_buflen48 = 0;
body_filelen48 = 0;
flags48 = 0;
wplus_http_wsock_request_ex(3, 8, 16777343, 1080, "", &hdr_buffer48, &hdr_buflen48, &body_buffer48, &body_buflen48, &body_filename48, &body_filelen48, &flags48, 1711384768, 9933);
hdr_buflen49 = 955;
body_buflen49 = 0;
body_filelen49 = 0;
flags49 = 0;
wplus_http_wsock_request_ex(6, 2, 16777343, 1080, "", &hdr_buffer49, &hdr_buflen49, &body_buffer49, &body_buflen49, &body_filename49, &body_filelen49, &flags49, 1711384768, 9933);
hdr_buflen50 = 954;
body_buflen50 = 0;
body_filelen50 = 0;
flags50 = 0;
wplus_http_wsock_request_ex(5, 5, 16777343, 1080, "", &hdr_buffer50, &hdr_buflen50, &body_buffer50, &body_buflen50, &body_filename50, &body_filelen50, &flags50, 1711384768, 9933);
hdr_buflen51 = 679;
body_buflen51 = 0;
body_filelen51 = 0;
flags51 = 0;
wplus_http_wsock_request_ex(3, 9, 16777343, 1080, "", &hdr_buffer51, &hdr_buflen51, &body_buffer51, &body_buflen51, &body_filename51, &body_filelen51, &flags51, 1711384768, 9933);
hdr_buflen52 = 685;
body_buflen52 = 0;
body_filelen52 = 0;
flags52 = 0;
wplus_http_wsock_request_ex(7, 2, 16777343, 1080, "", &hdr_buffer52, &hdr_buflen52, &body_buffer52, &body_buflen52, &body_filename52, &body_filelen52, &flags52, 1711384768, 9933);
hdr_buflen53 = 542;
body_buflen53 = 44;
body_filelen53 = 0;
flags53 = 0;
wplus_http_wsock_request_ex(8, 1, -217237695, 80, "", &hdr_buffer53, &hdr_buflen53, &body_buffer53, &body_buflen53, &body_filename53, &body_filelen53, &flags53, 1711384768, 9933);
hdr_buflen54 = 687;
body_buflen54 = 0;
body_filelen54 = 0;
flags54 = 0;
wplus_http_wsock_request_ex(5, 6, 16777343, 1080, "", &hdr_buffer54, &hdr_buflen54, &body_buffer54, &body_buflen54, &body_filename54, &body_filelen54, &flags54, 1711384768, 9933);
hdr_buflen55 = 542;
body_buflen55 = 44;
body_filelen55 = 0;
flags55 = 0;
wplus_http_wsock_request_ex(8, 2, -217237695, 80, "", &hdr_buffer55, &hdr_buflen55, &body_buffer55, &body_buflen55, &body_filename55, &body_filelen55, &flags55, 1711384768, 9933);
hdr_buflen56 = 952;
body_buflen56 = 0;
body_filelen56 = 0;
flags56 = 0;
wplus_http_wsock_request_ex(6, 3, 16777343, 1080, "", &hdr_buffer56, &hdr_buflen56, &body_buffer56, &body_buflen56, &body_filename56, &body_filelen56, &flags56, 1711384768, 9933);
hdr_buflen57 = 685;
body_buflen57 = 0;
body_filelen57 = 0;
flags57 = 0;
wplus_http_wsock_request_ex(7, 3, 16777343, 1080, "", &hdr_buffer57, &hdr_buflen57, &body_buffer57, &body_buflen57, &body_filename57, &body_filelen57, &flags57, 1711384768, 9933);
hdr_buflen58 = 690;
body_buflen58 = 0;
body_filelen58 = 0;
flags58 = 0;
wplus_http_wsock_request_ex(3, 10, 16777343, 1080, "", &hdr_buffer58, &hdr_buflen58, &body_buffer58, &body_buflen58, &body_filename58, &body_filelen58, &flags58, 1711384768, 9933);
return 0;
}
就是用户登录航班系统然后退出操作。录制完毕后
回放时出现两个错误 一个警告
Fatal Error -26000: LoadLibrary("LrwNetSocket.dll") failed, Windows error code=127
Warning: Extension lrwreplaymain.dll reports error -1 on call to function ExtPerProcessInitialize
Error: Thread Context: Call to service of the driver failed, reason - thread context wasn't initialized on this thread.
我总觉得脚本录制的数据不对,我想参数化都找不到username
大家帮忙讨论解决下! 你机器上有啥防火墙或者代理吧? 没看懂。。。。 我用这个协议还从来没录制出来过这种东西………… 你这个录制怎么跟我们录制的同样的协议的代码不一样呢!
不知道你怎么录制的 拜读 跟我录制的不一样,求高手 回复 2# 云层
关闭防火墙,掉代理,录制的数据还是不对。 自己在定下! 1、下载个 LrwNetSocket.dll 文件放到LR的bin目录里面试试。
2、你用的不是http/html协议吧? 回复 10# yandaju
协议是web(http/html)替换文件后录取的数据还是不对! 查了一些资料还是没有找到原因,自己再顶下! 最近找了资料还是没找到解决的办法,顶下! 我碰到了和你一样问题 这个问题应该是你们浏览器的问题,你们装了什么东西在浏览器里面或者在系统里面对抓包产生了影响,装个空系统,就不会出现这个问题了。 :(我也是遇到这问题,不知道各位怎么解决的? 俺的也这样杯具
页:
[1]