接口自动化测试框架设计优化与实现  被引量:3

Optimization and Implementation of Interface Automation Testing Framework

在线阅读下载全文

作  者:孙立哲 SUN Li-zhe(The Third Research Institute of Ministry of Public Security,Shanghai 201204,China)

机构地区:[1]公安部第三研究所,上海201204

出  处:《电脑知识与技术》2021年第8期212-214,共3页Computer Knowledge and Technology

摘  要:随着浏览器技术的迭代更新,文档对象技术在一些主流浏览器版本中不再受支持,前期设计的轻量级接口自动化测试框架中结果统计分析与展示模块因而功能不能正常使用。基于此,本文对前期设计的轻量级接口自动化测试框架做了一定的设计优化,将用于记录测试用例及结果的XML文件结构设计优化为MySQL数据库表结构设计,将测试执行模块写数据入XML文件优化为写数据库表,将结果统计分析与展示模块由前端JS读取XML文件数据优化为后端JSP读取数据库表数据。经验证测试,优化后的测试框架不再受文档对象技术的限制,实用性更佳,能在较主流的几款浏览器中正常使用,是一种有效的技术替代方案。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.

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

分 类 号:TP311[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象