透過您的圖書館登入
IP:18.224.202.121
  • 學位論文

使用Activity Diagram撰寫網頁測試腳本系統之設計

Design of Web GUI Testing Script Using Activity Diagram

指導教授 : 留忠賢

摘要


在網際網路的普及下,各種開發網站的架構越來越來多。為了提升網站的可靠性,出現了各種網頁測試工具。其中錄製並播放測試腳本是一種快速、直接的方法,但是錄製卻無法解決過程中需要條件判斷敘述的情形,而且使用者在頁面上的操作有多種可能性,造成錄製的困難與負擔。在本論文中,我們提出測試人員可藉由UML Activity Diagram編輯器繪出測試流程,其流程中的Activity Node可填入導頁、對元素操作、檢查當前頁面(Condition)等資訊,並存成XML格式檔。由我們設計的測試系統,利用Java API的XMLDecoder讀取Activity Diagram資料,並一個Node接一個Node地產生對應測試動作的程式碼,測試碼借助Selenium WebDriver API,對被測網頁進行操作,達成與使用者相同動作的測試。

並列摘要


As Internet applications are getting more popular, many web application frameworks are developed. Various web testing tools are also developed to enhance the reliability of web applications. One rapid and direct method to test web pages is to record test script and then playback. However, recording can not properly handle the huge possibilities of user operations on web pages. In this thesis, we proposed to use a UML Activity Diagram to model the testing process of a web-based application. Activity Node can contain information for web page redirection, operation on web elements, current page condition check and others. The information of the diagram are saved in XML format. Our test system will read the XML file of an Activity Diagram using Java XMLDecoder API to generate the corresponding code for each node. The generated test code will then invoke Selenium WebDriver API to test the web pages.

參考文獻


[2] 洪加璽, "整合Sikuli介面測試與自動化單元測試來測試Rails應用程式", 中原大學資訊工程研究所碩士論文, 2012年7月.
[7] 洪加璽, "整合Sikuli介面測試與自動化單元測試來測試Rails應用程式", 台灣軟體工程研討會, 2012年7月.
[4] Ruby on Rails, Jun 2013. http://rubyonrails.org/.
[13] Masaru Takesue, "A Protection Scheme against the Attacks Deployed by Hiding the Violation of the Same Origin Policy", The Second International Conference on Emerging Security Information, Systems and Technologies, pp. 133-138, Aug 2008.
[15] Nidhika Uppal and Vinay Chopra, "Design and Implementation in Selenium IDE with Web Driver", International Journal of Computer Applications, vol. 46, no. 12, pp. 8-11, May, 2012.

被引用紀錄


楊詠翔(2015)。自動化Web GUI結合JavaScript單元測試:以Activity Diagram為例〔碩士論文,中原大學〕。華藝線上圖書館。https://doi.org/10.6840/cycu201500963
李易安(2014)。使用XML表示法作為自動化產生測試腳本之中介格式〔碩士論文,中原大學〕。華藝線上圖書館。https://doi.org/10.6840/cycu201400803

延伸閱讀