回归测试对修改后的软件重新进行测试,确认修改没有引入新的错误或导致其他代码产生错误。研究图形用户界面(GUI)回归测试脚本的自动化修复技术,采用有限状态机描述GUI的交互行为,并基于有限状态机(FSM)产生测试用例集;使用自动化测试工具生成测试脚本,建立状态迁移和测试脚本的映射关系表;通过比较GUI新旧版本的FSM得到GUI的变化信息,根据变化信息和映射表对原测试脚本自动修复。实例验证了脚本修复方法的可行性和有效性,修复了失效的测试脚本,保证了修复后的测试脚本的完备性和一致性。
Regression testing retests the modified software to confirm that the modifications do not cause new errors or make other code disabled. This paper addressed automated repair techniques of graphical user interface (GUI) regression testing. It used finite state machine (FSM) to descript the GUI interactions and to generate test case suite. It generated test scripts ac- cording to the test case suite by using the automated test tool and established a mapping table which mapped transitions to test scripts. It obtained the changed GUI information by comparing the old and new version FSM models. It repaired the original test scripts according to the changed GUI information and mapping table automatically. It used an example to verify the feasi- bility and effectiveness of the proposed method. It repairs the disabled test scripts and ensures the completeness and consisten- cy.