|
我按照这个地址上的方法http://www.automatedwebtest.info/performance-testing/loadrunner-flex-protocol-recording/,录制flex网站的脚本。录制代码如下:
Action()
{
web_url("create_photo_book.html",
"URL=http://test/sdi/swf/create_photo_book.html",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t1.inf",
"Mode=HTML",
EXTRARES,
"Url=create_photo_book.swf", ENDITEM,
LAST);
web_url("historyFrame.html",
"URL=http://test/sdi/swf/history/historyFrame.html?",
"Resource=0",
"RecContentType=text/html",
"Referer=http://test/sdi/swf/create_photo_book.html",
"Snapshot=t2.inf",
"Mode=HTML",
LAST);
lr_rendezvous("dd");
lr_start_transaction("dd");
flex_web_request("upload.php",
"URL=http://test/photo/upload.php",
"Method=POST",
"Resource=0",
"RecContentType=text/html",
"Referer=",
"Snapshot=t3.inf",
"Mode=HTML",
"EncType=multipart/form-data; boundary="
"----------Ij5KM7ei4ei4ei4GI3gL6GI3ei4Ij5",
body_variable_1,
"EXTRARES",
"Url=images/96332821.jpg",
"Referer=http://test/sdi/swf/create_photo_book.swf",
"ENDITEM",
LAST);
lr_end_transaction("dd",LR_AUTO);
return 0;
}
执行结果如下:
Action.c(28)对应的是上面的红色字体部分 。
Virtual User Script started
Starting action vuser_init.
Ending action vuser_init.
Running Vuser...
Starting iteration 1.
Starting action Action.
Action.c(4): Found resource "http://test/sdi/swf/history/history.css" in HTML "http://test/sdi/swf/create_photo_book.html" [MsgId: MMSG-26659]
Action.c(4): Found resource "http://test/sdi/swf/AC_OETags.js" in HTML "http://test/sdi/swf/create_photo_book.html" [MsgId: MMSG-26659]
Action.c(4): Found resource "http://test/sdi/swf/history/history.js" in HTML "http://test/sdi/swf/create_photo_book.html" [MsgId: MMSG-26659]
Action.c(4): Downloading resource "http://test/sdi/swf/create_photo_book.swf" (specified by argument number 9) [MsgId: MMSG-26577]
Action.c(4): web_url("create_photo_book.html") was successful, 616269 body bytes, 1549 header bytes [MsgId: MMSG-26386]
Action.c(15): web_url("historyFrame.html") was successful, 807 body bytes, 297 header bytes [MsgId: MMSG-26386]
Action.c(24): Rendezvous dd
Action.c(26): Notify: Transaction "dd" started.
Action.c(28): Warning -26491: '\' not followed by x, X or '\' [MsgId: MWAR-26491]
Action.c(28): Downloading resource "http://test/photo/images/96332821.jpg" (specified by argument number 12) [MsgId: MMSG-26577]
Action.c(28): flex_web_request("upload.php") highest severity level was "warning", 105555 body bytes, 527 header bytes [MsgId: MMSG-26388]
Action.c(45): Notify: Transaction "dd" ended with "ass" status (Duration: 0.2698).
Ending action Action.
Ending iteration 1.
Ending Vuser...
Starting action vuser_end.
Ending action vuser_end.
Vuser Terminated.
请问上面执行结果中红色的部分,如何处理呀?
还有就是,查看上面脚本的Tasks==》Recording==》Recording Summary时,它的Recording Summary中的AMF协议没有被使用,为什么呀?
[ 本帖最后由 禾末 于 2008-7-8 11:26 编辑 ] |
|