51Testing软件测试论坛
标题:
lr录制脚本:对一短信列表进行删除操作。脚本里面没有:web_submit_data。
[打印本页]
作者:
testlmh
时间:
2011-11-1 18:22
标题:
lr录制脚本:对一短信列表进行删除操作。脚本里面没有:web_submit_data。
用PHP开发的客户关系管理系统:前台页面用frameset 框架,。录制时候选择 http/html
我进行删除操作,怎么没有web_submit_data
脚本如下:
Action()
{
web_url("index",
"URL=http://192.168.0.229/TcomAgent_JTD/index.php/Index/index",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t22.inf",
"Mode=HTML",
EXTRARES,
"Url=/TcomAgent_JTD/agent/Tpl/JTD/Public/Images/login/LoginHeadBack.jpg", "Referer=http://192.168.0.229/TcomAgent_JTD/index.php/TcomAgent_JTD/index.php/Public/login", ENDITEM,
"Url=/TcomAgent_JTD/agent/Tpl/JTD/Public/Images/login/Loginboxbg.png", "Referer=http://192.168.0.229/TcomAgent_JTD/index.php/TcomAgent_JTD/index.php/Public/login", ENDITEM,
"Url=/TcomAgent_JTD/agent/Tpl/JTD/Public/Images/login/Login.gif", "Referer=http://192.168.0.229/TcomAgent_JTD/index.php/TcomAgent_JTD/index.php/Public/login", ENDITEM,
"Url=/TcomAgent_JTD/agent/Tpl/JTD/Public/Images/login/Promptuser.gif", "Referer=http://192.168.0.229/TcomAgent_JTD/index.php/TcomAgent_JTD/index.php/Public/login", ENDITEM,
"Url=/TcomAgent_JTD/agent/Tpl/JTD/Public/Images/login/LoginBtn.jpg", "Referer=http://192.168.0.229/TcomAgent_JTD/index.php/TcomAgent_JTD/index.php/Public/login", ENDITEM,
"Url=/TcomAgent_JTD/agent/Tpl/JTD/Public/Images/login/lock.gif", "Referer=http://192.168.0.229/TcomAgent_JTD/index.php/TcomAgent_JTD/index.php/Public/login", ENDITEM,
"Url=/TcomAgent_JTD/agent/Tpl/JTD/Public/Images/noticeshow_close.gif", "Referer=http://192.168.0.229/TcomAgent_JTD/index.php/TcomAgent_JTD/index.php/Public/login", ENDITEM,
"Url=/TcomAgent_JTD/agent/Tpl/JTD/Public/Images/login/Promptbg.gif", "Referer=http://192.168.0.229/TcomAgent_JTD/index.php/TcomAgent_JTD/index.php/Public/login", ENDITEM,
"Url=/favicon.ico", "Referer=", ENDITEM,
LAST);
web_add_cookie("recordflag=0; DOMAIN=192.168.0.229");
web_url("0",
"URL=http://192.168.0.229/TcomAgent_JTD/index.php/Public/getDepartment/departmentid/0",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.229/TcomAgent_JTD/index.php/TcomAgent_JTD/index.php/Public/login",
"Snapshot=t23.inf",
"Mode=HTML",
LAST);
lr_think_time(9);
web_url("23",
"URL=http://192.168.0.229/TcomAgent_JTD/index.php/Public/getDepartment/departmentid/23",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.229/TcomAgent_JTD/index.php/TcomAgent_JTD/index.php/Public/login",
"Snapshot=t24.inf",
"Mode=HTML",
LAST);
web_url("5",
"URL=http://192.168.0.229/TcomAgent_JTD/index.php/Public/getDepartment/departmentid/5",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.229/TcomAgent_JTD/index.php/TcomAgent_JTD/index.php/Public/login",
"Snapshot=t25.inf",
"Mode=HTML",
LAST);
web_submit_data("chkLogin",
"Action=http://192.168.0.229/TcomAgent_JTD/index.php/Public/chkLogin",
"Method=POST",
"RecContentType=text/html",
"Referer=http://192.168.0.229/TcomAgent_JTD/index.php/TcomAgent_JTD/index.php/Public/login",
"Snapshot=t26.inf",
"Mode=HTML",
ITEMDATA,
"Name=account", "Value=admin", ENDITEM,
"Name=password", "Value=123456", ENDITEM,
"Name=company", "Value=23", ENDITEM,
"Name=center", "Value=5", ENDITEM,
"Name=department", "Value=2", ENDITEM,
"Name=area", "Value=", ENDITEM,
"Name=store", "Value=", ENDITEM,
"Name=verify", "Value=4736", ENDITEM,
"Name=button", "Value=登 录", ENDITEM,
"Name=__hash__", "Value=9fb20e5e6602afea030e6ab37a43d54a", ENDITEM,
EXTRARES,
"Url=/TcomAgent_JTD/Public/js/lhgdialog/skins/chrome.css", "Referer=http://192.168.0.229/TcomAgent_JTD/index.php/Index/index", ENDITEM,
"Url=/TcomAgent_JTD/Public/js/lhgdialog/skins/chrome/lhgdg_x.gif", "Referer=http://192.168.0.229/TcomAgent_JTD/index.php/Index/index", ENDITEM,
"Url=/TcomAgent_JTD/Public/js/lhgdialog/skins/chrome/lhgdg_bg.gif", "Referer=http://192.168.0.229/TcomAgent_JTD/index.php/Index/index", ENDITEM,
"Url=/TcomAgent_JTD/Public/js/lhgdialog/skins/chrome/wait.gif", "Referer=http://192.168.0.229/TcomAgent_JTD/index.php/Index/index", ENDITEM,
LAST);
web_url("frameset",
"URL=http://192.168.0.229/TcomAgent_JTD/index.php/Index/frameset",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.229/TcomAgent_JTD/index.php/Index/index",
"Snapshot=t27.inf",
"Mode=HTML",
EXTRARES,
"Url=/TcomAgent_JTD/agent/Tpl/JTD/Public/Images/MyDeskListBack.jpg", "Referer=http://192.168.0.229/TcomAgent_JTD/index.php/Public/mydesk", ENDITEM,
"Url=/TcomAgent_JTD/agent/Tpl/JTD/Public/Images/zhaungtai.jpg", "Referer=http://192.168.0.229/TcomAgent_JTD/index.php/Public/mydesk", ENDITEM,
"Url=/TcomAgent_JTD/agent/Tpl/JTD/Public/Images/Frame/MainHideListBack.jpg", "Referer=http://192.168.0.229/TcomAgent_JTD/index.php/Public/drag", ENDITEM,
"Url=/TcomAgent_JTD/agent/Tpl/JTD/Public/Images/Frame/MenuTitleBack.jpg", "Referer=http://192.168.0.229/TcomAgent_JTD/index.php/Public/menu", ENDITEM,
"Url=/TcomAgent_JTD/agent/Tpl/JTD/Public/Images/Frame/MenuLineBack.jpg", "Referer=http://192.168.0.229/TcomAgent_JTD/index.php/Public/menu", ENDITEM,
"Url=/TcomAgent_JTD/agent/Tpl/JTD/Public/Images/mydesk_icon.jpg", "Referer=http://192.168.0.229/TcomAgent_JTD/index.php/Public/mydesk", ENDITEM,
"Url=/TcomAgent_JTD/agent/Tpl/JTD/Public/Images/Frame/TopBack.jpg", "Referer=http://192.168.0.229/TcomAgent_JTD/index.php/Public/top", ENDITEM,
"Url=/TcomAgent_JTD/agent/Tpl/JTD/Public/Images/Frame/MainHideListClose.jpg", "Referer=http://192.168.0.229/TcomAgent_JTD/index.php/Public/drag", ENDITEM,
"Url=/TcomAgent_JTD/agent/Tpl/JTD/Public/Images/Toolbar/ToolBarZhuangyi.png", "Referer=http://192.168.0.229/TcomAgent_JTD/index.php/Public/top", ENDITEM,
"Url=/TcomAgent_JTD/agent/Tpl/JTD/Public/Images/Toolbar/ToolBarShimang.png", "Referer=http://192.168.0.229/TcomAgent_JTD/index.php/Public/top", ENDITEM,
"Url=/TcomAgent_JTD/agent/Tpl/JTD/Public/Images/Toolbar/ToolBarJiangting.png", "Referer=http://192.168.0.229/TcomAgent_JTD/index.php/Public/top", ENDITEM,
"Url=/TcomAgent_JTD/agent/Tpl/JTD/Public/Images/Toolbar/ToolBarDaijie.png", "Referer=http://192.168.0.229/TcomAgent_JTD/index.php/Public/top", ENDITEM,
作者:
testlmh
时间:
2011-11-1 18:22
"Url=/TcomAgent_JTD/agent/Tpl/JTD/Public/Images/Toolbar/ToolBarLuying.png", "Referer=http://192.168.0.229/TcomAgent_JTD/index.php/Public/top", ENDITEM,
"Url=/TcomAgent_JTD/agent/Tpl/JTD/Public/Images/Toolbar/ToolBarGuaji.png", "Referer=http://192.168.0.229/TcomAgent_JTD/index.php/Public/top", ENDITEM,
"Url=/TcomAgent_JTD/agent/Tpl/JTD/Public/Images/Toolbar/ToolBarHuiyi.png", "Referer=http://192.168.0.229/TcomAgent_JTD/index.php/Public/top", ENDITEM,
"Url=/TcomAgent_JTD/agent/Tpl/JTD/Public/Images/Frame/timebarbg.jpg", "Referer=http://192.168.0.229/TcomAgent_JTD/index.php/Public/top", ENDITEM,
"Url=/TcomAgent_JTD/agent/Tpl/JTD/Public/Images/Toolbar/ToolBarIcon08.jpg", "Referer=http://192.168.0.229/TcomAgent_JTD/index.php/Public/top", ENDITEM,
"Url=/TcomAgent_JTD/agent/Tpl/JTD/Public/Images/Frame/FooterBack.jpg", "Referer=http://192.168.0.229/TcomAgent_JTD/index.php/Public/footer", ENDITEM,
"Url=/TcomAgent_JTD/agent/Tpl/JTD/Public/Images/Toolbar/ToolBarIcon02.jpg", "Referer=http://192.168.0.229/TcomAgent_JTD/index.php/Public/top", ENDITEM,
"Url=/TcomAgent_JTD/agent/Tpl/JTD/Public/Images/Toolbar/ToolBarDenglu.png", "Referer=http://192.168.0.229/TcomAgent_JTD/index.php/Public/top", ENDITEM,
"Url=/TcomAgent_JTD/agent/Tpl/JTD/Public/Images/Toolbar/ToolBarWaihu.png", "Referer=http://192.168.0.229/TcomAgent_JTD/index.php/Public/top", ENDITEM,
"Url=/TcomAgent_JTD/agent/Tpl/JTD/Public/Images/Toolbar/ToolBarShangfang.png", "Referer=http://192.168.0.229/TcomAgent_JTD/index.php/Public/top", ENDITEM,
"Url=/TcomAgent_JTD/agent/Tpl/JTD/Public/Images/Toolbar/ToolBarQiancha.png", "Referer=http://192.168.0.229/TcomAgent_JTD/index.php/Public/top", ENDITEM,
"Url=/TcomAgent_JTD/agent/Tpl/JTD/Public/Images/Toolbar/ToolBarIcon03.jpg", "Referer=http://192.168.0.229/TcomAgent_JTD/index.php/Public/top", ENDITEM,
"Url=/TcomAgent_JTD/agent/Tpl/JTD/Public/Images/Frame/MenuNavBackOn.jpg", "Referer=http://192.168.0.229/TcomAgent_JTD/index.php/Public/menu", ENDITEM,
LAST);
web_url("listener.api.php",
"URL=http://192.168.0.229/TcomAPI_1.6_LinkTo102/application/model/listener.api.php?exten=909&queueid=&callback=jsonp1320141232140&json=1",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.229/TcomAgent_JTD/index.php/Public/top",
"Snapshot=t28.inf",
"Mode=HTML",
LAST);
web_url("popupMsgNum",
"URL=http://192.168.0.229/TcomAgent_JTD/index.php/Insidemsg/popupMsgNum",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.229/TcomAgent_JTD/index.php/Public/top",
"Snapshot=t29.inf",
"Mode=HTML",
LAST);
web_url("newmsgnum",
"URL=http://192.168.0.229/TcomAgent_JTD/index.php/Insidemsg/newmsgnum",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.229/TcomAgent_JTD/index.php/Public/top",
"Snapshot=t30.inf",
"Mode=HTML",
LAST);
web_url("listener.api.php_2",
"URL=http://192.168.0.229/TcomAPI_1.6_LinkTo102/application/model/listener.api.php?exten=909&queueid=&callback=jsonp1320141232141&json=1",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.229/TcomAgent_JTD/index.php/Public/top",
"Snapshot=t31.inf",
"Mode=HTML",
LAST);
web_url("listener.api.php_3",
"URL=http://192.168.0.229/TcomAPI_1.6_LinkTo102/application/model/listener.api.php?exten=909&queueid=&callback=jsonp1320141232142&json=1",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.229/TcomAgent_JTD/index.php/Public/top",
"Snapshot=t32.inf",
"Mode=HTML",
LAST);
web_url("receivemsgbox",
"URL=http://192.168.0.229/TcomAgent_JTD/index.php/Insidemsg/receivemsgbox",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.229/TcomAgent_JTD/index.php/Public/menu",
"Snapshot=t33.inf",
"Mode=HTML",
EXTRARES,
"Url=/TcomAgent_JTD/agent/Tpl/JTD/Public/Images/PubTitleBack_low.jpg", ENDITEM,
"Url=/TcomAgent_JTD/agent/Tpl/JTD/Public/Images/button-normal.png", ENDITEM,
"Url=/TcomAgent_JTD/Public/js/ymPrompt/skin/qq/images/win_lb.gif", ENDITEM,
"Url=/TcomAgent_JTD/Public/js/ymPrompt/skin/qq/images/win_b.gif", ENDITEM,
"Url=/TcomAgent_JTD/Public/js/ymPrompt/skin/qq/images/win_rb.gif", ENDITEM,
"Url=/TcomAgent_JTD/Public/js/ymPrompt/skin/qq/images/title_bg_right.gif", ENDITEM,
"Url=/TcomAgent_JTD/Public/js/ymPrompt/skin/qq/images/win_l.gif", ENDITEM,
"Url=/TcomAgent_JTD/Public/js/ymPrompt/skin/qq/images/title_bg_center.gif", ENDITEM,
"Url=/TcomAgent_JTD/Public/js/ymPrompt/skin/qq/images/title_bg_left.gif", ENDITEM,
"Url=/TcomAgent_JTD/Public/js/ymPrompt/skin/qq/images/ico.gif", ENDITEM,
"Url=/TcomAgent_JTD/Public/js/ymPrompt/skin/qq/images/win_r.gif", ENDITEM,
"Url=/TcomAgent_JTD/Public/js/ymPrompt/skin/qq/images/content_bg1.gif", ENDITEM,
LAST);
web_url("listener.api.php_4",
"URL=http://192.168.0.229/TcomAPI_1.6_LinkTo102/application/model/listener.api.php?exten=909&queueid=&callback=jsonp1320141232143&json=1",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.229/TcomAgent_JTD/index.php/Public/top",
"Snapshot=t34.inf",
"Mode=HTML",
LAST);
web_url("delete",
"URL=http://192.168.0.229/TcomAgent_JTD/index.php/Insidemsg/delete?id=1074",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.229/TcomAgent_JTD/index.php/Insidemsg/receivemsgbox",
"Snapshot=t35.inf",
"Mode=HTML",
LAST);
web_url("listener.api.php_5",
"URL=http://192.168.0.229/TcomAPI_1.6_LinkTo102/application/model/listener.api.php?exten=909&queueid=&callback=jsonp1320141232144&json=1",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.229/TcomAgent_JTD/index.php/Public/top",
"Snapshot=t36.inf",
"Mode=HTML",
LAST);
web_url("newmsgnum_2",
"URL=http://192.168.0.229/TcomAgent_JTD/index.php/Insidemsg/newmsgnum",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.229/TcomAgent_JTD/index.php/Public/top",
"Snapshot=t37.inf",
"Mode=HTML",
LAST);
web_url("popupMsgNum_2",
"URL=http://192.168.0.229/TcomAgent_JTD/index.php/Insidemsg/popupMsgNum",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.229/TcomAgent_JTD/index.php/Public/top",
"Snapshot=t38.inf",
"Mode=HTML",
LAST);
web_url("receivemsgbox_2",
"URL=http://192.168.0.229/TcomAgent_JTD/index.php/Insidemsg/receivemsgbox",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.229/TcomAgent_JTD/index.php/Public/menu",
"Snapshot=t39.inf",
"Mode=HTML",
EXTRARES,
"Url=/TcomAgent_JTD/agent/Tpl/JTD/Public/Style/base.css", ENDITEM,
"Url=/TcomAgent_JTD/agent/Tpl/JTD/Public/Style/columns.css", ENDITEM,
"Url=/TcomAgent_JTD/agent/Tpl/JTD/Public/Style/links.css", ENDITEM,
"Url=/TcomAgent_JTD/agent/Tpl/JTD/Public/Style/other.css", ENDITEM,
"Url=/TcomAgent_JTD/agent/Tpl/JTD/Public/Images/Frame/MainBack.jpg", ENDITEM,
"Url=/TcomAgent_JTD/agent/Tpl/JTD/Public/Images/PubTitleBack_low.jpg", ENDITEM,
"Url=/TcomAgent_JTD/agent/Tpl/JTD/Public/Images/button-normal.png", ENDITEM,
"Url=/TcomAgent_JTD/agent/Tpl/JTD/Public/Images/Alltitlebg.jpg", ENDITEM,
"Url=/TcomAgent_JTD/Public/js/ymPrompt/skin/qq/images/win_lb.gif", ENDITEM,
"Url=/TcomAgent_JTD/Public/js/ymPrompt/skin/qq/images/win_b.gif", ENDITEM,
"Url=/TcomAgent_JTD/Public/js/ymPrompt/skin/qq/images/win_rb.gif", ENDITEM,
LAST);
web_url("listener.api.php_6",
"URL=http://192.168.0.229/TcomAPI_1.6_LinkTo102/application/model/listener.api.php?exten=909&queueid=&callback=jsonp1320141232145&json=1",
"Resource=0",
"RecContentType=text/html",
"Referer=http://192.168.0.229/TcomAgent_JTD/index.php/Public/top",
"Snapshot=t40.inf",
"Mode=HTML",
LAST);
return 0;
}
作者:
云层
时间:
2011-11-1 19:19
看到你没关联,我已经知道登陆失败了
作者:
testlmh
时间:
2011-11-2 08:40
是没关联,因为验证码没获取。但是录制的脚本里面怎么没有BUTTON的操作记录呢?
作者:
夏日摸摸茶
时间:
2011-11-2 09:29
有点晕
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2