在圖形使用者介面 (Graphical User Interface,簡稱GUI)的測試中,最常被使用的測試方法為編輯測試腳本,測試腳本可以透過直接編輯或錄影的方式產生。通常Code Coverage是進行測試時常用來了解測試品質的方法,然而對GUI測試而言,單獨考慮Code Coverage是不夠的,測試人員必須知道軟體的各種GUI操作的覆蓋情形(稱為Interaction Coverage),才能充分的測試GUI的各種互動行為。本論文提出一套GUI測試的互動覆蓋率分析工具,主要有下列功能: (1) 提供覆蓋率分析的結果;(2) 提供改善覆蓋率方法的建議;(3) 與FSM及測試案例的編輯工具做結合,讓測試人員能編輯FSM及測試案例的內容。
In the testing of Graphical User Interface (GUI), editing test script is the most frequently used methodology. A test script can be produced either by direct editing or by capturing user interactions. In general, when testing is conducted, Code Coverage is a standard way of measuring the quality of testing. However, for GUI testing, considering only Code Coverage is insufficient. A tester needs to know the coverage of all kinds of GUI operations (called Interaction Coverage) in order to provide an adequate testing. This thesis proposes a GUI testing tool which analyzes interaction coverage. The tool has three major functions: (1) provides the analysis results of interaction coverage, (2) offers suggestions that can improve interaction coverage, and (3) integrates the test script editor and the FSM editor so that a tester can edit both the contents of FSM and test script simultaneously.