LoadRunner的Capture Level

來源:互聯網
上載者:User

標籤:

情境:錄製loadrunner的web網站

問題:錄製的過程中發現除了頁面正常的請求外還有些看不懂的請求(包含亂碼),指令碼如下:

    web_url("WebTours",         "URL=http://127.0.0.1:1080/WebTours/",         "Resource=0",         "RecContentType=text/html",         "Referer=",         "Snapshot=t14.inf",         "Mode=HTML",         EXTRARES,         "Url=http://act.cmcmcdn.com/upload/201507/8afc2fe48db9060fe1bdda2089e1d950.png", ENDITEM,         "Url=http://act.cmcmcdn.com/upload/201507/3b491068507d8f85ea7b35d756da7215.png", ENDITEM,         LAST);    web_url("config.xml",         "URL=http://bho.xl7.xunlei.com/platform/2.5.x.xxxx/config.xml",         "Resource=0",         "RecContentType=text/xml",         "Referer=",         "Snapshot=t15.inf",         "Mode=HTML",         LAST);    web_custom_request("q.cgi",         "URL=http://masterconn.qq.com/q.cgi",         "Method=POST",         "Resource=1",         "Referer=",         "Snapshot=t16.inf",         "EncType=",         "BodyBinary=\\x00\\x02\\[email protected]\\x00\\x00\\x00\\x04\\x00\\x00\\x00\\xEA\\x00\\x00\\x07\\xDA\\x19\\x9E\\x18\\x08U\\xB3\\x13\\xC8*蘬\\x1F\\xB47偰\\x14S塦\\x00\\x00\\x00\\x04\\x00\\x00\\x00\\x01\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x01\\x00\\x00\\x00\t僬筈鴦GT聹8T\\x98‘\\x13綬鈳0戨\\x07櫬\\xEC\\x1Ey\r\\x13[\\x9F\\x1A忍Q擬\\x13談]⒍剮ncj\\x04\\xFFw#扊G{\\xA7\\x1A蠍個g:砇緒l鳮\\xFB\\x7F\\x101珥剓聺桇=88bY郔\\xB1\\x0B&_\\x8F\\x1F\\x7F\n泛|紥|\\xC1\r"        "l縝V3趔鵔\tK茦X\\x18扨窲詃\\x1F蟎\\x1B#弩\\xFE\\x16莖覚S2,\\xC6\\x1C姷涖uJp穘訫bi曼\\\\\\x08",         LAST);    return 0;

上面的指令碼中出了第一個是期望內的,其他的出現的很莫名其妙,為此筆者查閱了相關資料,發現Record Options--NetWork--Port Mapping中的

Capture Level預設選中的為Socket level data,而關於Capture Level有這麼一段解釋:

1、Socket level data.
Capture data using trapping on the socket level only. Port mappings apply in this case (default).
2、WinINet level data.
Capture data using hooks on the WinINet.dll API used by certain HTTP applications. The most common application that uses these hooks is Internet Explorer. Port mappings are not relevant for this level.
3、Socket level and WinINet level data.
Captures data using both mechanisms. WinINet level sends information for applications that use WinINet.dll. Socket level sends data only if it determines that it did not originate from WinINet.dll. Port mapping applies to data that did not originate from WinINet.dll.

抱著試試看的心裡,筆者把Capture Level修改成WinINet level data,發現指令碼中莫名奇妙的內容果然不見了╰( ̄▽ ̄)╮

Action(){    web_url("WebTours",         "URL=http://127.0.0.1:1080/WebTours/",         "Resource=0",         "RecContentType=text/html",         "Referer=",         "Snapshot=t13.inf",         "Mode=HTML",         EXTRARES,         "Url=../favicon.ico", "Referer=", ENDITEM,         "Url=https://ieonline.microsoft.com/favicon.ico", "Referer=", ENDITEM,         LAST);    return 0;}

 

LoadRunner的Capture Level

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.