关于loadrunner录制邮箱的安全证书问题
我录制登录企业邮箱之后给自己发邮件,就这么简单,可是开始会然出一个安全证书,点是,之后就不会出现了,但是录制完之后回放出错,请问怎么解决呢,希望高手指教。。。我等待中。。。===========================================================================================================================
回放提示:
Action.c(1231): 错误 -26631: 对于“https://mail.bjebc.com/exchange/mayandong/%E6%94%B6%E4%BB%B6%E7%AE%B1/”,HTTP 状态代码=400 (閿欒鐨勮姹?
Action.c(1231): 警告 -26200: 由于上述错误,EXTRARES 指定的资源中至少有一项尚未下载
Action.c(1231): web_custom_request("%E6%94%B6%E4%BB%B6%E7%AE%B1_2") 最高严重级别为“ERROR”,1336 个正文字节,210 个标头字节
Action.c(1231): 通知: Transaction "sw" ended with "Fail" status (Duration: 6.7178).
===========================================================================================================================
脚本和图片在附件中,是因为加密了吗,虚心请教、、、 我把这段代码注释掉就可以跑通了,并且正常放邮件,为什么呢???
/* 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\" < 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\" < CAST(\"2010-03-06T16:00:00Z\" as \"dateTime.tz\")) \n AND (\"http://schemas.microsoft.com/mapi/commonend\" > 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\" < CAST(\"2009-12-08T16:00:00Z\" as \"dateTime.tz\")) \n AND (\"urn:schemas:calendar:dtstart\" < CAST(\"2010-03-06T16:00:00Z\" as \"dateTime.tz\")) \n AND (\"urn:schemas:calendar:dtend\" > CAST(\"2009-09-06T16:00:00Z\" as \"dateTime.tz\")) \n AND (\"DAV:ishidden\" is NullOR \"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);
*/ 最后简化成这样了,行了,哎,希望有人指点指点
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;
} 不知道这样和一大堆脚本有什么不同,为什么去掉了哪一段就能成功,等待中、、、、、、、、、 :L 原来就用登录那块加发邮件那块就行了,哎
页:
[1]