天堂国产午夜亚洲专区-少妇人妻综合久久蜜臀-国产成人户外露出视频在线-国产91传媒一区二区三区

當前位置:主頁 > 科技論文 > 軟件論文 >

基于云平臺的測試任務(wù)調(diào)度策略的研究

發(fā)布時間:2018-06-21 22:49

  本文選題:Hadoop + 權(quán)重調(diào)度算法; 參考:《長春工業(yè)大學》2017年碩士論文


【摘要】:隨著軟件行業(yè)的快速發(fā)展,軟件的開發(fā)周期和開發(fā)成本越來越被重視,軟件測試作為軟件開發(fā)過程中的一個重要環(huán)節(jié),不僅僅為軟件產(chǎn)品提供質(zhì)量把關(guān),而且還能降低人力重復投入的風險,從而縮短開發(fā)周期、減少開發(fā)成本。云計算的出現(xiàn)與發(fā)展,為軟件測試技術(shù)提供了新的方向,將測試任務(wù)遷移到云平臺,在云環(huán)境下執(zhí)行測試任務(wù),不僅可以節(jié)省配置環(huán)境的成本,而且還極大的加快了測試任務(wù)的執(zhí)行速度,減少測試時間的同時還減少了測試人員的冗余工作。在云平臺上執(zhí)行測試任務(wù),高效的任務(wù)調(diào)度算法是必不可少的。優(yōu)秀的調(diào)度算法可以提高整個系統(tǒng)的資源利用率,縮短任務(wù)的執(zhí)行時間。目前云環(huán)境中的調(diào)度算法一般都存在著一些局限性,不能完全適應測試任務(wù),因為測試任務(wù)不同于一般的任務(wù),測試任務(wù)不僅本身帶有不同的優(yōu)先級別,而且測試任務(wù)之間還存在著依賴關(guān)系。尤其是在執(zhí)行回歸測試任務(wù)時,調(diào)度算法變得更為重要。因此本文針對云平臺下的回歸測試任務(wù)調(diào)度問題,對測試任務(wù)的調(diào)度策略進行了深入的研究。針對優(yōu)先級不同的特性,提出了一種基于權(quán)重的調(diào)度算法Weight Scheduler,算法不僅考慮了測試任務(wù)的初始優(yōu)先級,還可以根據(jù)集群的具體資源使用情況,調(diào)度測試任務(wù);為了避免出現(xiàn)饑餓現(xiàn)象,對于等待時間較長的測試任務(wù)給予適當增長權(quán)重,使調(diào)度盡可能公平。對比的實驗結(jié)果表明,Weight Scheduler調(diào)度算法比Hadoop自帶調(diào)度算法Capacity Scheduler效率更高。針對任務(wù)間依賴關(guān)系,策略中首先對測試任務(wù)進行預處理,根據(jù)用戶上傳的測試任務(wù)抽象出DAG圖。從DAG圖中劃分出路徑,每條路徑中的節(jié)點間有依賴,不同路徑之間任務(wù)可并行。然后根據(jù)DAG圖中路徑,整合測試用例和修改測試腳本?紤]了腳本維護成本問題,實現(xiàn)了測試腳本的參數(shù)化。最后,將測試腳本和測試用例上傳到Hadoop的HDFS文件系統(tǒng)。結(jié)合MapReduce編程模型,對修改后的測試腳本設(shè)計map函數(shù)和reduce函數(shù),其中加入啟動自動化測試工具語句,自動執(zhí)行測試,回收測試結(jié)果。MapReduce的執(zhí)行需要Weight Scheduler來控制,算法根據(jù)Hadoop云平臺狀態(tài)對測試任務(wù)進行調(diào)度。結(jié)合自動化測試工具Selenium在Hadoop上搭建云測試任務(wù)管理平臺,以校內(nèi)網(wǎng)站為被測目標進行了測試整個平臺的實驗。實驗結(jié)果證明了本文研究算法的高效性以及調(diào)度策略的有效性,相比于單機執(zhí)行測試任務(wù),在云平臺下節(jié)省了測試時間,加快了測試速度。
[Abstract]:With the rapid development of software industry, more and more attention has been paid to software development cycle and development cost. As an important part of software development, software testing not only provides quality control for software products. Moreover, it can reduce the risk of repeated input, thus shorten the development cycle and reduce the development cost. The emergence and development of cloud computing provide a new direction for software testing technology. Migration of test tasks to cloud platform and execution of test tasks in cloud environment can not only save the cost of configuration environment, It also greatly speeds up the execution of the test task, reduces the test time and reduces the redundant work of the testers. Efficient task scheduling algorithm is necessary to execute test task on cloud platform. The excellent scheduling algorithm can improve the resource utilization of the whole system and shorten the execution time of the task. At present, the scheduling algorithms in cloud environment generally have some limitations and can not be fully adapted to test tasks, because test tasks are different from normal tasks, and test tasks not only have different priority levels, There are also dependencies between test tasks. Especially when performing regression testing, scheduling algorithm becomes more important. Therefore, in this paper, the scheduling strategy of test task is deeply studied in view of the problem of regression test task scheduling on cloud platform. According to the characteristics of different priority, a weight-based scheduling algorithm, weight Scheduler, is proposed. The algorithm not only considers the initial priority of the test task, but also can schedule the test task according to the specific resource usage of the cluster. In order to avoid the phenomenon of hunger, the test task with longer waiting time is given the appropriate increase weight to make the scheduling as fair as possible. The experimental results show that weight Scheduler is more efficient than Hadoop's own capacity Scheduler. According to the dependency relationship between tasks, the test task is preprocessed firstly, and the DAG diagram is abstracted according to the test task uploaded by the user. The path is divided from the DAG graph, the nodes in each path have dependencies, and the tasks between different paths can be parallel. Then integrate test cases and modify test scripts according to the path in the DAG diagram. The cost of script maintenance is considered, and the parameterization of test script is realized. Finally, the test scripts and test cases are uploaded to Hadoop's HDFS file system. Combined with MapReduce programming model, the map function and reduce function are designed for the modified test script, in which the automatic test tool statement is added, the test is executed automatically, and the execution of the test result. MapReduce needs weight Scheduler to control the execution of the test result. The algorithm schedules test tasks according to Hadoop cloud platform state. The cloud test task management platform was built on Hadoop with selenium, and the whole platform was tested on the campus website. The experimental results show that the algorithm is efficient and the scheduling strategy is effective. Compared with single machine, the test time is saved and the test speed is accelerated under the cloud platform.
【學位授予單位】:長春工業(yè)大學
【學位級別】:碩士
【學位授予年份】:2017
【分類號】:TP311.53

