This paper illustrates an intelligent testing system, designed in the requirement for the testing of compressed natural gas engine ECU. This system is a virtual environment for ECU’s testing and debugging, it provides all kinds of sensor signals, switch signals and various simulated actuators for ECU. PC can configure the system’s settings and receive testing results through USB. When receiving testing datum, PC judges whether ECU is in normal status according to the datum and saves them in files. Consequently automatic testing is realized.