摘要
在嵌入式软件设计过程中,接口是非常重要的设计元素,对接口协议进行验证是接口测试中的主要内容。但现在软件接口类型不同,需要人工识别与组装各种接口的测试用例报文,接口协议的复杂度直接影响测试用例编制的难度与工作量。为实现接口测试用例的自动生成,提出一种基于数据模型的接口用例自动生成技术,根据复杂的接口协议文件,建立被测软件的接口协议形式化模型,准确、高效地表达接口协议规则及要素,并使用动态计算与替换算法得到相应业务场景下的预期结果,生成标准化的测试用例,更可兼容多种类型的接口,有效提升了接口测试效率。
In the process of embedded software design,the interface is a very important design element,and verifying the interface protocol is the main content of the interface testing.However,due to the different types of software interfaces,it is ecessary to manually identify and assemble the test case messages of various interfaces.The complexity of interface protocol directly affects the difficulty and workload of test case preparation.In order to realize the automatic generation of interface test cases,an automatic generation technology of interface cases based on data model is proposed.According to the complex interface protocol files,the formal model of interface protocol of the software under test is established to express the rules and elements of interface protocol accurately and efficiently,and the expected results in the corresponding business scenarios are obtained by using the dynamic calculation and replacement algorithms,and the standardized test cases that are more compatible with various types of interfaces are generated,which effectively improves the efficiency of interface testing.
作者
虞砺琨
左万娟
于倩
陈华南
黄晨
YU Li-kun;ZUO Wan-juan;YU Qian(CHEN Hua-nan2,HUANG Chen1,2(1.Beijing Institute of Control Engineering,Beijing 100190,China;Beijing Sunwise Information Technology Co.,Ltd.,Beijing 100190,China)
出处
《测控技术》
2020年第7期24-29,共6页
Measurement & Control Technology
关键词
嵌入式软件
接口协议
接口测试
自动化
embedded software
interface protocol
interface testing
automation