51Testing软件测试论坛

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

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

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

[原创] 关于loadrunner录制邮箱的安全证书问题

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2009-12-7 17:06:05 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我录制登录企业邮箱之后给自己发邮件,就这么简单,可是开始会然出一个安全证书,点是,之后就不会出现了,但是录制完之后回放出错,请问怎么解决呢,希望高手指教。。。我等待中。。。

===========================================================================================================================
回放提示:
Action.c(1231): 错误 -26631: 对于“https://mail.bjebc.com/exchange/ ... %E4%BB%B6%E7%AE%B1/”,HTTP 状态代码=400 (閿欒鐨勮姹?          [MsgId: MERR-26631]
Action.c(1231): 警告 -26200: 由于上述错误,EXTRARES 指定的资源中至少有一项尚未下载          [MsgId: MWAR-26200]
Action.c(1231): web_custom_request("%E6%94%B6%E4%BB%B6%E7%AE%B1_2") 最高严重级别为“ERROR”,1336 个正文字节,210 个标头字节          [MsgId: MMSG-26388]
Action.c(1231): 通知: Transaction "sw" ended with "Fail" status (Duration: 6.7178).
===========================================================================================================================
脚本和图片在附件中,是因为加密了吗,虚心请教、、、

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?(注-册)加入51Testing

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

使用道具 举报

该用户从未签到

2#
 楼主| 发表于 2009-12-7 17:53:19 | 只看该作者
我把这段代码注释掉就可以跑通了,并且正常放邮件,为什么呢???

