Automatic test environments have been attracting more and more attention from both academic and industrial communities. This paper presents an automatic testing environment for electronic products called the Embedded Ch
Based Automatic Testing Environment (ECBATE). Powered by Embedded Ch engine as its test script engine, functions in instrument hardware drivers' Application Programming Interface (API) libraries can be integrated into the ECBATE, and can be called in test script to instruct the Test ControlComputer on how to test electronic products. Test templates, which are specified using a hierarchical tree of nodes, were introduced to represent detailed test programs in the ECBATE. They can be easily set up and executed. The experimental results of testing a real product show that it works very well and is an efficient and convenient system to test electronic products.