摘要
为提升基于样本程序的行业软件质量,在分析样本程序内容和领域数据的基础上,提出一种自动化测试工具。通过分析样本程序中规范化的骨架注释,利用规则库提取出自动化测试所需的元素定位参数和业务流程标识,并从领域数据中抽取出业务数据。在此基础上,应用代码引擎自动生成测试脚本。实验结果表明,该测试工具可快速测试和修改基于样本程序的行业软件的业务流程,与通用的QTP测试工具相比,其测试效率和脚本正确率较高。
In order to improve the quality of industry software on the basis of sample programs,this paper proposes an automated testing tool based on the analysis of sample program content and domain data.By analyzing the standardized skeleton comments in sample programs,the rule base is used to extract the element positioning parameters and business process identifiers needed for automated testing,so as to extract business data from domain data.On this basis,the code engine is used to automatically generate a test script.Experimental results show that the test tool can quickly test and modify the business procedure of industry software based on sample programs,outperforming the frequently used QTP test tool in terms of the test efficiency and the script accuracy.
作者
王津
左春
张正
WANG Jin;ZUO Chun;ZHANG Zheng(Sinosoft Co.,Ltd,Beijing 100190,China;Institute of Software,China Academy of Sciences,Beijing 100190,China)
出处
《计算机工程》
CAS
CSCD
北大核心
2020年第3期198-205,213,共9页
Computer Engineering
关键词
自动化测试
样本程序
规则库
领域数据
脚本数据自动生成
automated testing
sample program
rule base
domain data
automatic generation of script data