/* web_custom_request("%E6%94%B6%E4%BB%B6%E7%AE%B1_2",
                "URL=https://mail.bjebc.com/exchange/mayandong/%E6%94%B6%E4%BB%B6%E7%AE%B1/",
                "Method=SEARCH",
                "Resource=0",
                "RecContentType=text/xml",
                "Referer=https://mail.bjebc.com/exchange/mayandong/%E6%94%B6%E4%BB%B6%E7%AE%B1/?Cmd=contents",
                "Snapshot=t139.inf",
                "Mode=HTML",
                "Body=<searchrequest xmlns=\"DAV:\"><sql>SELECT \"http://schemas.microsoft.com/exchange/smallicon\" as smicon, \"http://schemas.microsoft.com/mapi/sent_representing_name\" as from, \"urn:schemas:httpmail:datereceived\" as recvd, \"http://schemas.microsoft.com/mapi/proptag/x10900003\" as flag, \"http://schemas.microsoft.com/mapi/subject\" as subj, \"http://schemas.microsoft.com/exchange/x-priority-long\" as prio, \"urn:schemas:httpmail:hasattachment\" as fattach,\"urn:schemas:httpmail:read\" as r, "
                "\"http://schemas.microsoft.com/exchange/outlookmessageclass\" as m, \"http://schemas.microsoft.com/mapi/proptag/x10950003\" as flagcolor\r\nFROM Scope('SHALLOW TRAVERSAL OF \"\"')\r\nWHERE \"http://schemas.microsoft.com/mapi/proptag/0x67aa000b\" = false AND \"DAV:isfolder\" = false\r\nORDER BY \"urn:schemas:httpmail:datereceived\" DESC\r\n</sql><range type=\"row\">0-24</range></searchrequest>\r\n",
                EXTRARES,
                "Url=/exchweb/img/view-document.gif", "Referer=https://mail.bjebc.com/exchange/mayandong/%E6%94%B6%E4%BB%B6%E7%AE%B1/?Cmd=contents", ENDITEM,
                "Url=/exchweb/img/sort-d.gif", "Referer=https://mail.bjebc.com/exchange/mayandong/%E6%94%B6%E4%BB%B6%E7%AE%B1/?Cmd=contents", ENDITEM,
                "Url=/exchweb/img/view-flag.gif", "Referer=https://mail.bjebc.com/exchange/mayandong/%E6%94%B6%E4%BB%B6%E7%AE%B1/?Cmd=contents", ENDITEM,
                "Url=/exchweb/img/view-importance.gif", "Referer=https://mail.bjebc.com/exchange/mayandong/%E6%94%B6%E4%BB%B6%E7%AE%B1/?Cmd=contents", ENDITEM,
                "Url=/exchweb/img/view-paperclip.gif", "Referer=https://mail.bjebc.com/exchange/mayandong/%E6%94%B6%E4%BB%B6%E7%AE%B1/?Cmd=contents", ENDITEM,
                "Url=/exchweb/img/flg-empty.gif", "Referer=https://mail.bjebc.com/exchange/mayandong/%E6%94%B6%E4%BB%B6%E7%AE%B1/?Cmd=contents", ENDITEM,
                "Url=/exchweb/6.5.7638.1/controls/ctrl_reminder.htc", "Referer=", ENDITEM,
                LAST);

web_custom_request("%E6%97%A5%E5%8E%86",
                "URL=https://mail.bjebc.com/exchange/mayandong/%E6%97%A5%E5%8E%86",
                "Method=SUBSCRIBE",
                "Resource=0",
                "Referer=https://mail.bjebc.com/exchange/mayandong/%E6%94%B6%E4%BB%B6%E7%AE%B1/?Cmd=navbar",
                "Mode=HTML",
                LAST);

        web_custom_request("%E4%BB%BB%E5%8A%A1",
                "URL=https://mail.bjebc.com/exchange/mayandong/%E4%BB%BB%E5%8A%A1",
                "Method=SUBSCRIBE",
                "Resource=0",
                "Referer=https://mail.bjebc.com/exchange/mayandong/%E6%94%B6%E4%BB%B6%E7%AE%B1/?Cmd=navbar",
                "Mode=HTML",
                LAST);

        web_custom_request("%E4%BB%BB%E5%8A%A1_2",
                "URL=https://mail.bjebc.com/exchange/mayandong/%E4%BB%BB%E5%8A%A1",
                "Method=SEARCH",
                "Resource=0",
                "RecContentType=text/xml",
                "Referer=https://mail.bjebc.com/exchange/mayandong/%E6%94%B6%E4%BB%B6%E7%AE%B1/?Cmd=navbar",
                "Snapshot=t140.inf",
                "Mode=HTML",
                "Body=<?xml version=\"1.0\"?>\n<searchrequest xmlns=\"DAV:\">\n<sql>SELECT \"DAV:href\" as URL, \n\"http://schemas.microsoft.com/exchange/outlookmessageclass\" as Class, \n\"http://schemas.microsoft.com/mapi/commonend\" as StartTime, \n\"http://schemas.microsoft.com/mapi/remindernexttime\" as ReminderTime, \n\"http://schemas.microsoft.com/mapi/subject\" as Subject, \n\"http://schemas.microsoft.com/exchange/smallicon\" as Icon \n from SCOPE('shallow traversal of \"\"') \n WHERE (\"http://"
                "schemas.microsoft.com/exchange/tasks/is_complete\" = false ) \n AND (\"http://schemas.microsoft.com/mapi/reminderset\" = true) \n AND (\"http://schemas.microsoft.com/mapi/remindernexttime\" &lt; CAST(\"2009-12-08T16:00:00Z\" as \"dateTime.tz\")) \n AND ((\"http://schemas.microsoft.com/mapi/commonend\" IS NULL) OR ((\"http://schemas.microsoft.com/mapi/commonend\" &lt; CAST(\"2010-03-06T16:00:00Z\" as \"dateTime.tz\")) \n AND (\"http://schemas.microsoft.com/mapi/commonend\" &gt; CAST(\"2009-09-06T16"
                ":00:00Z\" as \"dateTime.tz\")))) \n AND (\"DAV:ishidden\" = false) \n ORDER BY \"http://schemas.microsoft.com/exchange/tasks/dtdue\" DESC </sql>\n</searchrequest>\n",
                LAST);

        web_custom_request("%E6%97%A5%E5%8E%86_2",
                "URL=https://mail.bjebc.com/exchange/mayandong/%E6%97%A5%E5%8E%86",
                "Method=SEARCH",
                "Resource=0",
                "RecContentType=text/xml",
                "Referer=https://mail.bjebc.com/exchange/mayandong/%E6%94%B6%E4%BB%B6%E7%AE%B1/?Cmd=navbar",
                "Snapshot=t141.inf",
                "Mode=HTML",
                "Body=<?xml version=\"1.0\"?>\n<searchrequest xmlns=\"DAV:\">\n<sql>SELECT \"DAV:href\" as URL, \n\"http://schemas.microsoft.com/exchange/outlookmessageclass\" as Class, \n\"urn:schemas:calendar:dtstart\" as StartTime, \n\"urn:schemas:calendar:dtend\" as EndTime, \n\"urn:schemas:calendar:remindernexttime\" as ReminderTime, \n\"urn:schemas:calendar:location\" as Location, \n\"http://schemas.microsoft.com/mapi/subject\" as Subject, \n\"urn:schemas:calendar:instancetype\" as Type, \n\"http://"
                "schemas.microsoft.com/exchange/smallicon\" as Icon \n from SCOPE('shallow traversal of \"\"') \n WHERE NOT (\"urn:schemas:calendar:instancetype\" = 1) \n AND (\"urn:schemas:calendar:remindernexttime\" &lt; CAST(\"2009-12-08T16:00:00Z\" as \"dateTime.tz\")) \n AND (\"urn:schemas:calendar:dtstart\" &lt; CAST(\"2010-03-06T16:00:00Z\" as \"dateTime.tz\")) \n AND (\"urn:schemas:calendar:dtend\"   &gt; CAST(\"2009-09-06T16:00:00Z\" as \"dateTime.tz\")) \n AND (\"DAV:ishidden\" is Null  OR \"DAV"
                ":ishidden\" = false) \nORDER BY \"urn:schemas:calendar:dtstart\" DESC </sql>\n</searchrequest>\n",
                LAST);

        web_url("1207test.EML",
                "URL=https://mail.bjebc.com/exchange/mayandong/%E6%94%B6%E4%BB%B6%E7%AE%B1/1207test.EML?cmd=preview",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=https://mail.bjebc.com/exchange/mayandong/%E6%94%B6%E4%BB%B6%E7%AE%B1/?Cmd=contents",
                "Snapshot=t142.inf",
                "Mode=HTML",
                LAST);
*/
回复 支持 反对

