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

整合Sikuli介面測試與自動化單元測試來測試Rails應用程式

Combining Sikuli UI Test and Automatic Unit Test Generation for Testing Rails Applications

指導教授 : 留忠賢

摘要


要測試一個Web-based的系統,除了基本的單元測試之外,還需要對畫面及相關功能做測試,但是測試畫面及功能需要手動執行或額外撰寫Script,因此若能整合並自動化介面測試及單元測試,在系統功能測試上將可節省大量人工作業。在本論文中,我們整合了能自動化Rails單元測試的程式Translator,以及開發自動產生部分Sikuli Script的功能來協助測試Rails Web畫面的功能。我們使用了Sikuli這個圖形介面工具,實際進行截圖並擷取其所需的參數,然後在Controller標記##SikuliPage與##SikuliParams註解的方式,來自動產生Sikuli Script,讓使用者執行Translator時,同時產生測試程式內部用的Rails Unit Test與測試畫面用的部分Sikuli Script。

關鍵字

Rails Sikuli 單元測試 Ruby

並列摘要


To test a Web-based system, besides the unit tests, we also need to test the web pages and their related functionalities. But such functional tests usually require manual operations or writing additional test scripts. If we can integrate and automate interface test and unit test, we can save a lot of manual work. In this thesis, we combine a Translator program, which can generate Rails unit tests, with additional modules that can generate parts of Sikuli Script to help test the functionalities of Rails web pages. We use Sikuli to capture actual screenshots and to retrieve the required parameters. By marking ##SikuliPage and ##SikuliParams annotations on controller programs, we can generate Sikuli script automatically. This allow the Translator to generate Rails unit test and part of Sikuli script at the same time.

並列關鍵字

Unit Test Sikuli Rails Ruby

參考文獻


[5] Tom Yeh, Tsung-Hsiang Chang and Robert C. Miller, "Sikuli:Using GUI Screenshots for Search and Automation," UIST’09, October 4-7, 2009, Victoria, British Columbia, Canada.
[7] Ruby on Rails Documentation, May 2012. http://api.rubyonrails.org/.
參考文獻
[1] Michael Furr, Jonghoon David An,Jeffrey S. Foster and Michael Hicks, "Static Type Inference for Ruby," SAC’09 March 8-12, 2009, Honolulu, Hawaii, U.S.A.
[2] RailsGuides, May 2012. http://guides.rubyonrails.org/.

被引用紀錄


李易安(2014)。使用XML表示法作為自動化產生測試腳本之中介格式〔碩士論文,中原大學〕。華藝線上圖書館。https://doi.org/10.6840/cycu201400803
陳佑任(2013)。使用Activity Diagram撰寫網頁測試腳本系統之設計〔碩士論文,中原大學〕。華藝線上圖書館。https://doi.org/10.6840/cycu201301031
尤冠妏(2013)。應用Sahi自動化測試工具來自動化測試BPMN應用系統〔碩士論文,中原大學〕。華藝線上圖書館。https://doi.org/10.6840/cycu201301029

延伸閱讀