圖形使用者介面(Graphical User Interface,簡稱GUI)已被廣泛的使用在各種應用軟體中,但是對於GUI的測試而言,一般測試腳本(Test Script)並沒有針對連續執行的事件作組織與結構,以致於測試腳本有著不易重複使用、不易閱讀與不易維護的缺點。因此,本論文提出了一個以巨集為基礎的GUI測試規格語言,用來有效的組織元件與事件所構成的GUI測試腳本,以提高對於設計、閱讀或維護GUI測試腳本的容易度。我們實作出具有編輯GUI測試規格語言能力的GUI測試工具GTT3。GTT3測試工具以巨集(Macro)作為組織測試腳本的核心,搭配測試先行的開發方式,並整合錄影播放的功能,讓測試者不需以手工撰寫GUI測試所需的程式碼,使得GUI測試趨向於容易重複使用、容易閱讀與容易開發的目標。
GUI (Graphical User Interface) has been extensively applied to application software. However, for the software testing of GUI, test scripts are generally not organized to encapsulate the structure of the sequence of events. Therefore, GUI test scripts become difficult to read, reuse, and maintain. In this thesis, we propose a GUI test specification language based on macro components. The language is used to organize and encapsulate GUI test scripts composed of components and events. Thus, the readability, reusability, and maintainability of the GUI test scripts are improved. We implement an editor for designing GUI test scripts based on our GUI test specification language on a GUI Testing Tool called GTT3. GTT3 applies the concept of macro components as the core of organizing GUI test scripts. It is test-driven development enabled and integrates the functionality of capture and replay. With the use of GTT3, testers do not need to write test scripts by hand, making GUI testing a lot easier.