支持異步請求的Web應(yīng)用自動化測試工具設(shè)計(jì)與實(shí)現(xiàn)
本文選題:Web服務(wù)器性能 切入點(diǎn):自動化測試 出處:《上海交通大學(xué)》2014年碩士論文 論文類型:學(xué)位論文
【摘要】:隨著互聯(lián)網(wǎng)的快速發(fā)展及網(wǎng)絡(luò)技術(shù)的不斷成熟,Web應(yīng)用需要響應(yīng)大量用戶并發(fā)訪問,其性能測試越來越重要。保證和提高Web應(yīng)用的服務(wù)質(zhì)量已經(jīng)成為測試的重要內(nèi)容。與傳統(tǒng)軟件相比,Web應(yīng)用具有分布式、多用戶隨機(jī)并發(fā)訪問、支持異步請求、處理相對集中在服務(wù)器端的特點(diǎn),手工很難實(shí)現(xiàn)大量終端用戶并發(fā)訪問。因此,自動化測試工具在Web應(yīng)用服務(wù)器的性能測試中占有重要地位。 現(xiàn)今的Web應(yīng)用廣泛使用JavaScript和Ajax技術(shù),允許動態(tài)加載網(wǎng)頁內(nèi)容,,支持向服務(wù)器發(fā)送異步請求,提高了Web應(yīng)用與用戶之間的交互性。同時,越來越多的Web應(yīng)用部署在云平臺,根據(jù)用戶需求動態(tài)提供資源,在滿足服務(wù)水平協(xié)議的基礎(chǔ)上,提高了系統(tǒng)的可伸縮性和可靠性。因此,對Web應(yīng)用的彈性測試也是非常重要的一個方面。然而,現(xiàn)有的測試工具在面對復(fù)雜的被測系統(tǒng)時,仍然沿用以前的測試框架,根據(jù)測試腳本向Web服務(wù)器發(fā)送和接收請求,獲得服務(wù)器的響應(yīng)時間及吞吐量等信息。這類測試工具無法真實(shí)生成支持異步請求或部署在云平臺的可動態(tài)擴(kuò)展資源的Web應(yīng)用的負(fù)載,無法搜集有效的測試數(shù)據(jù),產(chǎn)生的結(jié)果缺乏可信度,從而影響對Web服務(wù)器性能的測試。 針對這些問題,本文基于Faban提出了一個自動化測試框架,并實(shí)現(xiàn)了一個Web應(yīng)用自動化測試工具——FabanPlus。它能夠根據(jù)用戶設(shè)計(jì)的測試用例和程序,自動執(zhí)行Web應(yīng)用中的JavaScript腳本,生成包含異步請求的測試負(fù)載,并且根據(jù)Web服務(wù)器的反饋信息實(shí)現(xiàn)負(fù)載的動態(tài)調(diào)節(jié);在測試過程中,F(xiàn)abanPlus實(shí)時性地監(jiān)測、搜集請求響應(yīng)時間、Web服務(wù)器CPU利用率、JavaScript執(zhí)行異常信息等數(shù)據(jù),并根據(jù)這些數(shù)據(jù)生成測試結(jié)果報告,分析服務(wù)器性能。 FabanPlus測試工具已在實(shí)際項(xiàng)目中得到了運(yùn)用和驗(yàn)證。本文將上海市建筑工地污染源環(huán)境監(jiān)測平臺作為被測系統(tǒng),分析其服務(wù)器日志,提取用戶行為規(guī)律。利用FabanPlus設(shè)計(jì)和編寫測試程序,對其服務(wù)器性能進(jìn)行自動化測試,并且根據(jù)測試結(jié)果分析Web應(yīng)用性能,起到了優(yōu)化系統(tǒng)性能的作用。
[Abstract]:With the rapid development of the Internet and the continuous maturity of network technology, Web applications need to respond to a large number of users to access concurrently. Performance testing is becoming more and more important. It has become an important content to ensure and improve the quality of service of Web applications. Compared with traditional software, web applications are distributed, multi-user random concurrent access, support asynchronous requests. Processing is relatively concentrated on the server side, so it is difficult to achieve a large number of concurrent access by manual users. Therefore, automated testing tools play an important role in the performance testing of Web application servers. Today's Web applications widely use JavaScript and Ajax technology, allowing dynamic loading of Web content, support to send asynchronous requests to the server, improve the interaction between Web applications and users. At the same time, more and more Web applications are deployed on cloud platform. Providing resources dynamically according to the user's requirements, improving the scalability and reliability of the system on the basis of satisfying the service-level protocol. Therefore, the flexibility test of Web applications is also an important aspect. When the existing testing tools are faced with the complex system under test, they still follow the previous test framework and send and receive requests to the Web server according to the test script. Get the response time and throughput of the server. This kind of testing tool can not actually generate the load of Web application that supports asynchronous request or dynamically scalable resource deployed on cloud platform, and can not collect valid test data. The resulting results lack credibility, which affects the testing of Web server performance. To solve these problems, this paper presents an automated testing framework based on Faban, and implements a Web application automation testing tool, Faban Plus. it can automatically execute JavaScript scripts in Web applications according to the test cases and programs designed by users. Generate a test load containing asynchronous requests, and dynamically adjust the load based on feedback from the Web server; during the testing process, Faban Plus monitors the load in real time. The data such as request response time, CPU utilization ratio and CPU execution exception information are collected, and the test result report is generated according to these data, and the server performance is analyzed. The FabanPlus testing tool has been used and verified in the actual project. In this paper, the pollution source environment monitoring platform of Shanghai construction site is taken as the tested system, and its server log is analyzed. Using FabanPlus to design and write test program, to test the server performance automatically, and to analyze the application performance of Web according to the test results, which plays an important role in optimizing the system performance.
【學(xué)位授予單位】:上海交通大學(xué)
【學(xué)位級別】:碩士
【學(xué)位授予年份】:2014
【分類號】:TP393.09
【共引文獻(xiàn)】
相關(guān)期刊論文 前10條
1 王立新;李明輝;;Modeling and Rendering in the Three-Dimensional Effect in Rhino for Lady's High Boots[J];Journal of Donghua University(English Edition);2011年02期
2 張文深;;基于LoadRunner的行政審批系統(tǒng)負(fù)載測試研究[J];電腦知識與技術(shù)(學(xué)術(shù)交流);2007年18期
3 王晶;陳衛(wèi)衛(wèi);;AJAX搜索引擎研究[J];電腦知識與技術(shù);2009年19期
4 李艷芹;陳躍華;郭松柏;;基于Web應(yīng)用系統(tǒng)的性能測試綜述[J];電腦知識與技術(shù);2010年28期
5 甘清云;;基于SilkPerformer的軟件性能測試[J];電腦知識與技術(shù);2011年32期
6 楊錦程;羌亮;葉涵敏;;基于XML的富媒體發(fā)布流程的優(yōu)化及比較[J];上海電力學(xué)院學(xué)報;2009年02期
7 王云;;Web網(wǎng)站功能及性能測試探析[J];電子設(shè)計(jì)工程;2012年20期
8 李華波;吳禮發(fā);賴海光;鄭成輝;黃康宇;;有效的爬行Ajax頁面的網(wǎng)絡(luò)爬行算法[J];電子科技大學(xué)學(xué)報;2013年01期
9 楊勝斌;;基于在線作業(yè)管理系統(tǒng)的并發(fā)測試研究[J];計(jì)算機(jī)安全;2013年03期
10 董卓亞;;基于百度地圖JavaScript API的通信地圖展示[J];電子設(shè)計(jì)工程;2013年18期
相關(guān)會議論文 前8條
1 李蕊;魏更宇;王樅;張冬梅;;Rhino解析引擎的分析與改進(jìn)[A];2010年全國通信安全學(xué)術(shù)會議論文集[C];2010年
2 鄭燁;劉偉;;政府網(wǎng)站建設(shè)會影響政府透明度嗎?——來自西部某省縣級政府網(wǎng)站評價的證據(jù)[A];第六屆珞珈國是論壇論文集[C];2012年
3 張瑋;牛正浩;史慧玲;孫萌;唐紹炬;;多目標(biāo)優(yōu)化的云計(jì)算虛擬集群動態(tài)調(diào)整方法[A];山東計(jì)算機(jī)學(xué)會2013學(xué)術(shù)年會論文集[C];2013年
4 孫英華;郭振波;吳哲輝;杜樂樂;;基于混合云市場的計(jì)算資源交易模型的研究[A];山東計(jì)算機(jī)學(xué)會2013學(xué)術(shù)年會論文集[C];2013年
5 潘送軍;周沿東;;淺談開發(fā)測試資源池的建設(shè)及應(yīng)用[A];電力行業(yè)信息化優(yōu)秀論文集2013[C];2013年
6 周宇光;陳振義;盛中華;;探索云計(jì)算技術(shù)在企業(yè)信息化建設(shè)中的應(yīng)用[A];第十六屆中國科協(xié)年會——分7綠色設(shè)計(jì)與制造信息技術(shù)創(chuàng)新論壇論文集[C];2014年
7 姚艷;曹健;李明祿;;A Network-aware Virtual Machine Allocation in Cloud Datacenter[A];第十一屆全國博士生學(xué)術(shù)年會——信息技術(shù)與安全專題論文集[C];2013年
8 黃宏偉;聶新堯;;云計(jì)算為巖土工程帶來的機(jī)遇與挑戰(zhàn)[A];第三屆全國工程風(fēng)險與保險研究學(xué)術(shù)研討會會議交流材料[C];2014年
相關(guān)博士學(xué)位論文 前10條
1 盧云帆;面向網(wǎng)上購買過程的消費(fèi)者在線溝通行為實(shí)證研究[D];華中科技大學(xué);2013年
2 李煜;基于雙邊市場理論的軟件平臺運(yùn)營機(jī)制研究[D];北京郵電大學(xué);2013年
3 張帆;認(rèn)知可重構(gòu)的高效能Web服務(wù)體系結(jié)構(gòu)研究[D];解放軍信息工程大學(xué);2013年
4 李韌;基于Hadoop的大規(guī)模語義Web本體數(shù)據(jù)查詢與推理關(guān)鍵技術(shù)研究[D];重慶大學(xué);2013年
5 卿蘇德;網(wǎng)絡(luò)虛擬化映射算法研究[D];北京郵電大學(xué);2013年
6 史佩昌;云服務(wù)的高效傳遞技術(shù)研究[D];國防科學(xué)技術(shù)大學(xué);2012年
7 劉雪峰;隱私安全協(xié)議研究[D];西安電子科技大學(xué);2013年
8 任維武;用于分布式入侵檢測系統(tǒng)的合作式本體模型[D];吉林大學(xué);2013年
9 敬思遠(yuǎn);面向綠色虛擬數(shù)據(jù)中心資源管理的若干關(guān)鍵技術(shù)研究[D];電子科技大學(xué);2013年
10 陳軍;基于G/S模式的空間分析云服務(wù)關(guān)鍵技術(shù)研究[D];成都理工大學(xué);2012年
相關(guān)碩士學(xué)位論文 前10條
1 李艷芹;基于Web應(yīng)用系統(tǒng)的性能測試及優(yōu)化[D];東華大學(xué);2011年
2 周民;海量web輿情挖掘算法研究[D];電子科技大學(xué);2011年
3 管翠花;支持Ajax技術(shù)的Deep Web網(wǎng)絡(luò)爬蟲模型研究[D];大連海事大學(xué);2011年
4 姜暉;Java卡綜合測試系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn)[D];北京郵電大學(xué);2011年
5 李蕊;基于網(wǎng)絡(luò)爬蟲技術(shù)的多源下載系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn)[D];北京郵電大學(xué);2011年
6 江軍;用戶評論情感分類系統(tǒng)設(shè)計(jì)與實(shí)現(xiàn)[D];南京大學(xué);2011年
7 曾亮;嵌入式瀏覽器Javascript引擎的分析與優(yōu)化[D];電子科技大學(xué);2011年
8 何婭;嵌入式瀏覽器擴(kuò)展機(jī)制的研究與設(shè)計(jì)[D];電子科技大學(xué);2011年
9 李峰;Web應(yīng)用軟件建模過程中性能參數(shù)研究[D];中國石油大學(xué);2011年
10 容典;統(tǒng)一定位能力引擎的設(shè)計(jì)與實(shí)現(xiàn)[D];華南理工大學(xué);2011年
本文編號:1637557
本文鏈接:http://sikaile.net/guanlilunwen/ydhl/1637557.html