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

基于通信协议的接口测试用例自动生成框架
引用本文:刘 逻,郭立红,陈 媛,王俊杰.基于通信协议的接口测试用例自动生成框架[J].测控技术,2020,39(1):46-54.
作者姓名:刘 逻  郭立红  陈 媛  王俊杰
作者单位:中国科学院长春光学精密机械与物理研究所,中国科学院长春光学精密机械与物理研究所,中国科学院长春光学精密机械与物理研究所,中国科学院长春光学精密机械与物理研究所
基金项目:中国科学院仪器设备功能开发技术创新项目(Y9A034S)
摘    要:为了实现对软件配置项和软件系统的接口测试的测试用例自动生成,建立了基于通信协议的接口测试用例自动生成框架,对该生成框架的输入模型和算法集合进行研究。提出了基于通信协议的接口测试用例生成框架的输入模型,并在输入模型中建立数据帧之间的一级关联矩阵和数据帧内字段间的二级关联矩阵。以输入模型为基础,说明发送端和接收端的接口测试用例自动生成算法。结合实际项目中的通信协议,介绍了如何将通信协议信息转换至输入模型,如何通过算法集合自动生成测试用例集。实验结果表明:基于通信协议的接口测试用例自动生成框架生成的接口测试用例可以替代人工生成的接口测试用例,极大地提高了软件接口测试工作的效率。

关 键 词:接口测试  自动生成框架  输入模型  关联矩阵  生成算法

Automated Test Case Generation Framework Based on Interface Communication Protocol
Abstract:In order to realize automatic test case generation for the interface testing of software configuration item and software system,an automatic test case generation framework based on interface communication protocol is established,and the input model and algorithm set of the generation framework are investigated.The input model of the interface test generation framework based on communication protocol was proposed,and the first-level correlation matrix between data frames and the second-level correlation matrix between fields in the data frame were constructed.An automatic generation algorithm of interface test cases containing sender and receiver was described based on the input model.Combined with the communication protocol of actual project,how to convert communication protocol information to the input model and how to automatically generate the test case set through the algorithm were introduced.The experimental results indicate the interface test cases generated by the proposed automatic test case generation framework based on interface communication protocol can replace the artificially generated interface test cases,which greatly improves the efficiency of software interface testing.
Keywords:interface testing  automatic generation framework  input model  correlation matrix  generation algorithm
本文献已被 维普 等数据库收录!
点击此处可从《测控技术》浏览原始摘要信息
点击此处可从《测控技术》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

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