Fit (Framework for Integrated Test)是以表格為基礎的驗收測試(Acceptance Testing)方法,透過表格的建立和撰寫與表格對應的程式,將表格的測試資料帶入程式當中並將測試結果反應在表格中,以方便驗收測試。 Fit有三種基本的表格:Column Fixture、Row Fixture與Action Fixture,各有不同的測試目的。然而,對於如何使用Fit來進行GUI測試,還沒有深入的研究。本論文探討如何應用Fit表格來進行GUI測試,包括(1)如何使用Column Fixture做為測試GUI的輸入資料和預期結果;(2)如何使用Row Fixture來驗證GUI的狀態;(3)如何使用Action Fixture來表達GUI的測試流程。本論文也實作出一套以Fit表格為基礎的GUI測試工具,讓測試人員可以編輯Fit表格以及設計測試案例,並將表格資料與測試案例做結合,進行自動化的GUI測試。
Fit (Framework for Integrated Test) is an acceptance testing methodology based on tables. It includes three kinds of fixtures: Column Fixture, Row Fixture and Action Fixture. Each one of them has different purposes in testing. However, the use of Fit in GUI testing has not been studied. Therefore, this thesis studies the application of Fit in GUI testing, including: (1) how to use Column Fixture to represent the user’s input and expected output, (2) how to use Row Fixture to assert the state of GUI, and (3) how to use Action Fixture to express the test flow of GUI testing. In addition, this thesis implements a GUI testing tool base on Fit. A tester can edit Fit tables and design test cases in this tool to conduct GUI testing automatically.