請用此 Handle URI 來引用此文件:
http://tdr.lib.ntu.edu.tw/jspui/handle/123456789/66067
完整後設資料紀錄
DC 欄位 | 值 | 語言 |
---|---|---|
dc.contributor.advisor | 陳文進(Wen-Chin Chen) | |
dc.contributor.author | Huei-Jyun Li | en |
dc.contributor.author | 李蕙君 | zh_TW |
dc.date.accessioned | 2021-06-17T00:20:42Z | - |
dc.date.available | 2012-07-16 | |
dc.date.copyright | 2012-07-16 | |
dc.date.issued | 2012 | |
dc.date.submitted | 2012-06-21 | |
dc.identifier.citation | [1] Android Developers. http://developer.android.com/index.html
[2] Wiki: Android. http://zh.wikipedia.org/wiki/Android [3] JUnit. http://www.junit.org/ [4] Robotium. http://code.google.com/p/robotium/ [5] Robotium source code. http://github.com/jayway/robotium [6] Sikuli. http://sikuli.org/ [7] Android Screen Cast. http://code.google.com/p/androidscreencast/ [8] Wiki: Template matching. http://en.wikipedia.org/wiki/Template_matching [9] Continuous Integration. http://martinfowler.com/articles/continuousIntegration.html [10] Jenkins. http://jenkins-ci.org/ [11] Git. http://git-scm.com/ [12] Apache Ant. http://ant.apache.org/ [13] Android JUnit report. https://github.com/jsankey/android-junit-report [14] Cucumber. http://cukes.info/ | |
dc.identifier.uri | http://tdr.lib.ntu.edu.tw/jspui/handle/123456789/66067 | - |
dc.description.abstract | 智慧型手機的應用程式需求不斷,也越來越多開發者注入心血在其中。當開發者在撰寫智慧型手機應用程式的過程中,「測試」是很重要且花費時間的一環,因此針對Android平台,如何方便且有效的自動化測試是本篇論文所要研究的目標。目前的測試工具雖然很多但各有優缺,例如使用Android Testing API可以撰寫程式內部的function test,但是卻無法測試目前的畫面是否出現了某張圖;使用Sikuli可以很方便的測試圖形化介面,但是卻無法測試程式內部。為了能夠整合function test與圖形化介面測試,使測試行為增加,也讓測試管理更方便,本論文將實作圖形化介面的測試方法到開放原始碼的 Robotium 測試工具中。 | zh_TW |
dc.description.abstract | As the mobile phones grow more and more popular, the software developers take great efforts to develop a tremendous number of mobile phones' applications recently. Software testing, namely, 'testing whether the software is accurate or complies to the original specifications,' is very important during the software development process. It however consumes too much time and thus drags the whole developing schedule usually. Since Android is one of the most important platforms for mobile devices, how to test automatically the software in a convenient and effective way is very crucial in the Android development and is the main goal of this study. Although there are already many testing tools but each of them has advantages and disadvantages. Most of the existing testing tools, such as Android SDK Testing API, Robotium, and Sikuli, can only carry out either the 'Function Test' or 'GUI (Graphics User Interface) Test,' but not both. This causes inconvenience to the Android software developers during the development. In this thesis, we extend the functions of Robotium so that it can do both the “Function Test” and “GUI Test” in a convenient and compatible way. These extensions will help the Android developers to develop Android software more rapidly. | en |
dc.description.provenance | Made available in DSpace on 2021-06-17T00:20:42Z (GMT). No. of bitstreams: 1 ntu-101-R99922139-1.pdf: 1261130 bytes, checksum: cff6f177a07862fb59cc3efdc5a95a36 (MD5) Previous issue date: 2012 | en |
dc.description.tableofcontents | 誌謝…………………………………………………………………………………..…i
中文摘要…………………………………………………………………………….....ii ABSTRACT………………………………………………………………………..….iii 目錄………………………………………………………………………………..…..iv 圖目錄…………………………………………………………………………...……vii 表目錄…………………………………………………………………………………ix 第一章 序論………………………………………………………………………….1 1.1 研究動機…………………………………………………………………….1 1.2 研究目的…………………………………………………………………….1 1.3 章節介紹…………………………………………………………………….1 第二章 測試介紹…………………………………………………………………….2 2.1 關於 Android App…………………………………………………………..2 2.1.1 Android 簡介……………………………………………………......2 2.1.2 Android Application………………………………………………….2 2.2 什麼是「測試」? ……………………………………………………………4 2.3 JUnit 介紹…………………………………………………………………..5 2.4 測試的重要性………………………………………………………..……...6 2.5 Android SDK內建的測試工具………….………………………………….6 2.6 其他3rd party的測試工具………………………………………………….7 第三章 各種測試工具介紹……………………………………………………….....8 3.1 Android Testing Framework………………………………………………...8 3.1.1 類別簡介……………………………………………………..............8 3.1.2 範例:為 NotePad 新增測試專案…………………………………..9 3.1.3 撰寫測試 NotePadTest……………………………………….....…10 3.1.4 執行測試……………………………………………………............14 3.2 Robotium………………………………………………………..……….....15 3.3 MonkeyRunner………………………………………………………..…...17 3.4 Monkey………………………………………………………..……….......19 3.5 Sikuli………………………………………………………..………...........19 3.6 優缺點比較……………………………………………...............................22 3.6.1 Android Testing API和Robotium………………………………….22 3.6.2 總整理……………………………………………………................25 第四章 擴充 Robotium……………………………………………………............27 4.1 示範程式:TouchImage……………………………………………………27 4.2 函式介紹…………………………………………………….......................28 4.2.1 takeSnapshot……………………………………………………......28 4.2.2 findImageOnScreen………………………………………………...29 4.2.3 fingerZoom……………………………………………………........34 4.3 測試範例:TouchImageTest………………………………………………37 4.3.1 test_01_movePicture………………………………………………..37 4.3.2 test_02_zoomGesture……………………………………………….38 4.3.3 test_03_pasteImage…………………………………………………39 4.3.4 test_04_clearImage…………………………………………………39 4.4 Generate screenshots on failure……………………………………………40 第五章 搭配 CI 達到完全自動化測試…………………………………………...42 5.1 版本控制 - Git…………………………………………………….............42 5.2 連續集成(Continuous Integration, CI)–Jenkins.…………………………..42 5.2.1 Continuous Integration……………………………………………..42 5.2.2 Jenkins……………………………………………………................43 5.2.3 Ant……………………………………………………......................45 5.3 測試報告 - android-junit-report.jar……………………………………….45 5.4 在測試報告中發佈圖檔…………………………………………………...47 第六章 結論……………………………………………………...............................50 REFERENCE……………………………………………………..............................51 | |
dc.language.iso | zh-TW | |
dc.title | Android應用程式自動化測試研究 | zh_TW |
dc.title | Study of Android’s Application Automated Testing | en |
dc.type | Thesis | |
dc.date.schoolyear | 100-2 | |
dc.description.degree | 碩士 | |
dc.contributor.oralexamcommittee | 陳俊良,宋政隆 | |
dc.subject.keyword | 測試,單元測試,連續集成, | zh_TW |
dc.subject.keyword | Android,Testing,Unit Test,JUnit,Robotium,Sikuli,Continuous Integration, | en |
dc.relation.page | 51 | |
dc.rights.note | 有償授權 | |
dc.date.accepted | 2012-06-22 | |
dc.contributor.author-college | 電機資訊學院 | zh_TW |
dc.contributor.author-dept | 資訊工程學研究所 | zh_TW |
顯示於系所單位: | 資訊工程學系 |
文件中的檔案:
檔案 | 大小 | 格式 | |
---|---|---|---|
ntu-101-1.pdf 目前未授權公開取用 | 1.23 MB | Adobe PDF |
系統中的文件,除了特別指名其著作權條款之外,均受到著作權保護,並且保留所有的權利。