摘要
物联网表采用的通信协议具有时间约束特性,以往对此类物联网表进行协议一致性测试时,都采用固定测试用例,无法完全兼顾多样化的测试需求。针对以上问题,在研究物联网表通信协议的基础上,设计了一种测试用例生成方法与执行流程,能够根据通信协议与测试需求生成交互模型、时间参数、期望结果,从而生成具有时间约束特性的测试用例,并通过编程对该方法进行了实现。测试表明,系统能够完成对具有时间约束特性的物联网表通信协议的一致性测试,提升了测试的灵活性,目前已获得行业应用。
This paper designs a test case generation method and execution flow based on the study of the IoT meter communication protocol,which can generate interaction models,time parameters,and expected results according to the communication protocol and test requirements,thereby generating time constraints test cases for features.This method is realized through programming.Tests show that the system can complete the conformance test of the time-constrained IoT meter communication protocol,which improves the flexibility of the test and has been applied in the industry.
出处
《工业控制计算机》
2020年第9期83-85,共3页
Industrial Control Computer