1. A method for automatically generating unit test cases for a computer program that can reproduce runtime problems, comprising the steps of: modifying the computer program according to one or more interested target program units in the program and possibly occurring runtime problems; test executing the modified program; and automatically generating unit test cases according to the interested runtime problems occurring during the execution of the interested target program units.