51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

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

[原创] 新人创建脚本失败求助~

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2015-6-28 21:30:21 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
vuser_init()
{

        web_set_max_html_param_len("99999");

        lr_start_transaction("web_open");/*页面响应时间*/

        web_url("360se6.cab",
                "URL=http://seupdate.360safe.com/se6/360se6.cab?ver=7.1.1.572&pid=360se_elder&ty=1&guid=d037256312eb8b723e1bcebe4abce98d&mid=d037256312eb8b723e1bcebe4abce98d&m=0&to=1_1",
                "TargetFrame=",
                "Resource=1",
                "RecContentType=application/octet-stream",
                "Referer=",
                "Snapshot=t1.inf",
                LAST);

        lr_end_transaction("web_open", LR_AUTO);

        web_url("safeup_url.cab",
                "URL=http://update.360safe.com/v3/safeup_url.cab",
                "TargetFrame=",
                "Resource=1",
                "RecContentType=application/octet-stream",
                "Referer=",
                "Snapshot=t2.inf",
                LAST);

        lr_think_time(10);

        web_custom_request("wdinfo.php",
                "URL=http://qurl.f.360.cn/wdinfo.php",
                "Method=POST",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/plain",
                "Referer=",
                "Snapshot=t3.inf",
                "Mode=HTML",
                "EncType=application/octet-stream",
                "BodyBinary=\\x0E\\x06$!\\x01\\x08\\xA72\\x12^\\x00\\x00\\x05\\x00觾[﨤{?\\x03\\x06T,)\\xBA>\\xE5:\\x19榟U%k\\x1F蔇U嶲跉c绒|UE秔Z\\x1Ap,傟\\x95\\x1D^m藧岀尀砀A2\t鯜释2(誘翷tb遊裾\\x7F絓\\x8B\\x06\\x1E茅\\xBE8┾胤Ar_摳穡k弗狲kw莮m宋<邲嚦\tr\\x14馰諌l媼\\x18ZR陋\\x00r\\x18洩gq \\xC0\\x0C鷕雍M跫\\xEA%>箆J]\\x8C>:臘\\x12yy4\\x0C#飒哤)E\\x0F殣狤\\x0F7\\x13p眡\\xF4\\x066sW繆Qw酲\\xBF\\x1FYl\\xBD\"\r\\xB3\\xFF彾鸈\\x18\\x08\\x05漯I\\x8B\\x7F\\x1F峨尀砀1DN\\\\磜S砘墜p%\\xA32\\x18\\xCA\\x13"
                "<pI\\x0F迦瞴育\\x021\rr勊尸EY\\x1F\\xCC\\x11詠蕯\"\\x87+\\x00\\x03鴦y\\xAB\\x1F椭%\\x055A珓T;N\\x93,\\xB1?gA鰼澘\\xA9\\x00\\x13\\xD19 の栭稄黜n\\x16|\\xF2\\x19鱦\\x1C\\x02洦`;K*哣ケJ\\x1C\\x85<\\x14EI驅帿\\x16铯i\\xBD0⒄賙Ga\\x80\\x80p峧尀砀 6尻ム8I夑鑱叮蠖`餲<\\x04\\x9F\\x03]\\x00缂愊\\x1BM\\x00啸\\x1E昆m\\x05\\x0C壥豸Q\\x16\\x12\n\\xFFT\\x01\\xE2'\\x01\\xBA\\x1F彤\\x8B\\x18躪\\x1E辽T\\x13\\xD0)榤\\x16\\x01O>\\xFB9桔,\\x16 <a藀7*\\xBA6z礪/痀殖/厰!E\\xAC\\x01m&K(帎9\\x06\\xFE\\x1B倸1l\\x07T "
                "7e'\\xF1\\x16簜笎*F",
                EXTRARES,
                "Url=http://seupdate.360safe.com/bankmode4.ini?33720224", "Referer=", ENDITEM,
                LAST);

        web_custom_request("wdinfo.php_2",
                "URL=http://qurl.f.360.cn/wdinfo.php",
                "Method=POST",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/plain",
                "Referer=",
                "Snapshot=t4.inf",
                "Mode=HTML",
                "EncType=application/octet-stream",
                "BodyBinary=\\x1E\n\\x01\\x02!\\xF3\\x00\\x00\\x01\\x18秣笀嘀漀尀尀砀CD5稓~\\x80\\xCA1\\x0B*\\x00\\x00\\x00\\x05b枀o徶\\x95\\x02G5畴鑎h6蠀鲝A>\\x17关\\xED\\x0C酪$啄\\x16劓駉峣尀砀D7\\x07錌滓厹\\xFD.嫺&vL荍鋘c\\x8D\\x16閏\\xDB0\\x8E\\x1C骯\\x1Bz.M,<r\\x07L7W豲\\x1A\\x8A'獆\\xFFO\\x16(]\\x887\\x14\\xF9\\x13螷\\x1D脀Ms隖灡轐\\xDA4l辔|砟瓳\\xB8/x櫁-%t\\x104浗\n伉J儹\\xAD\\x10鑞婚窑尐w\\x00\\x94\\x02仵\\x07DN碼晴Vjd鄮碯>S(澆\\xD4\\x04鴞d \"\\x00煪u\\xEA\\x108Tef\\x12洉喔\\xD0\\x1C魯錦猘畵m3撿"
                "!Z羕\\x10椪ω}讬.b\\x11缜P做峧尀砀EB Y\\xD9\\x12(\\\\{yF犭\\xDC\\x18\\xC7/5U吔:1\\xF60#\\xF94揨8t頹A9\\x1C堡",
                LAST);

        web_add_cookie("lSage=597D73F458BEF71C08257E1DE1728FF0%3AFG%3D1%2C597D73F458BEF71C08257E1DE1728FF0; DOMAIN=www.baidu.com");

        web_add_cookie("BAIDUID=FAF1CC683E9C7786C4034A2A92C43F6A:FG=1; DOMAIN=www.baidu.com");

        web_add_cookie("BIDUPSID=2CD361587FC36DA08D7F4B240A719041; DOMAIN=www.baidu.com");

        web_add_cookie("PSTM=1432969748; DOMAIN=www.baidu.com");

        web_add_cookie("H_PS_BABANNER=1; DOMAIN=www.baidu.com");

        web_add_cookie("BDUSS=1hoY00yR045M1B2ZFRpVktNbjFYbmMzRjc2Q21GN3BYRDVkZ3JOWExEVmtEcTVWQVFBQUFBJCQAAAAAAAAAAAEAAAAaAkc%7EAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGSBhlVkgYZVZ; DOMAIN=www.baidu.com");

        web_add_cookie("ispeed_lsm=16; DOMAIN=www.baidu.com");

        web_add_cookie("BD_UPN=12314353; DOMAIN=www.baidu.com");

        /* Registering parameter(s) from source task id 155
        // {Siebel_Analytic_search_id2} = "14345_14593_1441_14386_14444_16030_10812_14432_12868_14669_14871_14958_14962_15132_11605_13936_13487_15964"
        // */

        web_reg_save_param("Siebel_Analytic_search_id2",
                "LB/IC=sid=\"",
                "RB/IC=\"",
                "Ord=1",
                "Search=Body",
                "RelFrameId=1",
                LAST);

        lr_think_time(9);

        web_url("www.baidu.com",
                "URL=https://www.baidu.com/",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t5.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=/home/hit/v.gif?mod=newsplus%3Anewsfull&submod=news_constructor&utype=0&superver=superplus&portrait=1a02473f&glogid=3274932670&type=2011&pid=315&version=PCHome&terminal=PC&qid=0xea8c48260002295c&sid={Siebel_Analytic_search_id2}&super_frm=&from_login=&from_reg=&query=&curcard=2&curcardtab=&_r=0.09865703107789159&m=newsplus%3Anewsfull_newsShow&logactid=0200100000&showType=hotword&words="
                "%5B%22%E5%A4%A9%E6%B4%A5%E5%B9%BC%E5%84%BF%E5%9B%AD%E6%9D%80%E4%BA%BA%E6%A1%88%E4%BB%B6%22%2C%22%E5%A5%B3%E7%94%9F%E6%AF%95%E4%B8%9A%E6%99%9A%E4%BC%9A%E5%90%8E%E5%87%BA%E5%AB%81%22%2C%22%E9%BB%84%E5%B2%9B%E5%A5%B3%E5%AD%A9%E5%A4%B1%E8%B8%AA%22%2C%22%E4%B8%AD%E5%9B%BD%E5%A5%B3%E5%9B%9A%E7%8C%9B%E5%A2%9E%22%2C%22%E6%B9%96%E5%8C%97%E5%A5%87%E8%91%A9%E5%A4%A7%E6%A1%A5%22%2C%22%E9%95%BF%E5%9F%8E%E8%BF%913%E6%88%90%E6%B6%88%E5%A4%B1%20%22%2C%2260%E5%90%8E%E5%A4%A7%E5%8F%94%E6%B1%82%E5%A9%9A90%E5%90%8E%2"
                "2%2C%22600%E5%8F%AA%E7%8B%97%E8%B7%B3%E6%A1%A5%E8%87%AA%E6%9D%80%22%2C%22%E5%A7%94%E5%B1%88%E7%8C%AB%E8%B5%B0%E7%BA%A2%22%2C%22%E8%B5%B5%E5%BF%A0%E7%A5%A5%E8%A2%AB%E4%BA%BA%E6%90%80%E6%89%B6%E4%B8%8A%E5%8F%B0%22%2C%22%E6%83%85%E4%BE%A3%E6%82%AC%E5%B4%96%E6%8B%8D%E7%85%A7%22%2C%22%E5%8E%A6%E5%A4%A7%E7%BE%8E%E5%A5%B3%E6%AF%95%E4%B8%9A%E7%85%A7%E8%B5%B0%E7%BA%A2%22%2C%22%E5%B1%B1%E4%B8%9C%E5%9C%9F%E8%B1%AA%E8%BF%8E%E4%BA%B2%E8%BD%A6%E9%98%9F%22%2C%22%E8%B5%B5%E8%96%87%E5%90%BB%E6%88%8F%E6%8B%8D60%E9%"
                "81%8D%22%2C%22%E4%B8%96%E7%95%8C%E9%A6%96%E4%BE%8B%E5%A4%B4%E9%A2%85%E7%A7%BB%E6%A4%8D%22%2C%2214%E5%B2%81%E9%AB%98%E8%80%83531%E5%88%86%22%5D&pagenum=0", ENDITEM,
                "Url=/cache/fpid/chromelib_1_1.js?_=1435496575160", ENDITEM,
                LAST);

        web_add_cookie("__huid=10rhzn23QJDUIIXQyZ%2Fg0fVgGabeIml9ho%2BgtWAZmcP24%3D; DOMAIN=se.360.cn");

        web_add_cookie("__guid=132730903.3817458370760889300.1418643504578.5098; DOMAIN=se.360.cn");

        web_add_cookie("__Euid=230645765.1726017134197729500.1421882123740.8347; DOMAIN=se.360.cn");

        web_add_cookie("_ga=GA1.2.1252847541.1421882124; DOMAIN=se.360.cn");

        web_add_cookie("__hsid=0a3c3a0cd1070b1d; DOMAIN=se.360.cn");

        lr_think_time(19);

        web_url("setm.html",
                "URL=http://se.360.cn/setm/setm.html",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t6.inf",
                "Mode=HTML",
                LAST);

        web_add_cookie("__bsi=10193555420711123057_00_0_I_R_4_0301_0005_N_I_I_0; DOMAIN=www.baidu.com");

        web_url("superload",
                "URL=https://www.baidu.com/home/xman/data/superload?type=weather&_req_seqid=0xea8c48260002295c&asyn=1&t=1435496597028&sid={Siebel_Analytic_search_id2}",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=https://www.baidu.com/",
                "Snapshot=t7.inf",
                "Mode=HTML",
                LAST);

        return 0;
}
vuser_end()
{

        web_url("tipspluslist",
                "URL=https://www.baidu.com/home/xman/data/tipspluslist?_req_seqid=0xea8c48260002295c&asyn=1&t=1435496599103&sid={Siebel_Analytic_search_id2}",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=https://www.baidu.com/",
                "Snapshot=t8.inf",
                "Mode=HTML",
                LAST);

        web_add_cookie("__bsi=9586081684301729173_00_0_I_R_57_0301_0005_N_I_I_0; DOMAIN=www.baidu.com");

        web_url("personalcontent",
                "URL=https://www.baidu.com/home/msg/data/personalcontent?num=8&_req_seqid=0xea8c48260002295c&asyn=1&t=1435496599134&sid={Siebel_Analytic_search_id2}",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=https://www.baidu.com/",
                "Snapshot=t9.inf",
                "Mode=HTML",
                LAST);

        web_url("treasuretips",
                "URL=https://www.baidu.com/home/treasure/data/treasuretips?_req_seqid=0xea8c48260002295c&asyn=1&t=1435496599446&sid={Siebel_Analytic_search_id2}",
                "TargetFrame=",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=https://www.baidu.com/",
                "Snapshot=t10.inf",
                "Mode=HTML",
                LAST);

        return 0;
}