【相似文獻】

相關(guān)期刊論文 前10條

1 趙斌飛;劉磊;;測試腳本自動生成器的設(shè)計與實現(xiàn)[J];計算機科學;2008年06期

2 王莉;殷鋒;李奇;;軟件自動化測試腳本設(shè)計研究[J];西南民族大學學報(自然科學版);2006年02期

3 萬琳;廖飛雄;;一種分層結(jié)構(gòu)測試腳本技術(shù)[J];計算機系統(tǒng)應用;2011年07期

4 蔣云;趙佳寶;;自動化測試腳本自動生成技術(shù)的研究[J];計算機技術(shù)與發(fā)展;2007年07期

5 喻鋼;徐中偉;杜軍威;;場景—事件驅(qū)動的安全苛求軟件系統(tǒng)仿真測試腳本語言研究[J];計算機應用;2010年02期

6 吳立松;楊根興;蔡立志;;基于構(gòu)件的測試腳本復用技術(shù)研究[J];計算機應用研究;2009年04期

7 殷永峰,劉斌,陸民燕;實時嵌入式軟件測試腳本技術(shù)研究[J];計算機工程;2003年01期

8 祁琳瑩;洪玫;馮麗云;周寧;文婷婷;;一種針對單元測試框架的測試腳本重用方法[J];計算機應用研究;2013年06期

9 黃盛;基于SAP項目的自動化測試腳本開發(fā)技術(shù)研究[J];計算機工程;2004年S1期

10 馬慶利;王瀾;;自動生成XML測試腳本的類測試[J];信息技術(shù);2006年11期

相關(guān)會議論文 前2條

1 程菲;汪玲;;基于三次握手的網(wǎng)絡(luò)自動化測試腳本的設(shè)計與實現(xiàn)[A];2011年通信與信息技術(shù)新進展——第八屆中國通信學會學術(shù)年會論文集[C];2011年

2 李秀華;葉新銘;王玉龍;;WTML:基于XML的Web應用測試腳本語言[A];第二十二屆中國數(shù)據(jù)庫學術(shù)會議論文集(技術(shù)報告篇)[C];2005年

相關(guān)重要報紙文章 前2條

1 中國建設(shè)銀行信息技術(shù)部 肖魯川;對比測試腳本制作技術(shù)[N];計算機世界;2004年

2 金力;速度之爭[N];中國電腦教育報;2004年

相關(guān)碩士學位論文 前10條

1 張海攀;基于需求追蹤的Web應用測試腳本修復和版本控制技術(shù)研究[D];復旦大學;2014年

2 李建健;基于TestNG的自動化測試腳本的設(shè)計與研究[D];西安工業(yè)大學;2014年

3 鐘珀辰;面向Web軟件的分布式壓力測試工具的設(shè)計與實現(xiàn)[D];國防科學技術(shù)大學;2013年

4 雷蕾;基于OSGi的自動測試平臺的設(shè)計與實現(xiàn)[D];西安電子科技大學;2015年

5 王榮麗;基于云平臺的測試任務(wù)調(diào)度策略的研究[D];長春工業(yè)大學;2017年

6 桑會蘭;自動化軟件測試腳本管理工具研究和實現(xiàn)[D];上海交通大學;2012年

7 王雪;基于逆向工程的測試腳本轉(zhuǎn)換框架的研究與實現(xiàn)[D];北京交通大學;2009年

8 張盈謙;本體知識庫在軟件測試腳本自動生成中的應用[D];大連理工大學;2006年

9 高則寶;人類知識輔助的GUI測試腳本修復技術(shù)[D];南京大學;2013年

10 李小U,

本文編號:2050364


資料下載
論文發(fā)表

本文鏈接:http://sikaile.net/kejilunwen/ruanjiangongchenglunwen/2050364.html


Copyright(c)文論論文網(wǎng)All Rights Reserved | 網(wǎng)站地圖 |

版權(quán)申明:資料由用戶083b4***提供,本站僅收錄摘要或目錄,作者需要刪除請E-mail郵箱bigeng88@qq.com