51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 3040|回复: 4
打印 上一主题 下一主题

[原创] lr录制脚本:对一短信列表进行删除操作。脚本里面没有:web_submit_data。

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2011-11-1 18:22:13 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
用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,
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
 楼主| 发表于 2011-11-1 18:22: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;
}
回复 支持 反对

使用道具 举报

该用户从未签到

3#
发表于 2011-11-1 19:19:46 | 只看该作者
看到你没关联,我已经知道登陆失败了
回复 支持 反对

使用道具 举报

该用户从未签到

4#
 楼主| 发表于 2011-11-2 08:40:45 | 只看该作者
是没关联,因为验证码没获取。但是录制的脚本里面怎么没有BUTTON的操作记录呢?
回复 支持 反对

使用道具 举报

该用户从未签到

5#
发表于 2011-11-2 09:29:24 | 只看该作者
有点晕
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-11-9 01:43 , Processed in 0.075368 second(s), 27 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表