|
9#
楼主 |
发表于 2008-4-3 10:35:29
|
只看该作者
to:gp_jl 谢谢你 不过还是不对
您看一下这个
Action()
{
web_set_user("221.122.59.58\\llguo3@isoftstone.com",
"guolili02@163.com",
"221.122.59.58:80");
web_url("login.aspx",
"URL=http://221.122.59.58/webpsaoa/login.aspx",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
LAST);
lr_start_transaction("time");
web_submit_form("login.aspx_2",
"Snapshot=t2.inf",
ITEMDATA,
"Name=TextBox1", "Value=xfliu", ENDITEM,
"Name=Button1", "Value=鐧婚檰", ENDITEM,
EXTRARES,
"Url=../WebPSAOA/Common/Style/addition.css", "Referer=http://221.122.59.58/webpsaoa/Fee/FeeMain.aspx", ENDITEM,
"Url=../WebPSAOA/Common/Img/psa_vgradp.gif", "Referer=http://221.122.59.58/webpsaoa/Fee/FeeMain.aspx", ENDITEM,
测试站点是:http://221.122.59.58/webpsaoa/login.aspx
弄了很久都不对 错误是:
Action.c(3): web_set_user was successful [MsgId: MMSG-26392]
Action.c(6): Error -26630: HTTP Status-Code=401 (Unauthorized) for "http://221.122.59.58/webpsaoa/login.aspx" [MsgId: MERR-26630]
Action.c(6): web_url("login.aspx") highest severity level was "ERROR", 3829 body bytes, 1382 header bytes [MsgId: MMSG-26388]
web_set user我一直觉得是个比较简单的函数 总是不对
"Url=../WebPSAOA/Common/img/platform_bg.gif", "Referer=http://221.122.59.58/webpsaoa/Fee/FeeMain.aspx", ENDITEM,
"Url=../WebPSAOA/Common/Img/psa_banner_bg.gif", "Referer=http://221.122.59.58/webpsaoa/Fee/FeeMain.aspx", ENDITEM,
"Url=../WebPSAOA/Common/Img/menuup.gif", "Referer=http://221.122.59.58/webpsaoa/Fee/FeeMain.aspx", ENDITEM,
"Url=../WebPSAOA/Common/Img/menudown.gif", "Referer=http://221.122.59.58/webpsaoa/Fee/FeeMain.aspx", ENDITEM,
"Url=../WebPSAOA/Common/Img/psa_navgradp.gif", "Referer=http://221.122.59.58/webpsaoa/Fee/FeeMain.aspx", ENDITEM,
"Url=../WebPSAOA/Common/img/psa_head_corner_bg.gif", "Referer=http://221.122.59.58/webpsaoa/Fee/FeeMain.aspx", ENDITEM,
LAST);
lr_end_transaction("time",LR_AUTO);
return 0;
} |
|