Skip navigation

DSpace JSPUI

DSpace preserves and enables easy and open access to all types of digital content including text, images, moving images, mpegs and data sets

Learn More
DSpace logo
English
中文
  • Browse
    • Communities
      & Collections
    • Publication Year
    • Author
    • Title
    • Subject
    • Advisor
  • Search TDR
  • Rights Q&A
    • My Page
    • Receive email
      updates
    • Edit Profile
  1. NTU Theses and Dissertations Repository
  2. 電機資訊學院
  3. 資訊工程學系
Please use this identifier to cite or link to this item: http://tdr.lib.ntu.edu.tw/jspui/handle/123456789/66067
Full metadata record
???org.dspace.app.webui.jsptag.ItemTag.dcfield???ValueLanguage
dc.contributor.advisor陳文進(Wen-Chin Chen)
dc.contributor.authorHuei-Jyun Lien
dc.contributor.author李蕙君zh_TW
dc.date.accessioned2021-06-17T00:20:42Z-
dc.date.available2012-07-16
dc.date.copyright2012-07-16
dc.date.issued2012
dc.date.submitted2012-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.urihttp://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.abstractAs 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.provenanceMade 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.isozh-TW
dc.subject測試zh_TW
dc.subject單元測試zh_TW
dc.subject連續集成zh_TW
dc.subjectRobotiumen
dc.subjectContinuous Integrationen
dc.subjectSikulien
dc.subjectJUniten
dc.subjectUnit Testen
dc.subjectTestingen
dc.subjectAndroiden
dc.titleAndroid應用程式自動化測試研究zh_TW
dc.titleStudy of Android’s Application Automated Testingen
dc.typeThesis
dc.date.schoolyear100-2
dc.description.degree碩士
dc.contributor.oralexamcommittee陳俊良,宋政隆
dc.subject.keyword測試,單元測試,連續集成,zh_TW
dc.subject.keywordAndroid,Testing,Unit Test,JUnit,Robotium,Sikuli,Continuous Integration,en
dc.relation.page51
dc.rights.note有償授權
dc.date.accepted2012-06-22
dc.contributor.author-college電機資訊學院zh_TW
dc.contributor.author-dept資訊工程學研究所zh_TW
Appears in Collections:資訊工程學系

Files in This Item:
File SizeFormat 
ntu-101-1.pdf
  Restricted Access
1.23 MBAdobe PDF
Show simple item record


Items in DSpace are protected by copyright, with all rights reserved, unless otherwise indicated.

社群連結
聯絡資訊
10617臺北市大安區羅斯福路四段1號
No.1 Sec.4, Roosevelt Rd., Taipei, Taiwan, R.O.C. 106
Tel: (02)33662353
Email: ntuetds@ntu.edu.tw
意見箱
相關連結
館藏目錄
國內圖書館整合查詢 MetaCat
臺大學術典藏 NTU Scholars
臺大圖書館數位典藏館
本站聲明
© NTU Library All Rights Reserved