在軟體測試中,表單測試是很常見的測試案例,然而以往的作法都是透過軟體測試套件的API一個一個地將表單填寫完成,如何自動化的填寫表單是一個待解決的問題。另外,在測試網頁或行動應用程式的過程中,我們需要判斷畫面的主題,來決定測試流程,如何判斷畫面主題也是一個待解決的問題。 本篇論文中,我們使用資料卡的概念來當作表單填寫的原始資料,透過文件分析找出資料卡與表單欄位的相似度,使用穩定配對演算法找出兩者最適合的配對組合,來解決表單自動填寫的問題。主題判斷方面,我們使用主題模板來當作該主題預期會出現的元件,透過文件分析找出文件中的元素與主題模板中的元件的相似度,使用穩定配對演算法找出最適合的配對組合,以此決定頁面的主題。
In the field of software testing, a form testing is a common test case. The common solution is that a tester calls an API of testing framework to fill the input fields one by one. How to auto-fill a form has become a problem to be solved. Besides, we need to decide the testing procedure by the topic of a screen. As a result, how to identify the topic of a screen needs to be solved. In this thesis, data cards would be used as mock data to fill a form. Through document analysis, the similarity between card data fields and input fields are calculated. A stable matching algorithm is used to find the stable matching to solve the form autofill problem. On the other hand, to complete a topic identification module, a topic card template would be used to store expected element in the topic. Through document analysis, the similarity between topic elements and document features is calculated. Also, a stable matching algorithm is used to find the stable matching to solve the topic identification problem