Performances vary widely across monitor and control devices of different manufacturers in security field. In addition, each manufacturer implements devices by using different industry standards, resulting in interconnection and interworking between different devices. This problem greatly influences the overall function of video monitor and control system. In view of the above problems, this paper uses the method of automatic testing and designs a protocol testing system based on ONVIF. The testing system uses the form of Web Services and SOAP protocol and packets the messages in XML format based on HTTP protocol. It checks whether the devices in accordance with specifications in protocol and function. Through the actual test of the IPC devices, the validity and reliability of the system is verified. It is proved that the system has great practical value.