摘要
自动化测试技术通过测试脚本使测试人员无需重复耗时乏味的手工黑盒测试。然而随着软件界面的演化,通常会导致基于界面元素的测试脚本失效,测试人员不得不手工检测和修复失效的脚本。提出一种基于需求追踪的测试脚本修复方法,辅助追踪界面元素的演化的影响范围。分析Web应用中常见的容易导致测试脚本失效的界面元素演化类型,针对每种类型给出在模型框架下QTP软件测试脚本修复规则。在此基础上,开发了一个自动修复失效脚本工具,通过一个案例,展示了该方法的可行性。
Thanks to the technique of automated testing,test engineers can be free from time-consuming,repetitive manual test by writing automation test scripts. However,when the UI of GUI-based applications or Web applications evolved,the test engineers have to check and repair the failing test scripts which interact with applications by performing actions on their UI element. In this paper,we propose a requirement traceability-based test script repair method which helps to trace the influence scope of the evolution of UI elements. We analyse the common types of UI evolution in Web applications that are prone to cause test script failure,meanwhile we propose the QTP software test script repair rules for each type under the model framework. Based on that we develop an automatic repair tool for failing scripts,and conduct a case study to demonstrate the feasibility of our approach.
出处
《计算机应用与软件》
CSCD
2015年第8期11-16,51,共7页
Computer Applications and Software
基金
国家高技术研究发展计划项目(2012AA011202)
关键词
自动化测试
界面演化
需求追踪性
测试脚本修复
Automated testing UI evolution Requirement traceability Test script repair