###
计算机系统应用英文版:2023,32(6):91-98
本文二维码信息
码上扫一扫!
支持用例集并行测试的接口测试平台
(青海大学 计算机技术与应用系, 西宁 810016)
Interface Test Platform Supporting Parallel Testing of Test Case Sets
(Department of Computer Technology and Applications, Qinghai University, Xining 810016, China)
摘要
图/表
参考文献
相似文献
本文已被:浏览 548次   下载 1647
Received:July 19, 2022    Revised:August 15, 2022
中文摘要: 针对手工测试成本高、时效性弱和传统的接口自动化测试工具扩展能力不足问题, 提出了一个支持用例集并行测试的接口测试平台(OLa). OLa采用分层架构模式将系统分为用户展示层、应用逻辑层、数据服务层和用例执行层. 其中, 用户展示层基于Vue框架开发, 结合Vue Router、Vuex等工具实现单页应用; 应用逻辑层基于Spring Boot框架开发; 数据服务层基于MyBatis-Plus框架和Spring Data框架开发; 用例执行层使用okhttp3、fastjson、jackson等工具实现接口测试. 此外, 基于系统技术架构、Java网络编程和面向抽象编程的思想, 创新性地提出了基于C/S模式的用例执行流程和基于参数识别的自动匹配校验方法, 解决了传统的自动化测试工具无法支持并行测试的问题. 实验结果表明本文设计与实现的OLa接口测试平台支持单用例测试、用例集的串行测试和并行测试, 能够自动识别用例参数并对接口响应内容进行校验, 提高了接口测试的灵活性和有效性, 降低了测试难度, 并能够在用例之间无相互依赖的情况下提高接口测试的效率.
Abstract:Considering the high cost and poor timeliness of manual testing and the insufficient scalability of conventional automatic interface testing tools, an interface test platform (OLa) that supports the parallel testing of test case sets is proposed in this study. OLa is divided into the user presentation layer, application logic layer, data service layer, and test case execution layer according to a layered architecture model. Among them, the user presentation layer is developed on the basis of the Vue framework, which is combined with Vue Router, Vuex, and other tools to realize the single-page application. The application logic layer is realized with the Spring Boot framework, and the data service layer is based on the MyBatis-Plus framework and Spring Data framework. The test case execution layer uses okhttp3, fastjson, Jackson, and other tools to implement interface testing. In addition, according to the ideas of the technical architecture of systems, Java network programming, and abstraction-oriented programming, this study innovatively proposes the test case execution process with the C/S architecture and the automatic matching verification method based on parameter identification, which can solve the problem that some traditional automatic testing tools cannot support parallel testing. The experimental results show that OLa can support test case testing, serial testing, and parallel testing of test case sets and can automatically identify test case parameters and verify the interface response content, which improves the flexibility and effectiveness of interface testing. Moreover, it can reduce the difficulty of interface testing and improve the efficiency of interface testing without interdependence between test cases.
文章编号:     中图分类号:    文献标志码:
基金项目:国家自然科学基金(61762074); 四川省科技厅重点研发项目(2020YFS0575); 青海大学教育教学研究项目(JY202127)
引用文本:
耿嘉祺,李鑫丽,祝小兰.支持用例集并行测试的接口测试平台.计算机系统应用,2023,32(6):91-98
GENG Jia-Qi,LI Xin-Li,ZHU Xiao-Lan.Interface Test Platform Supporting Parallel Testing of Test Case Sets.COMPUTER SYSTEMS APPLICATIONS,2023,32(6):91-98