In order to implement software automated test on the application of .NET form class, in this paper, we propose a program that builds resources platforms for under test programs, just like software structure information store and common window widgets test case library. It takes white-box method for the test model, with the use of SQL Server databases. The program executes cover tests on those common interaction widgets easy to result in exceptions for Windows applications. At the same time, it gets attributes information of the window widgets. Then it achieves automatic generation of test cases, and imports them into Excel. Based on the related software information generated above, the program will complete the test automatically, and give the test analysis report to improve the efficiency of software testing.