摘要
为解决由于新版本GUI页面结构及内容变化引起的原有测试脚本集在回归测试时发生执行错误的问题,提出一种自动修复失效测试脚本的方法。利用QTP录制旧版本应用程序的测试脚本集,将每个测试映射为事件执行序列,遍历与此测试相关的新版本应用的事件流图(EFG),修复原有脚本的事件序列,进一步将此序列转化为测试脚本,并运用于测试新版本应用。实验结果表明,该方法对修复失效测试脚本是可行有效的。
To solve the execution error in the old set of test scripts caused by the changes in the structure and content of the new GUI application page,an automatic repair method of the disabled test scripts was developed.The test scripts of the older version of the GUI application were recorded using QTP,and each test was mapped to the event execution sequence,which travelled through the event-flow graph(EFG)associated with this test in the new version of the GUI application to repair the execution sequence in old test,and the sequences were mapped to test scripts.The repaired test scripts were applied in the new version of GUI application.The results indicate that the proposed method is feasible and effective in repairing disable test scripts.
出处
《计算机工程与设计》
北大核心
2017年第10期2691-2696,共6页
Computer Engineering and Design
基金
陕西省自然科学基金项目(2015JM6359)
陕西省工业公关基金项目(2016GY-089)