首页 | 本学科首页   官方微博 | 高级检索  
     

接口自动化测试框架设计优化与实现
引用本文:孙立哲.接口自动化测试框架设计优化与实现[J].数字社区&智能家居,2021(8).
作者姓名:孙立哲
作者单位:公安部第三研究所
摘    要:随着浏览器技术的迭代更新,文档对象技术在一些主流浏览器版本中不再受支持,前期设计的轻量级接口自动化测试框架中结果统计分析与展示模块因而功能不能正常使用。基于此,本文对前期设计的轻量级接口自动化测试框架做了一定的设计优化,将用于记录测试用例及结果的XML文件结构设计优化为MySQL数据库表结构设计,将测试执行模块写数据入XML文件优化为写数据库表,将结果统计分析与展示模块由前端JS读取XML文件数据优化为后端JSP读取数据库表数据。经验证测试,优化后的测试框架不再受文档对象技术的限制,实用性更佳,能在较主流的几款浏览器中正常使用,是一种有效的技术替代方案。

关 键 词:自动化测试框架  设计优化  动态WEB技术  JSP  MYSQL

Optimization and Implementation of Interface Automation Testing Framework
SUN Li-zhe.Optimization and Implementation of Interface Automation Testing Framework[J].Digital Community & Smart Home,2021(8).
Authors:SUN Li-zhe
Affiliation:(The Third Research Institute of Ministry of Public Security,Shanghai 201204,China)
Abstract:With the iterative update of technology,document object technology is no longer supported in some browsers,thus the function of the statistical analysis and presentation module in the interface automation test framework designed in the early stage is affected.Based on this,this paper made some optimization for the automation test framework,such as with MySQL database table structure design replacing the XML file,with writing data into database table replacing into file,with reading data from database ta?ble by back-end JSP replacing from file by front-end JS.The optimized test framework is no longer limited by browser document object technology and has better usability,could be used in a few more mainstream browsers and is an effective technical alterna?tive.
Keywords:automation test framework  design optimization  dynamical Web technology  JSP  MySQL
本文献已被 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号