URL vs. HTML 錄製模式

來源:互聯網
上載者:User

標籤:blog   http   io   os   ar   java   strong   for   檔案   

轉自:http://blog.csdn.net/testing_is_believing/article/details/5274188

於WEB協議,LoadRunner支援3種模式的錄製:GUI-based、HTML based和URLbased,這篇文章對比了一下URL和HTML模式:

http://learnloadrunner.com/introduction/difference-url-vs-html-recording-mode/

 

There are three types of recording mode/levels in LoadRunner. GUI-based, HTML based and URL based. For the uninitiated, recording levels tells you the amount of and what information is recorded during the recording process. As the title says, for this post we will keep focus on HTML based and URL based recording levels only and will touch upon GUI based mode, in a later post.

 

  1. HTML based mode, records script for every user action that is performed during recording (hmmm…sounds like QTP) while URL based mode records each and every browser request to the server and resources received from the server. Confused? ok, HTML based mode does recording as you perform clicks and doesn’t give you inside information like what is happening behind the recording while URL based mode records each and every step and emulate Javascript code.  (HTML模式錄製的指令碼有點像QTP的指令碼,是使用者操作層的指令碼,而URL模式錄製的指令碼是針對瀏覽器和伺服器之間的每一個互動進行記錄。)
  2. From the point1) above you can guess, HTML mode would have less correlation to do while URL mode has much more complex correlation requirements.  (HTML模式的指令碼相比起URL模式的指令碼,需要的關聯處理要少一些。)
  3. HTML mode is smaller and is more intuitive to read as the statements are inside the functions corresponding to the user action performed. In the case of URL based, all statements gets recorded into web_url()   (HTML模式錄製的指令碼要少一些、直觀一些,而URL模式錄製的指令碼都以web_url函數出現,不夠直觀和簡潔。)
  4. HTML mode is recommended for browser applications while URL mode is recommended for non-browser applications.   (對於那些基於瀏覽器的應用程式建議採用HTML模式錄製,而對於那些用戶端不是基於瀏覽器與伺服器端互動的應用程式,推薦採用URL模式錄製。)
  5. Lastly, don’t get the impression that I am advocating for HTML mode. URL mode can be of real help when you want to have control over the resources that need to be or need not to be downloaded, since you have each and every statement in-front of you (point 1)   (URL模式的指令碼可以更細粒度地控制資源檔是否要下載。)

URL vs. HTML 錄製模式

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.