摘要
采用FT3标准通信规约进行数据传输时可以使数据具有完整性,也使得设备间的数字化通讯系统能够有很好的实时性及可靠性,但基于FT3通信的逻辑设计不当,极易造成装置运行问题根源不易排查。针对FT3协议格式报文,从白盒角度对报文的发送接收进行分析及测试很有必要。基于VC6.0搭建测试环境,设计测试驱动,通过对风电场系统中某设备内部FT3通讯机制的研究,提供一种针对FT3通讯的源代码白盒测试方法。通过充分设计测试用例实现了功能、路径测试全覆盖,测试结果表明,该测试方法能够在很大程度上发现装置运行中的隐藏性问题。
When using FT3 standard communication protocol for data transmission,the data can be integrated,and the digital communication system between devices can have good real-time performance and reliability.However,improper logic design based on FT3 communication can easily cause device operation problems and the root cause is not easy to investigate.For FT3 protocol format messages,it is necessary to analyze and test the transmission and reception of messages from a white box perspective.Build a test environment based on VC6.0,design a test driver,and provide a source code white box test method for FT3 communication through the research on the internal FT3 communication mechanism of a certain device in the wind farm system.Full coverage of function and path testing is achieved by fully designing test cases.
出处
《工业控制计算机》
2021年第2期1-3,共3页
Industrial Control Computer
关键词
FT3通信
白盒测试
测试驱动
FT3 communication
white-box testing
test driver