應用模板匹配於物聯網自動化測試之研究
顯示簡易詮釋資料 統計資料| 欄位 | 內容 | 語言 |
|---|---|---|
dc.contributor.advisor |
孫春在 | |
dc.contributor.advisor |
Sun, Chuen-Tsai | |
dc.contributor.author |
林辰穎 | |
dc.contributor.author |
Lin, Chen-Ying | |
dc.contributor.college |
資訊學院 | |
dc.contributor.committee |
袁賢銘 | |
dc.contributor.committee |
胡毓志 | |
dc.contributor.committee |
Yuan, Shyan-Ming | |
dc.contributor.committee |
Hu, Yuh-Jyh | |
dc.contributor.department |
資訊學院資訊學程 | |
dc.contributor.studentid |
0356813 | |
dc.date.NCLavailable |
2021/06/21 | |
dc.date.USTavailable |
2021/06/21 | |
dc.date.issued |
2016 | |
dc.date.issuedROC |
105 | |
dc.date.paperavailable |
立即公開 | |
dc.date.schoolyear |
104 | |
dc.description.abstract |
由於物聯網的時代來臨,許多物聯網產品如雨後春筍般的出現。再加上市面競爭激烈,產品開發週期變短,自動化測試便成為一個可以輔助測試人員測試產品的好工具。然而不同於以往直接從電腦圖形介面或是命令列下指令,有許多物聯網產品已經改從手機 APP 控制。目前雖然已經有許多研究 APP 自動化測試的論文,若需要提升整體自動化測試涵蓋率,仍需整合 APP 和物聯網裝置行為的測試案例。而目前市面上手機的鏡頭技術已經十分發達,若是可以結合模板匹配和 APP 自動化測試。則可以進一步經由“看”的方法統整物聯網裝置的測試案例,使自動化測試的涵蓋率可以增加。因此本研究在自動化測試上使用 Appium 框架控制手機達到控制 APP 及使用手機取得影像,並以模板匹配方法判斷裝置行為是否正確。 本研究將以兩個市面上產品為例進行數個實驗。首先以雲端智慧插座為例。模擬當 APP 顯示插座有通電但是事實上卻沒通電的測試案例。接下來計算可提升多少涵蓋率。再以雲端智慧攝影機為例,判斷是否雲端智慧攝影機畫面是否有持續錄影。藉由本例子,本論文將會使用此研究討論具備適當的模板影像以及目標影像,可將模板匹配應用在物聯網自動化測試上,並進行長時間測試。最後和 SIFT 進行比較,可證明模板匹配較適用於物聯網自動化測試上。 | |
dc.description.abstract |
There will be a growing number of IoT products nowadays that causes fiercely competitive market cutting product development time. Thus, automation test plays an important role to help QA engineers to do their test more efficiently. Today, many IoT products can monitor and control devices from smartphone app that is quite different from CLI (Command Line Interface) and GUI (Graphic User Interface) being used before. Smartphone-app control also comes along with a lot of app automation test researches. Therefore, I integrated Template matching technique with app automation test to test IoT devices by seeing. This method lets test coverage to increase. From this research, I used Appium controlling app and the phone to get the image and then do image matching to verify behavior of the devices. The experiments are conducted by two products- smart plug and home camera. One example of the former is that when app shows the plug is turned on, but actually is not. The test can calculate the coverage by this case. Another example of the latter, the home camera, is to check if the screen keeps on video recording. The goal of this research is to observe good template image and target image applying template matching to IoT automation test for a long period of time. And then to compare template matching with SIFT in order to prove that template matching is more suitable for IoT automation test. | |
dc.description.abstractopendate |
||
dc.description.degree |
碩士 | |
dc.description.tableofcontents |
中文提要.....................................i英文提要.....................................ii誌謝.........................................iii目錄.........................................iv表目錄.......................................vi圖目錄.......................................vii一、緒論.....................................11.1 研究動機.................................11.2 研究背景.................................61.2.1 目前 APP 測試狀況.......................61.2.2 目前模板匹配應用於辨識物體狀況...........71.3 研究目標.................................81.4 論文重要性...............................8二、目前相關背景技術介紹......................102.1 Android 作業系統........................102.2 ADB......................................122.3 Appium ..................................132.4 模板匹配..................................162.5 Open CV .................................182.6 推播機制 MQTT ............................20三、研究方法..................................223.1 研究架構..................................223.2 找出只測試 APP 介面系統所找不到的錯誤.......243.2.1 只測試 APP 自動化測試程式流程............243.2.2 APP 搭配模板匹配自動化測試流程...........263.3 提升自動化測試涵蓋率.......................283.3.1 分析測試涵蓋率...........................283.3.2 自動化程式測試流程........................313.4 使用於不只一種物聯網產品以及長時間測試........333.4.1 測試流程與案例說明........................333.4.2 測試步驟.................................333.5 模板匹配和 SIFT 比較 .......................353.5.1 測試案例流程..............................353.5.2 測試案例分析..............................353.6 使用影像資料................................353.7 物聯網裝置行為偵測以及分析...................36四、整合測試程式實作與分析.......................394.1 找出只測試 APP 介面系統所找不到的錯誤 ........394.2 提升自動化測試涵蓋率.........................414.3 使用於不只一種物聯網產品以及長時間測試.........424.3.1 推廣到其他產品.............................434.3.2 長時間測試.................................434.4 模板匹配和 SIFT 比較 ........................45五、結論.........................................49參考文獻.........................................51 | |
dc.identifier.citation |
[1] O. Mazhelis and P. Tyrvainen, "A framework for evaluating Internet-of-Things platforms: Application provider viewpoint," in Internet of Things (WF-IoT),2014 IEEE World Forum on, 2014, pp. 147-152.[2] 朱秀峰, "车牌字符识别算法研究与实现," 华中科技大学, 2012.[3] S. K. Sahani, G. Adhikari, and B. Das, "A fast template matching algorithm for aerial object tracking," in Image Information Processing (ICIIP), 2011 International Conference on, 2011, pp. 1-6.[4] D. Amalfitano, A. R. Fasolino, P. Tramontana, S. De Carmine, and A. M.Memon, "Using GUI ripping for automated testing of Android applications," in Proceedings of the 27th IEEE/ACM International Conference on AutomatedSoftware Engineering, 2012, pp. 258-261.[5] M.-E. Hsu, "Android 錯誤特徵抽取查詢庫," 臺灣大學電子工程學研究所學位論文, pp. 1-58, 2015.[6] 張學斌, "一個改善 Android 行動裝置 GUI 自動化測試效率的輔助工具,"臺北科技大學資訊工程系研究所學位論文, pp. 1-32, 2014.[7] 李蕙君, "Android 應用程式自動化測試研究," 臺灣大學資訊工程學研究所學位論文, pp. 1-51, 2012.[8] G. Shah, P. Shah, and R. Muchhala, "Software testing automation using appium," ed: IJCET, 2014.[9] 陳智勇 and 周志成, "基於兩階段模板匹配演算法的圖形識別," 2011.[10] I. Pham, R. Jalovecky, and M. Polasek, "Using template matching for object recognition in infrared video sequences," in Digital Avionics Systems Conference (DASC), 2015 IEEE/AIAA 34th, 2015, pp. 8C5-1-8C5-9.[11] 陳奕昇, "發展適用於醫療環境 Android 應用程式之系統架構及設計探討," 2013.[12] 王裴立, "Linux 作業系統統一化硬體抽象層之設計與實作," 2015.[13] M. Marengoni and D. Stringhini, "High level computer vision using OpenCV," in Graphics, Patterns and Images Tutorials (SIBGRAPI-T), 2011 24th SIBGRAPIConference on, 2011, pp. 11-24.[14] T. Mahalakshmi, R. Muthaiah, and P. Swaminathan, "Review article: an overview of template matching technique in image processing," ResearchJournal of Applied Sciences, Engineering and Technology, vol. 4, pp. 5469-5473, 2012.[15] OpenCV 程式設計參考手冊: 松崗資產管理, 2015.[16] 陳彥廷, "以 OpenCV 為基礎之對弈遊戲機器人設計," 中原大學電機工程研究所學位論文, pp. 1-71, 2015.[17] 王豐勝, 林韋成, and 黃彥文, "針對軟體測試利用自動化方法進行測試個案涵蓋率之實證與評估," 品質月刊, vol. 48, pp. 34-39, 2012. | |
dc.identifier.uri |
https://hdl.handle.net/20.500.14371/62529 | |
dc.language.iso |
中文 | |
dc.relation.alma |
990055499240206772 | |
dc.relation.page |
52 | |
dc.subject.keyword |
自動化測試系統 | |
dc.subject.keyword |
自動化測試 | |
dc.subject.keyword |
模板匹配 | |
dc.subject.keyword |
automation test system | |
dc.subject.keyword |
template match | |
dc.subject.keyword |
app automation test | |
dc.title |
應用模板匹配於物聯網自動化測試之研究 | zh-TW |
dc.title |
Template matching Applied to IOT automation test | en |
dc.type |
Thesis | zh-TW |
檔案
- 01.pdf (3.26 MB, Adobe PDF)
所屬典藏: 資訊學院碩士在職專班