一句话:提出基于测试扩展的 GUI 测试修复方法,利用特征覆盖搜索相似功能路径以修复失效事件,成功率 79.63%。
GUI 测试脚本在软件版本更新后常因事件失效而需要修复,以保证测试可靠性。该文从交互设计视角出发,利用设计者为同一功能入口提供多条可达路径这一特点,提出一种新的测试修复方法:先通过测试扩展算法搜索与被测脚本特征相似的替代事件分支,再使用序列转换概率计算更新版本中映射事件路径的特征覆盖度,从而在修复过程中尽可能接近测试目标点并引导修复。作者在多个流行应用上开展实验,修复成功率达到 79.63%,显著优于现有方法,表明测试扩展在优化测试修复方面具有很大潜力。
GUI test repair is important to detect and repair obsolete test events to enhance the reliability of the software. From an interaction design perspective, designers usually design different routes to facilitate users to reach the same functional entry point. Based on this, we propose a novel test repair method to find paths with similar functions based on the feature coverage, to get as close as possible to the test target point during the repairing process, and to improve the effectiveness of the test fixing. A test extension algorithm is proposed to search for alternative event branches with similar features to the test script. Then, the sequence transduction probability is used to calculate the feature coverage of the mapping event paths in the updated version and guide the repair. Experiments conducted on popular applications demonstrate that the method can achieve a success rate of 79.63% in repairing tests, which significantly outperforms current approaches. The test-extension approach displays immense potential for optimizing test repairs.CCS CONCEPTS• Software and its engineering → Software testing and debugging.