vuser_init.c(99): Error -26377: No match found for the requested parameter "Siebel_Analytic_search_id2". Check whether the requested boundaries exist in the response data. Also, if the data you want to save exceeds 99999 bytes, use web_set_max_html_param_len to increase the parameter size          [MsgId: MERR-26377]
vuser_init.c(99): web_url("www.baidu.com") highest severity level was "ERROR", 7291 body bytes, 1110 header bytes, 22 chunking overhead bytes          [MsgId: MMSG-26387]


刚做了一个百度的登陆退出的脚本,脚本报错为26377和26387,26377报错应该是要关联,想问下各位怎么关联,具体怎么写呢,另外26387报错怎么解决?

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

使用道具 举报

  • TA的每日心情
    擦汗
    2017-10-27 14:21
  • 签到天数: 306 天

    连续签到: 1 天

    [LV.8]测试军长

    2#
    发表于 2015-6-29 16:43:41 | 只看该作者
    建议楼主重新检查一下脚本或者精简一下脚本!
    回复 支持 反对

    使用道具 举报

    本版积分规则

    关闭

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

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

    GMT+8, 2024-11-7 15:30 , Processed in 0.060417 second(s), 22 queries .

    Powered by Discuz! X3.2

    © 2001-2024 Comsenz Inc.

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