使用道具 举报

该用户从未签到

3#
 楼主| 发表于 2009-12-7 18:46:11 | 只看该作者
最后简化成这样了,行了,哎,希望有人指点指点

Action()
{

        lr_start_transaction("shiwu");

        lr_rendezvous("jihe");

        /*安全证书*/

        web_url("%E6%94%B6%E4%BB%B6%E7%AE%B1",
                "URL=https://mail.bjebc.com/exchange/mimi/%E6%94%B6%E4%BB%B6%E7%AE%B1",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t1.inf",
                "Mode=HTML",
                LAST);

        /*登录*/

        web_submit_data("owaauth.dll",
                "Action=https://mail.bjebc.com/exchweb/bin/auth/owaauth.dll",
                "Method=POST",
                "RecContentType=text/html",
                "Referer=https://mail.bjebc.com/exchweb/bin/auth/owalogon.asp?url=https://mail.bjebc.com/exchange/mimi/%25E6%2594%25B6%25E4%25BB%25B6%25E7%25AE%25B1&reason=0",
                "Snapshot=t137.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=destination", "Value=https://mail.bjebc.com/exchange/mimi/%E6%94%B6%E4%BB%B6%E7%AE%B1", ENDITEM,
                "Name=flags", "Value=0", ENDITEM,
                "Name=username", "Value=已修改", ENDITEM,
                "Name=password", "Value=已修改", ENDITEM,
                "Name=SubmitCreds", "Value=?", ENDITEM,
                "Name=forcedownlevel", "Value=0", ENDITEM,
                "Name=trusted", "Value=0", ENDITEM,
                EXTRARES,

                LAST);
/*
  
*/
        /*新建邮件*/

        web_url("%E8%8D%89%E7%A8%BF",
                "URL=https://mail.bjebc.com/exchange/mimi/%E8%8D%89%E7%A8%BF/?Cmd=new",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t142.inf",
                "Mode=HTML",
                EXTRARES,
               
                LAST);

        /*发送*/

        web_custom_request("%E8%8D%89%E7%A8%BF_2",
                "URL=https://mail.bjebc.com/exchange/mimi/%E8%8D%89%E7%A8%BF",
                "Method=POST",
                "Resource=0",
                "Referer=https://mail.bjebc.com/exchange/mimi/%E8%8D%89%E7%A8%BF/?Cmd=new",
                "Mode=HTML",
                "EncType=application/x-www-UTF8-encoded",
                "Body=Cmd=send\nMsgTo=jiangpanpan@bjebc.com\nMsgCc=\nMsgBcc=\nurn:schemas:httpmail:importance=1\nhttp://schemas.microsoft.com/exchange/sensitivity-long=\nurn:schemas:httpmail:subject=1\nurn:schemas:httpmail:htmldescription=<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.0 Transitional//EN\">\n<HTML dir=ltr><HEAD>\n<META http-equiv=Content-Type content=\"text/html; charset=unicode\">\n<META content=\"MSHTML 6.00.2900.5880\" name=GENERATOR></HEAD>\n<BODY>\n<DIV><FONT face=瀹嬩綋,Simsun color=#000000 size=2"
                ">1</FONT></DIV></BODY></HTML>\n",
                LAST);

        /*注销*/

        web_url("zhangsan",
                "URL=https://mail.bjebc.com/exchange/mimi/?Cmd=logoff",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t143.inf",
                "Mode=HTML",
                EXTRARES,
               
                LAST);
/*

*/

        lr_end_transaction("shiwu", LR_AUTO);

        return 0;
}
回复 支持 反对

使用道具 举报

该用户从未签到

4#
 楼主| 发表于 2009-12-7 18:47:00 | 只看该作者
不知道这样和一大堆脚本有什么不同,为什么去掉了哪一段就能成功,等待中、、、、、、、、、
回复 支持 反对

使用道具 举报

该用户从未签到

5#
 楼主| 发表于 2009-12-7 20:09:36 | 只看该作者
原来就用登录那块加发邮件那块就行了,哎
回复 支持 反对

使用道具 举报

本版积分规则

关闭

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

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

GMT+8, 2024-11-14 15:20 , Processed in 0.098220 second(s), 28 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

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