Protection and control devices are the most important parts in power systems. The concept of automatic test and software simulation environments is introduced. Based on it, an universal automatic testing system is proposed. The distributed architecture is used in this system to simulate on-site environment. The technology of testing scripts is used to carry out test of automatic regression, the open structure adopted facilitates expansion of the system. The practical application shows that the system can remarkably improve testing quality and efficiency of IED.