隨著手機裝置的快速發展,我們的生活逐漸和手機應用程式密不可分。手機應用程式的測試對於我們來說也變得越來越重要和困難。為了減少Monkey測試產生的一些時間耗費,我們設計了一個方法可以結合Monkey測試和腳本測試。在這篇論文,我們會結合XML和影像技術來比較當前的手機畫面和腳本是否符合。如果符合,則我們就執行腳本,如此一來就可以通過一些Monkey測試不能通過的頁面,像是搜尋或登入。我們設計了一個叫做MWIC的工具來提升效率和腳本的重複使用率。在MWIC裡面我們結合XML和影像技術來判斷腳本是否符合手機畫面,而我們的實驗也顯示這個工具可以提升腳本的重複使用度。
With the rapid development of the mobile devices, our life has been gradually related to mobile phones and mobile applications. For such a large number of mobile applications, software testing of Android applications has become more important and difficult than ever. In order to reduce the futile action of Monkey test, we present a method which combines Monkey test and scripts. In this paper, we will use XML and image technology to compare the current screen with the scripts we recorded. If the screen matches any script, we will execute that script. So that the testing can pass some situations, such as searching or log in. We developed a software tool “Monkey With Image Comparison (MWIC)” to increase the efficiency and reusability of test script replay. In MWIC, we combine XML and image technology to evaluate the applicability of a test script to a screen. Our experiment shows that our tool can enhance the precision in reusing test scripts.