基于WebSocket協(xié)議的Web應(yīng)用性能測試
本文選題:性能測試 + 軟件測試; 參考:《中國科學(xué)院大學(xué)(工程管理與信息技術(shù)學(xué)院)》2014年碩士論文
【摘要】:隨著互聯(lián)網(wǎng)應(yīng)用的不斷發(fā)展,針對傳統(tǒng)的HTTP協(xié)議的Web應(yīng)用性能測試方法和工具已經(jīng)日趨完善。在下一代Web標(biāo)準(zhǔn)HTML5中,越來越多的Web應(yīng)用通過WebSocket協(xié)議實現(xiàn)了瀏覽器和服務(wù)器之間的實時雙向通信。WebSocket協(xié)議的引入使得Web應(yīng)用從單一的HTTP協(xié)議轉(zhuǎn)變?yōu)镠TTP協(xié)議和WebSocket協(xié)議共同工作的復(fù)合型應(yīng)用。目前,由于主流性能測試工具的協(xié)議庫尚不支持WebScoket協(xié)議,如何在現(xiàn)有方法的基礎(chǔ)上對基于WebSocket協(xié)議的Web應(yīng)用進行性能測試成為了軟件性能測試領(lǐng)域中值得研究的課題。 首先,本文研究和分析了Web應(yīng)用性能測試的相關(guān)理論,包括性能測試原理、分類、性能指標(biāo)以及常用的性能測試工具和方法。通過與傳統(tǒng)的Web實時通信技術(shù)進行比較,闡述了WebSocket協(xié)議技術(shù)特點和工作原理。 其次,通過分析一個基于WebSocket協(xié)議的Web事件處理系統(tǒng),本文總結(jié)出該類系統(tǒng)與傳統(tǒng)Web應(yīng)用系統(tǒng)在性能特征上的差異,根據(jù)這些性能特征重新定義了系統(tǒng)的主要性能指標(biāo),并針對該系統(tǒng)設(shè)計了一系列性能測試用例和性能測試場景。 再次,提出一個對基于WebSocket協(xié)議的Web事件處理系統(tǒng)進行性能測試的方法。通過擴展現(xiàn)有的性能測試工具如JMeter和開發(fā)獨立的WebSocket客戶端軟件,設(shè)計并實現(xiàn)了一個適用于WebSocket協(xié)議的性能測試框架。 最后,本文使用該性能測試框架對基于WebSocket協(xié)議的Web事件處理系統(tǒng)實施了一系列性能測試,驗證了性能測試框架的正確性和有效性。在性能測試過程中,通過收集和分析系統(tǒng)各項性能指標(biāo),揭示了系統(tǒng)的瓶頸并提出改進方案。
[Abstract]:With the development of Internet applications, Web application performance testing methods and tools for the traditional HTTP protocol has become more and more perfect. In the next generation of Web standard HTML5, Web composite applications more and more applications through the WebSocket protocol to achieve the real-time bidirectional communication protocol between the.WebSocket browser and the server makes the transition from the Web application single HTTP protocol for the HTTP protocol and WebSocket protocol to work together. At present, the mainstream performance testing tool protocol library does not support the WebScoket protocol, how on the basis of the existing methods of Web application based on WebSocket protocol performance testing has become a worthwhile research topic in the field of software performance testing.
Firstly, this paper studies and analyzes the related theory of Web application performance testing, including test principle, classification, performance indicators and performance testing tools and methods. By comparing with the traditional Web real-time communication technology, expounds the technical features and working principle of WebSocket protocol.
Secondly, through the analysis of a WebSocket protocol processing system based on Web event, this paper sums up the differences in the performance characteristics of the system and the traditional Web application system, according to the characteristics of re definition of the main performance parameters of the system, and has designed a series of performance test and performance test scenarios for the system.
Again, put forward a performance test of the processing system of WebSocket protocol based on Web event method. By extending the existing performance testing tools such as JMeter and independent development of the WebSocket client software, the design and implementation of a testing framework for performance in WebSocket protocol.
Finally, the implementation of a series of tests on the processing system of WebSocket protocol based on the use of the Web performance testing framework, verify the correctness and validity of performance testing framework. During performance testing, by collecting and analyzing the performance indicators of the system, reveals the bottleneck of the system and put forward the improvement plan.
【學(xué)位授予單位】:中國科學(xué)院大學(xué)(工程管理與信息技術(shù)學(xué)院)
【學(xué)位級別】:碩士
【學(xué)位授予年份】:2014
【分類號】:TP393.04
【相似文獻】
相關(guān)期刊論文 前10條
1 寧君;張蓉;梁正安;;基于WebSocket的緩存式Web應(yīng)用框架設(shè)計[J];廣西科學(xué)院學(xué)報;2014年01期
2 呂海東;;基于WebSocket的實時Web監(jiān)控系統(tǒng)[J];工業(yè)控制計算機;2014年06期
3 葉忠文;黃鵬;施金金;;基于WebSocket的Web實時通信系統(tǒng)[J];火力與指揮控制;2014年S1期
4 邸錚;詹龍;;基于WebSocket的B/S雙向通信的Web聊天應(yīng)用[J];電子制作;2013年04期
5 薛隴彬;劉釗遠;;基于WebSocket的網(wǎng)絡(luò)實時通信[J];計算機與數(shù)字工程;2014年03期
6 呂海東;;基于WebSocket和SenchaTouch的移動Web應(yīng)用設(shè)計與實現(xiàn)[J];電腦知識與技術(shù);2014年05期
7 溫照松;易仁偉;姚寒冰;;基于WebSocket的實時Web應(yīng)用解決方案[J];電腦知識與技術(shù);2012年16期
8 張永瑞;;基于WebSocket的HTML5實時通信技術(shù)在導(dǎo)學(xué)平臺中的應(yīng)用與效率分析[J];凱里學(xué)院學(xué)報;2013年06期
9 張潤花;楊明;;基于Html5 WebSocket的IM系統(tǒng)分析[J];電子世界;2014年10期
10 ;[J];;年期
相關(guān)會議論文 前1條
1 寧君;張蓉;梁正安;;基于WebSocket的緩存式Web應(yīng)用框架設(shè)計[A];廣西計算機學(xué)會2013年學(xué)術(shù)年會論文集[C];2013年
相關(guān)碩士學(xué)位論文 前2條
1 趙晗;基于WebSocket協(xié)議的Web應(yīng)用性能測試[D];中國科學(xué)院大學(xué)(工程管理與信息技術(shù)學(xué)院);2014年
2 易仁偉;基于WebSocket的實時Web應(yīng)用的研究[D];武漢理工大學(xué);2013年
,本文編號:1737158
本文鏈接:http://sikaile.net/guanlilunwen/ydhl/1737158.html