作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2020, Vol. 46 ›› Issue (3): 198-205,213. doi: 10.19678/j.issn.1000-3428.0054162

• 体系结构与软件技术 • 上一篇    下一篇

基于样本程序的自动化测试工具

王津1, 左春1,2, 张正1   

  1. 1. 中科软科技股份有限公司, 北京 100190;
    2. 中国科学院软件研究所, 北京 100190
  • 收稿日期:2019-03-08 修回日期:2019-05-06 发布日期:2019-06-03
  • 作者简介:王津(1982-),男,硕士,主研方向为软件测试、行业应用软件分析;左春,研究员;张正,博士。
  • 基金资助:
    "核高基"重大专项(软件类)"基于国产基础软件的重大应用平台与集成环境"(2010zx01045-001-006);2015年中关村国家自主创新示范区现代服务业试点专项资金"互联网保险云服务系统"。

Automated Testing Tool Based on Sample Program

WANG Jin1, ZUO Chun1,2, ZHANG Zheng1   

  1. 1. Sinosoft Co., Ltd, Beijing 100190, China;
    2. Institute of Software, China Academy of Sciences, Beijing 100190, China
  • Received:2019-03-08 Revised:2019-05-06 Published:2019-06-03

摘要: 为提升基于样本程序的行业软件质量,在分析样本程序内容和领域数据的基础上,提出一种自动化测试工具。通过分析样本程序中规范化的骨架注释,利用规则库提取出自动化测试所需的元素定位参数和业务流程标识,并从领域数据中抽取出业务数据。在此基础上,应用代码引擎自动生成测试脚本。实验结果表明,该测试工具可快速测试和修改基于样本程序的行业软件的业务流程,与通用的QTP测试工具相比,其测试效率和脚本正确率较高。

关键词: 自动化测试, 样本程序, 规则库, 领域数据, 脚本数据自动生成

Abstract: 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.

Key words: automated testing, sample program, rule base, domain data, automatic generation of script data

中图分类号: