Provided is a reflection-based automated testing method. The method comprises the following steps that all test unit modules of a tested system are obtained, a corresponding Java code is programmed on each test unit module, and compiling is carried out; the needed test unit modules are selected to form test cases, and the test cases and corresponding test case information are stored in a database; the test cases are sequentially read from the database, and after an Object [] type parameter array, a Java-type Class object and a corresponding Java object are established according to the test unit modules in the test cases, testing is completed. Compared with the prior art, the translating conversion process from the test cases to scripts is avoided, testing can be directly and dynamically executed carried out according to the test unit modules, meanwhile extra script interpreters are not needed, the execution efficiency is high, and the extension is easy to carry out.