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

Android關鍵字驅動測試函式庫與工具之設計與開發

Design and Development of an Android Keyword-Driven Test Library and Tool

指導教授 : 劉建宏

摘要


隨著Android裝置廣受歡迎,近年來Android應用程式數量急速增加,自動化測試Android應用程式也日益的受到重視,然而現今多數Android自動化測試工具仍需具有程式開發背景的使用者去撰寫或維護低階測試腳本,因此使用這些測試工具仍有相當高的學習門檻,為了讓Android應用程式的測試案例更容易開發與維護,本論文將關鍵字驅動測試的概念延伸至Android應用程式,定義一套適用於Android應用程式測試的關鍵字,研發一個Android關鍵字驅動(Keyword-Driven)之測試函式庫及對應的測試工具─RobotDroid。在測試函式庫方面,我們除了實作跟Android GUI操作相關的關鍵字外,亦設計許多與感測器行為,如GPS等,有關的關鍵字。在測試工具方面,RobotDroid可以讓使用者採取表格方式利用關鍵字來撰寫測試案例,並允許使用者從既有的關鍵字組合自訂關鍵字,以支援測試案例的模組化。此外,RobotDroid亦具備資料驅動(Data-Driven)測試之功能,允許一個測試案例可以執行多個不同的測試資料。透過本論文發展的關鍵字驅動測試函式庫與工具,撰寫Android應用程式測試案例的負擔可以減輕,同時也能提升測試案例的可維護性與再利用性。

並列摘要


With Android devices become widespread, the number of Android applications has grown rapidly in recent years. Consequently, how to automate the testing of Android applications has increasingly drawn attention. However, most of Android testing tools require users to programming skills for developing or maintaining low-level test scripts and, hence, have a steep learning curve. In order to ease the development and maintenance of Android test scripts, this thesis adapts the concept of keyword-driven testing into the context of Android applications. Particularly, we define a set of keywords specific to Android application testing and develop an Android test library and a corresponding testing tool – RobotDroid. In the test library, we implement various keywords to support the user actions related to Android GUI manipulations as well as several sensor behaviors, such as GPS. In the testing tool, RobotDroid enables users to create test cases with keywords using a simple tabular format. It also allows users to define higher-level keywords from existing keywords for supporting test case modularization. Moreover, RobotDroid supports data-driven testing which allows a test case to be executed with different test data. With the proposed Android test library and tool, the efforts to write test cases for Android applications can be greatly reduced. Moreover, the maintainability and reusability of the test cases can also be improved.

並列關鍵字

Android Keyword-Driven Testing Data-Driven Testing GPS Sensor

參考文獻


[10] 郭柏廷,Android應用程式之GUI自動化測試方法,碩士論文,國立臺北科技大學資訊工程研究所,台北,2013。
[14] Reinhard Hametner, Dietmar Winkler, and Alois Zoitl, “Agile Testing Concepts Based on Keyword-driven Testing for Industrial Automation Systems,” In Proceedings of the 38th Annual Conference on IEEE Industrial Electronics Society (IECON), 2012, pp. 3727-3732.
[1] Android, http://developer.android.com/index.html
[2] UIAutomator, http://developer.android.com/tools/help/uiautomator/index.html
[3] Robotium, https://code.google.com/p/robotium/

延伸閱讀