基于TCP UDP通讯的控制设备接口自动化测试方法设计
2022,30(11):25-31
摘要:基于TCP与UDP的以太网通讯在各行各业的应用十分广泛,以太网通讯的种类多,组合及配置灵活,不同的控制设备使用的以太网通讯方式不尽相同;在设备功能开发完成后,可能会存在潜在的缺陷;传统的测试方法主要依赖网络调试工具,人工解析抓取到的设备发送的数据包,或者通过组合数据指令的方式进行测试并观察结果;这种测试效率非常低,且易出错,如果涉及到的以太网通讯种类较多,数据量较大时,使用网络调试工具不能满足测试需求;为了确保各类以太网控制设备在运行过程中的稳定性,并且使得接口测试过程做到自动化,提升测试的效率以及准确度,采用以太网通讯设备自动化接口测试装置,根据用户测试指令自动完成以TCP与UDP为通讯方式的控制设备的接口测试,为设备的稳定运行提供保障。
关键词:自动化测试;接口测试;以太网通讯
Design of Automatic Test Method for Control Equipment Interface Based on TCP UDP Communication
Abstract:Ethernet communication based on TCP and UDP is widely used in all walks of life. There are many kinds of Ethernet communication, and the combination and configuration are flexible. Different control devices use different Ethernet communication methods; After the equipment function development is completed, there may be potential defects; Traditional testing methods mainly rely on network debugging tools to manually analyze the data packets sent by the captured devices, or test and observe the results by combining data instructions; This kind of test is very inefficient and error prone. If there are many types of Ethernet communication and a large amount of data involved, the use of network debugging tools cannot meet the test requirements; In order to ensure the stability of various Ethernet control equipment in the operation process, automate the interface test process, and improve the efficiency and accuracy of the test, the Ethernet communication equipment automatic interface test device is used to automatically complete the interface test of the control equipment with TCP and UDP as the communication mode according to the user test instructions, so as to provide guarantee for the stable operation of the equipment.
Key words:automated testing; interface test; ethernet communication
收稿日期:2022-07-07
基金项目:
