|
情况是这样的,录制脚本后,停止。再点运行按钮,界面只刷新了一下,而后无任何反应。也无出错提示,我重新安装也不行,具体代码如下,本代码在以前LOADRUNNER正常使用时,是可以通过运行测试的:
#include "as_web.h"
Action()
{
/*
* 登录事务
*/
lr_rendezvous("denglu");
lr_start_transaction("denglu");
web_submit_data("usernamePasswordLogin.do",
"Action=http://192.168.0.115/josso/signon/usernamePasswordLogin.do",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.0.115/logonapp/logon.jsp?josso_back_to=http://192.168.0.115/bm/josso_security_check/&josso_on_error=http://192.168.0.115:80/logonapp/logon.jsp?error=true",
"Snapshot=t2.inf",
"Mode=HTML",
ITEMDATA,
"Name=josso_cmd", "Value=login", ENDITEM,
"Name=josso_back_to", "Value=http://192.168.0.115/bm/josso_security_check/", ENDITEM,
"Name=josso_on_error", "Value=http://192.168.0.115:80/logonapp/logon.jsp?error=true", ENDITEM,
"Name=josso_username", "Value={login}", ENDITEM,
"Name=josso_password", "Value={password}", ENDITEM,
EXTRARES,
"Url=/bm/images/inner/bbsbr.gif", "Referer=http://192.168.0.115/bm/frame/Right.page", ENDITEM,
"Url=/bm/images/inner/bbstitle.gif", "Referer=http://192.168.0.115/bm/frame/Right.page", ENDITEM,
"Url=/bm/images/inner/midbar_bg.gif", "Referer=http://192.168.0.115/bm/frame/Midbar.page", ENDITEM,
"Url=/bm/images/inner/bbstl.gif", "Referer=http://192.168.0.115/bm/frame/Right.page", ENDITEM,
"Url=/bm/images/inner/bbstm.gif", "Referer=http://192.168.0.115/bm/frame/Right.page", ENDITEM,
"Url=/bm/images/inner/bbsml.gif", "Referer=http://192.168.0.115/bm/frame/Right.page", ENDITEM,
"Url=/bm/images/inner/bbsmr.gif", "Referer=http://192.168.0.115/bm/frame/Right.page", ENDITEM,
"Url=/bm/images/inner/bbsbm.gif", "Referer=http://192.168.0.115/bm/frame/Right.page", ENDITEM,
"Url=/bm/images/inner/ddmodernTech/dianji.gif", "Referer=http://192.168.0.115/bm/frame/Right.page", ENDITEM,
"Url=/bm/images/inner/ddmodernTech/bbstr.gif", "Referer=http://192.168.0.115/bm/frame/Right.page", ENDITEM,
"Url=/bm/images/inner/ddmodernTech/bbstm.gif", "Referer=http://192.168.0.115/bm/frame/Right.page", ENDITEM,
"Url=/bm/images/inner/ddmodernTech/bbsmr.gif", "Referer=http://192.168.0.115/bm/frame/Right.page", ENDITEM,
"Url=/bm/images/inner/ddmodernTech/bbsml.gif", "Referer=http://192.168.0.115/bm/frame/Right.page", ENDITEM,
"Url=/bm/images/inner/ddmodernTech/bbsbm.gif", "Referer=http://192.168.0.115/bm/frame/Right.page", ENDITEM,
"Url=/bm/images/inner/ddmodernTech/bbsbr.gif", "Referer=http://192.168.0.115/bm/frame/Right.page", ENDITEM,
"Url=/bm/images/inner/midbar_turnapp.gif", "Referer=http://192.168.0.115/bm/frame/Midbar.page", ENDITEM,
"Url=/bm/images/inner/btn_m.jpg", "Referer=http://192.168.0.115/bm/frame/Midbar.page", ENDITEM,
"Url=/bm/images/inner/top_modernTech/btnBar.gif", "Referer=http://192.168.0.115/bm/frame/Top.page", ENDITEM,
"Url=/bm/images/inner/top_modernTech/text.swf", "Referer=http://192.168.0.115/bm/frame/Top.page", ENDITEM,
"Url=/bm/images/inner/ddmodernTech/bbsbl.gif", "Referer=http://192.168.0.115/bm/frame/Right.page", ENDITEM,
"Url=/bm/images/inner/bbstr.gif", "Referer=http://192.168.0.115/bm/frame/Right.page", ENDITEM,
"Url=/bm/images/inner/top_modernTech/top1.gif", "Referer=http://192.168.0.115/bm/frame/Top.page", ENDITEM,
"Url=/bm/images/inner/top_modernTech/top2.gif", "Referer=http://192.168.0.115/bm/frame/Top.page", ENDITEM,
"Url=/bm/images/inner/top_modernTech/top3.gif", "Referer=http://192.168.0.115/bm/frame/Top.page", ENDITEM,
"Url=/bm/images/inner/top_modernTech/mdl1.gif", "Referer=http://192.168.0.115/bm/frame/Top.page", ENDITEM,
"Url=/bm/images/nonesms.gif", "Referer=http://192.168.0.115/bm/mes/ChgStat.page", ENDITEM,
"Url=/bm/images/inner/bbsbl.gif", "Referer=http://192.168.0.115/bm/frame/Right.page", ENDITEM,
"Url=/bm/images/hassms.gif", "Referer=http://192.168.0.115/bm/mes/ChgStat.page", ENDITEM,
"Url=/bm/images/inner/top_modernTech/topText.gif", "Referer=http://192.168.0.115/bm/frame/Top.page", ENDITEM,
"Url=/bm/images/btn_m.jpg", "Referer=http://192.168.0.115/bm/frame/Left.page?num=0", ENDITEM,
"Url=/bm/images/fold.gif", "Referer=http://192.168.0.115/bm/frame/Left.page?num=0", ENDITEM,
"Url=/bm/images/menu_head_title.gif", "Referer=http://192.168.0.115/bm/frame/Left.page?num=0", ENDITEM,
"Url=/bm/images/menu_arrow_single.gif", "Referer=http://192.168.0.115/bm/frame/Left.page?num=0", ENDITEM,
"Url=/bm/images/button/gtBtnm.gif", "Referer=http://192.168.0.115/bm/frame/Top.page", ENDITEM,
"Url=/bm/images/button/gtBtnl.gif", "Referer=http://192.168.0.115/bm/frame/Top.page", ENDITEM,
"Url=/bm/images/button/gtBtnr.gif", "Referer=http://192.168.0.115/bm/frame/Top.page", ENDITEM,
LAST);
lr_end_transaction("denglu", LR_AUTO);
lr_think_time( 11 );
web_url("Person.page",
"URL=http://192.168.0.115/bm/frame/Person.page",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.115/bm/frame/Top.page",
"Snapshot=t3.inf",
"Mode=HTML",
LAST);
return 0;
} |
|