基于導(dǎo)航模型的Web應(yīng)用測試方法研究
發(fā)布時間:2018-03-30 12:57
本文選題:Web應(yīng)用測試 切入點(diǎn):導(dǎo)航模型 出處:《華中科技大學(xué)》2016年碩士論文
【摘要】:Web應(yīng)用測試是保障Web應(yīng)用質(zhì)量一種非常有效的手段,對提高Web應(yīng)用的可靠性與安全性至關(guān)重要。由于Web應(yīng)用的一些不同于傳統(tǒng)軟件的特點(diǎn),例如動態(tài)性,分布式,多樣性等,給Web應(yīng)用的測試帶來了極大的挑戰(zhàn)。因此,需要對傳統(tǒng)軟件測試方法進(jìn)行改善或者研究新的適合Web應(yīng)用的測試方法;谀P偷腤eb應(yīng)用測試技術(shù)是一種針對Web應(yīng)用測試的新途徑與方法。通過對Web應(yīng)用的結(jié)構(gòu)與行為進(jìn)行分析,構(gòu)建出對應(yīng)的模型,然后利用該模型生成測試用例,從而實(shí)現(xiàn)Web應(yīng)用測試的自動化;趯(dǎo)航模型的Web應(yīng)用測試方法主要分為導(dǎo)航模型的構(gòu)建和測試用例生成這兩個部分。首先通過對Web應(yīng)用進(jìn)行自動的信息提取,得到Web頁面中的表單與鏈接等元素,并分析出各個Web頁面之間的導(dǎo)航關(guān)系,然后利用得到的Web站點(diǎn)結(jié)構(gòu)信息來構(gòu)建Web應(yīng)用的導(dǎo)航模型,同時提出了等價類URL劃分的方法來解決導(dǎo)航模型中的狀態(tài)空間爆炸問題。接著為了使后續(xù)Web應(yīng)用的測試更加自動化,將構(gòu)建好的導(dǎo)航模型轉(zhuǎn)換成FSM模型,這個過程保證了狀態(tài)與遷移的不變性。然后利用狀態(tài)遷移法將FSM模型構(gòu)造成一棵狀態(tài)遷移樹,同時利用樹中狀態(tài)節(jié)點(diǎn)是否與用戶存在輸入交互這一特性來對狀態(tài)遷移樹進(jìn)行約簡,最后通過遍歷約簡后的狀態(tài)遷移樹獲得所需要的測試用例。實(shí)驗(yàn)結(jié)果表明,基于導(dǎo)航模型的Web應(yīng)用測試方法在實(shí)際應(yīng)用中可以有效約簡導(dǎo)航模型的狀態(tài)空間數(shù)量,同時生成的測試用例冗余程度更低,能有效減少Web應(yīng)用的測試成本,實(shí)現(xiàn)了預(yù)期的研究目標(biāo)。
[Abstract]:Web application testing is a very effective means to guarantee the quality of Web applications, and it is very important to improve the reliability and security of Web applications. Because of the characteristics of Web applications that are different from traditional software, such as dynamic, distributed, diversity, etc. Testing of Web applications presents a great challenge. Therefore, It is necessary to improve the traditional software testing methods or to study new testing methods suitable for Web applications. The model-based Web application testing technology is a new approach and method for Web application testing. Structure and behavior are analyzed, Build the corresponding model, and then use the model to generate test cases, The Web application test method based on navigation model is mainly divided into two parts: navigation model construction and test case generation. Firstly, the information of Web application is extracted automatically. The form and link elements in the Web page are obtained, and the navigation relationship between each Web page is analyzed, and then the navigation model of the Web application is constructed by using the Web site structure information. At the same time, an equivalent class of URL partition method is proposed to solve the problem of state space explosion in navigation model. Then, in order to automate the test of subsequent Web application, the constructed navigation model is transformed into FSM model. This process ensures the invariance of state and migration. Then the FSM model is constructed into a state transition tree by using the state migration method. At the same time, the feature of whether the state node in the tree interacts with the user is used to reduce the state transfer tree. Finally, the test cases are obtained by traversing the reduced state transfer tree. The experimental results show that, The Web application testing method based on navigation model can effectively reduce the number of state space of navigation model in practical application, at the same time, the redundancy of test cases generated is lower, and the test cost of Web application can be reduced effectively. The expected research goal is achieved.
【學(xué)位授予單位】:華中科技大學(xué)
【學(xué)位級別】:碩士
【學(xué)位授予年份】:2016
【分類號】:TP311.53;TP393.09
【參考文獻(xiàn)】
相關(guān)期刊論文 前4條
1 肖毅;張林;聶笑一;;基于WEB挖掘的網(wǎng)絡(luò)爬蟲設(shè)計與實(shí)現(xiàn)[J];計算機(jī)系統(tǒng)應(yīng)用;2013年09期
2 陳亞龍;江國華;;基于FSM的Web應(yīng)用測試用例生成研究[J];電子科技;2013年04期
3 繆淮扣;陳圣波;曾紅衛(wèi);;基于模型的Web應(yīng)用測試[J];計算機(jī)學(xué)報;2011年06期
4 錢忠勝;繆淮扣;陳圣波;;基于ORD和FSM的Web應(yīng)用的建模與測試[J];計算機(jī)科學(xué);2008年09期
相關(guān)博士學(xué)位論文 前1條
1 劉攀;基于FSM的測試用例生成和測試優(yōu)化[D];上海大學(xué);2011年
相關(guān)碩士學(xué)位論文 前2條
1 肖征;基于網(wǎng)絡(luò)爬蟲的網(wǎng)絡(luò)漏洞掃描檢測系統(tǒng)的設(shè)計與實(shí)現(xiàn)[D];吉林大學(xué);2014年
2 馬志媛;基于UML/FSM模型的Web應(yīng)用測試用例生成[D];西安電子科技大學(xué);2013年
,本文編號:1686003
本文鏈接:http://sikaile.net/kejilunwen/ruanjiangongchenglunwen/1686003.html
最近更新
教材專著