loadrunner录制网站登录脚本里面怎么找不到用户名和密码
loadrunner录制网站登录脚本里面怎么找不到用户名和密码呀?
高手指教
回复 2# 的帖子
Action(){
web_url("userlogin.html",
"URL=http://122.227.42.226/userlogin.html",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTTP",
LAST);
web_concurrent_start(NULL);
web_url("live_main.css",
"URL=http://122.227.42.226/live_main.css",
"Resource=1",
"RecContentType=text/css",
"Referer=http://122.227.42.226/userlogin.html",
"Snapshot=t2.inf",
LAST);
web_url("top_logo.gif",
"URL=http://122.227.42.226/images/top_logo.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://122.227.42.226/userlogin.html",
"Snapshot=t3.inf",
LAST);
web_url("flash.js",
"URL=http://122.227.42.226/flash.js",
"Resource=1",
"RecContentType=application/x-javascript",
"Referer=http://122.227.42.226/userlogin.html",
"Snapshot=t5.inf",
LAST);
web_concurrent_end(NULL);
web_url("top_bg.gif",
"URL=http://122.227.42.226/images/top_bg.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://122.227.42.226/userlogin.html",
"Snapshot=t4.inf",
LAST);
web_concurrent_start(NULL);
web_url("top_menu_bg.gif",
"URL=http://122.227.42.226/images/top_menu_bg.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://122.227.42.226/userlogin.html",
"Snapshot=t6.inf",
LAST);
web_url("main_bg.gif",
"URL=http://122.227.42.226/images/main_bg.gif",
"Resource=1",
"RecContentType=image/gif",
"Referer=http://122.227.42.226/userlogin.html",
"Snapshot=t7.inf",
LAST);
web_url("index.swf",
"URL=http://122.227.42.226/index.swf",
"Resource=1",
"RecContentType=application/x-shockwave-flash",
"Referer=http://122.227.42.226/userlogin.html",
"Snapshot=t8.inf",
LAST);
web_url("global.ini",
"URL=http://122.227.42.226/global.ini?rand=633",
"Resource=1",
"Referer=http://122.227.42.226/index.swf",
"Snapshot=t9.inf",
LAST);
web_concurrent_end(NULL);
web_url("getword.asp",
"URL=http://122.227.42.226/operate/getword.asp?rand=78",
"Resource=0",
"RecContentType=text/html",
"Referer=http://122.227.42.226/index.swf",
"Snapshot=t10.inf",
"Mode=HTTP",
LAST);
web_url("getsession.aspx",
"URL=http://122.227.42.226/getsession.aspx",
"Resource=0",
"RecContentType=text/html",
"Referer=http://122.227.42.226/index.swf",
"Snapshot=t11.inf",
"Mode=HTTP",
LAST);
lr_think_time(8);
lrs_create_socket("socket0", "TCP", "LocalHost=0", "RemoteHost=122.227.42.226:1935", LrsLastArg);
lrs_send("socket0", "buf0", LrsLastArg);
lrs_receive("socket0", "buf1", LrsLastArg);
lrs_send("socket0", "buf2", LrsLastArg);
lrs_receive("socket0", "buf3", LrsLastArg);
lrs_send("socket0", "buf4", LrsLastArg);
lrs_receive("socket0", "buf5", LrsLastArg);
lrs_send("socket0", "buf6", LrsLastArg);
web_url("getad.aspx",
"URL=http://122.227.42.226/getad.aspx",
"Resource=0",
"RecContentType=text/html",
"Referer=http://122.227.42.226/index.swf",
"Snapshot=t12.inf",
"Mode=HTTP",
LAST);
lrs_send("socket0", "buf7", LrsLastArg);
lrs_receive("socket0", "buf8", LrsLastArg);
lrs_send("socket0", "buf9", LrsLastArg);
lrs_receive("socket0", "buf10", LrsLastArg);
web_concurrent_start(NULL);
web_url("bg.swf",
"URL=http://122.227.42.226/Skin/user/1/bg.swf",
"Resource=1",
"RecContentType=application/x-shockwave-flash",
"Referer=http://122.227.42.226/index.swf",
"Snapshot=t13.inf",
LAST);
web_url("ad1.flv",
"URL=http://122.227.42.226/flv/ad1.flv",
"Resource=1",
"Referer=http://122.227.42.226/index.swf",
"Snapshot=t14.inf",
LAST);
web_url("200939220720_0650.png",
"URL=http://www.99cu.com/flash_reg_for_99cu/flash_adpic/200939220720_0650.png",
"Resource=1",
"RecContentType=image/png",
"Referer=http://122.227.42.226/index.swf",
"Snapshot=t15.inf",
LAST);
web_url("200939220649_0877.png",
"URL=http://www.99cu.com/flash_reg_for_99cu/flash_adpic/200939220649_0877.png",
"Resource=1",
"RecContentType=image/png",
"Referer=http://122.227.42.226/index.swf",
"Snapshot=t16.inf",
LAST);
web_url("200939220656_0516.png",
"URL=http://www.99cu.com/flash_reg_for_99cu/flash_adpic/200939220656_0516.png",
"Resource=1",
"RecContentType=image/png",
"Referer=http://122.227.42.226/index.swf",
"Snapshot=t17.inf",
LAST);
web_url("200939220857_0550.png",
"URL=http://www.99cu.com/flash_reg_for_99cu/flash_adpic/200939220857_0550.png",
"Resource=1",
"RecContentType=image/png",
"Referer=http://122.227.42.226/index.swf",
"Snapshot=t18.inf",
LAST);
web_url("200939220707_0515.png",
"URL=http://www.99cu.com/flash_reg_for_99cu/flash_adpic/200939220707_0515.png",
"Resource=1",
"RecContentType=image/png",
"Referer=http://122.227.42.226/index.swf",
"Snapshot=t19.inf",
LAST);
web_concurrent_end(NULL);
return 0;
} :( 大家帮帮忙啊 你是不是保存了用户名和密码哦 data.ws里有吗? 建立了socket连接,看下data.ws吧 http的方法里都是从服务器获取信息,并没有通过它来提交信息数据。
如果有数据向服务提交的话,应该像楼上说的,一定在data.ws里。
页:
[1]