51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 2356|回复: 1
打印 上一主题 下一主题

[原创] LR录制回放出现的问题

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2012-7-26 15:14:58 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
新手 完全不懂这意思,求帮助,把具体操作方法写下,谢谢啦!
Action()
{

        web_set_max_html_param_len("50000");

        /* Registering parameter(s) from source task id 4
        // {Siebel_Analytic_ViewState2} = "/wEPDwULLTE4OTk5NzQwMTBkGAEFHl9fQ29udHJvbHNSZXF1aXJlUG9zdEJhY2tLZXlfXxYBBQtpbWdCdG5Mb2dpbrcAVfsS3Ut+/ecbKd+CPIzIh0Xq"
        // */

        web_reg_save_param("Siebel_Analytic_ViewState2",
                "LB/IC=ViewState\" value=\"",
                "RB/IC=\"",
                "Ord=1",
                "Search=Body",
                "RelFrameId=1",
                LAST);
        web_url("button_login.jpg",
                "URL=http://localhost:1/images/button_login.jpg",
                "Resource=1",
                "RecContentType=image/jpeg",
                "Referer=http://localhost:1/Login.aspx",
                LAST);
        web_submit_data("Login.aspx_2",
                "Action=http://localhost:1/Login.aspx",
                "Method=POST",
                "RecContentType=text/html",
                "Referer=http://localhost:1/Login.aspx",
                "Snapshot=t111.inf",
                "Mode=HTTP",
                ITEMDATA,
                "Name=__EVENTTARGET", "Value=", ENDITEM,
                "Name=__EVENTARGUMENT", "Value=", ENDITEM,
                "Name=__VIEWSTATE", "Value={Siebel_Analytic_ViewState2}", ENDITEM,
                "Name=txtMac", "Value=00:19:66:13:02:13", ENDITEM,
                "Name=txtAccount", "Value=jsl", ENDITEM,
                "Name=txtPwd", "Value=123", ENDITEM,
                "Name=imgBtnLogin.x", "Value=12", ENDITEM,
                "Name=imgBtnLogin.y", "Value=38", ENDITEM,
                LAST);

        web_concurrent_start(NULL);

        web_url("Top.aspx",
                "URL=http://localhost:1/Top.aspx",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://localhost:1/Default.aspx",
                "Snapshot=t112.inf",
                "Mode=HTTP",
                LAST);

        web_url("Left.aspx",
                "URL=http://localhost:1/Left.aspx",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://localhost:1/Default.aspx",
                "Snapshot=t113.inf",
                "Mode=HTTP",
                LAST);

        web_url("Main.aspx",
                "URL=http://localhost:1/Main.aspx",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://localhost:1/Default.aspx",
                "Snapshot=t114.inf",
                "Mode=HTTP",
                LAST);

        web_concurrent_end(NULL);

        web_concurrent_start(NULL);

        web_url("jscode.js",
                "URL=http://localhost:1/js/jscode.js",
                "Resource=1",
                "RecContentType=application/x-javascript",
                "Referer=http://localhost:1/Top.aspx",
                LAST);

        web_url("name.png",
                "URL=http://localhost:1/images/name.png",
                "Resource=1",
                "RecContentType=image/png",
                "Referer=http://localhost:1/Top.aspx",
                LAST);

        web_url("quit_button.png",
                "URL=http://localhost:1/images/quit_button.png",
                "Resource=1",
                "RecContentType=image/png",
                "Referer=",
                LAST);

        web_concurrent_end(NULL);

        web_url("list.css",
                "URL=http://localhost:1/css/list.css",
                "Resource=1",
                "RecContentType=text/css",
                "Referer=http://localhost:1/Main.aspx",
                LAST);

        web_concurrent_start(NULL);

        web_url("dialog.js",
                "URL=http://localhost:1/js/dialog.js",
                "Resource=1",
                "RecContentType=application/x-javascript",
                "Referer=http://localhost:1/Left.aspx",
                LAST);

        web_url("nav_lefttop.gif",
                "URL=http://localhost:1/images/nav_lefttop.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://localhost:1/Left.aspx",
                LAST);

        web_concurrent_end(NULL);

        web_url("loginInfo_bg.png",
                "URL=http://localhost:1/images/loginInfo_bg.png",
                "Resource=1",
                "RecContentType=image/png",
                "Referer=",
                LAST);

        web_concurrent_start(NULL);

        web_url("top_bottombg.png",
                "URL=http://localhost:1/images/top_bottombg.png",
                "Resource=1",
                "RecContentType=image/png",
                "Referer=",
                LAST);

        web_url("name.png_2",
                "URL=http://localhost:1/images/name.png",
                "Resource=1",
                "RecContentType=image/png",
                "Referer=",
                LAST);

        web_concurrent_end(NULL);

        web_concurrent_start(NULL);

        web_url("top_rightbg.gif",
                "URL=http://localhost:1/images/top_rightbg.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://localhost:1/Top.aspx",
                LAST);

        web_url("loginInfo_bg.png_2",
                "URL=http://localhost:1/images/loginInfo_bg.png",
                "Resource=1",
                "RecContentType=image/png",
                "Referer=http://localhost:1/Top.aspx",
                LAST);
        web_url("ScriptResource.axd_3",
                "URL=http://localhost:1/ScriptResource.axd?d=-8NW2REBZlIbDn8sh04Y9f86SwKT2WR4pyuSohRpploxxhtEPD-pKvYWXz5lOR72t-4o7UyRJZ19Q0JO4UJAFw2&t=634436433540000000",
                "Resource=1",
                "RecContentType=text/javascript",
                "Referer=http://localhost:1/client/ClientAdd.aspx",
                LAST);

        web_url("ScriptResource.axd_4",
                "URL=http://localhost:1/ScriptResource.axd?d=-8NW2REBZlIbDn8sh04Y9f86SwKT2WR4pyuSohRpplovK9JFiMOYGg0LTW30gQ-91UjZ9quKR7DgUmf2yHEgoI_RYzy3IDA_5C9xd6oS3uE1&t=634436433540000000",
                "Resource=1",
                "RecContentType=text/javascript",
                "Referer=http://localhost:1/client/ClientAdd.aspx",
                LAST);

        web_url("ScriptResource.axd_5",
                "URL=http://localhost:1/ScriptResource.axd?d=-8NW2REBZlIbDn8sh04Y9f86SwKT2WR4pyuSohRpplomb8qyFQg8IJa5un7hhBS7jY6k3Ak0DWfmoJG_0AmtfRCLgUJmzCSE2-xeJnZ3Ww-poZLiNv9iiz494P9ZX0v70&t=634436433540000000",
                "Resource=1",
                "RecContentType=text/javascript",
                "Referer=http://localhost:1/client/ClientAdd.aspx",
                LAST);

        web_concurrent_end(NULL);

        web_url("WdatePicker.css",
                "URL=http://localhost:1/My97DatePicker/skin/WdatePicker.css",
                "Resource=1",
                "RecContentType=text/css",
                "Referer=http://localhost:1/client/ClientAdd.aspx",
                LAST);

        web_concurrent_start(NULL);

        web_url("hiddendiv.gif",
                "URL=http://localhost:1/images/hiddendiv.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://localhost:1/client/ClientAdd.aspx",
                LAST);

        web_url("button_save.gif",
                "URL=http://localhost:1/images/button_save.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://localhost:1/client/ClientAdd.aspx",
                LAST);

        web_url("button_no.gif",
                "URL=http://localhost:1/images/button_no.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://localhost:1/client/ClientAdd.aspx",
                LAST);

        web_concurrent_end(NULL);

        web_url("img.gif",
                "URL=http://localhost:1/My97DatePicker/skin/default/img.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://localhost:1/My97DatePicker/My97DatePicker.htm",
                LAST);

        /* Registering parameter(s) from source task id 67
        // {Siebel_Analytic_ViewState9} = "/wEPDwUJMjIzNTg3MDU5DxYGHgVjb3VudAIKHgVvcmRlcgUPY2xpZW50X3JlZ190aW1lHgZtZXRob2QFBSBkZXNjFgICAw9kFhQCDQ8QZA8WAgIBAgIWAhAFDOeDp+eUsOawtOWOggUCMDNnEAUe56u55rqq6Ieq5p2l5rC05YWs5Y+46JCl5Lia5Y6FBQIwMWdkZAITDxYCHgtfIUl0ZW1Db3VudAIBFgICAQ9kFgoCAw8PFgIeBFRleHQFIDI2ZTg3ZjUxMWE1MzQ4YWU5OTdjMTY1MmIxZWUyZjlkZGQCBA8VCAkxMTExMTAwMDkG5bCP5ZubAAAe56u55rqq6Ieq5p2l5rC05YWs5Y+46JCl5Lia5Y6FBueOsOmHkQzkuIDmiLfkuIDooagG5q2j5bi4ZAIFDw8WAh8EBQblsI/lm5tkZAIGDxUBKEVkaXQoJzI2ZTg3ZjUxMWE1MzQ4YWU5OTdjMTY1MmIxZWUyZjlkJylkAgcPDxYCHg9Db21tYW5kQXJndW1lbnQFIDI2ZTg3ZjUxMWE1MzQ4YWU5OTdjMTY1MmIxZWUyZjlkZGQCFQ8PFgIfBAUBMWRkAhcPDxYCHwQFATFkZAIZDw8WAh8EBQExZGQCGw8PFgIeB0VuYWJsZWRoZGQCHQ8PFgIfBmhkZAIfDw8WAh8GaGRkAiEPDxYCHwZoZGQCIw8PFgIeCU1heExlbmd0aAIBZGQYAQUeX19Db250cm9sc1JlcXVpcmVQb3N0QmFja0tleV9fFgkFCVNlYXJjaEJ0bgUHRXhjZWx0bwUVcnB0TGlzdCRjdGwwMSRjYkNoZWNrBQpsbkJ0bkZpcnN0BQhsbkJ0blByZQUJbG5CdG5OZXh0BQlsbkJ0bkxhc3QFB2xuQnRuR28FC2ltZ0J0bkF1ZGl0w1wq8RzSn5suM6bZn4ZXeG3nkCc="
        // */

        web_reg_save_param("Siebel_Analytic_ViewState9",
                "LB/IC=ViewState\" value=\"",
                "RB/IC=\"",
                "Ord=1",
                "Search=Body",
                "RelFrameId=1",
                LAST);

        lr_think_time(4);

        web_url("ClientPreList.aspx",
                "URL=http://localhost:1/client/ClientPreList.aspx",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://localhost:1/Left.aspx",
                "Snapshot=t117.inf",
                "Mode=HTTP",
                LAST);

        web_concurrent_start(NULL);

        web_url("button_dexcel.gif",
                "URL=http://localhost:1/images/button_dexcel.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://localhost:1/client/ClientPreList.aspx",
                LAST);

        web_url("button_reset.gif",
                "URL=http://localhost:1/images/button_reset.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://localhost:1/client/ClientPreList.aspx",
                LAST);

        web_url("button_auditing.gif",
                "URL=http://localhost:1/images/button_auditing.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://localhost:1/client/ClientPreList.aspx",
                LAST);

        web_concurrent_end(NULL);

        web_url("title_bg01.gif",
                "URL=http://localhost:1/images/title_bg01.gif",
                "Resource=1",
                "RecContentType=image/gif",
                "Referer=http://localhost:1/client/ClientPreList.aspx",
                LAST);

        lr_think_time(8);

        web_submit_data("ClientPreList.aspx_2",
                "Action=http://localhost:1/client/ClientPreList.aspx",
                "Method=POST",
                "RecContentType=text/html",
                "Referer=http://localhost:1/client/ClientPreList.aspx",
                "Snapshot=t118.inf",
                "Mode=HTTP",
                ITEMDATA,
                        "Name=__EVENTVALIDATION", "Value=/wEWIgLFp8icDQLJkuW4AwKHmKSgAwLq64TcDQLYntmaCQL4yrmoDwLkveTRDgLW3L+kCQLW3M/QCwKtmM2/CAKGzbD9DALPw+DuAwKbyfeeAgK3+In7BQKk+LH7BQKk+In7BQLOu7zuAQL9waz2BwK8942bDgL+1+avBQLZspSQBgLMguHvBAKsv4dEApel0pAFAqHe0KUFApTt0YYMArDAyN4EAunAlCYC3J+t6A4CntKmigICiveh2wcCxIT0hgQCs5rdmwoCzvuONMXxwxMuao1T2WCGxfgnkyzdjP+h", ENDITEM,
                "Name=imgBtnAudit.x", "Value=45", ENDITEM,
                "Name=imgBtnAudit.y", "Value=6", ENDITEM,
                LAST);

        return 0;
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
 楼主| 发表于 2012-7-26 15:25:46 | 只看该作者
出现了26612和26388错误, 代码太长 我删了一段
回复 支持 反对

使用道具 举报

本版积分规则

关闭

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

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

GMT+8, 2024-11-14 19:41 , Processed in 0.168567 second(s), 27 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

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