在圖形使用者介面(Graphical User Interface,簡稱GUI)的測試中,使用狀態圖(Statechart)建立軟體操作的動態行為模型,再利用模型自動轉換為測試案例,是一種很常見的測試方式。然而,目前市面上雖然有許多狀態圖的編輯工具,但是,都無法完整地支援Harel 狀態圖的特性,也無法支援自動測試案例的產生。本論文提出一個視覺化的Harel狀態圖編輯工具,支援狀態圖的And Decomposition,並增加Composition及Inheritance的用法,藉以簡化繪製狀態圖的複雜度,並能自動產生測試案例。
When GUI (Graphical User Interface) testing is conducted, it is common to use a Statechart to model the dynamic behavior of the software application, and then generate test cases based on this model. However, none of the Statechart editing tools available in the market can fully support the capability of Harel Statechart, nor can they support automatic test case generation. This thesis proposes a visual Harel Statechart editor, which supports And Decomposition and allows the use of composition and inheritance to reduce the complexity of building a complicated Statechart. In addition, once a Statechart is drawn, test cases can be automatically generated.