Many web applications, such as blog and online shopping, appeared as network became widely popularized. Researches of testing for such applications mainly focused on stress and compatibility testing, but few discusses about functional test, which is a time-consuming task. Current testing tools applied techniques in automating the testing process to reduce the testing time. Some of them improve testing process by automatic analysis of web pages and some generate test cases automatically. Nevertheless, how to incorporate the separately developed efforts into an integrated testing framework worth some discussions. This paper proposes a framework of testing system for web applications. First, web pages under test are analyzed by the system so that testers can set the testing parameters based on the analyzed results. Then, test cases are generated automatically. Finally, the system runs test and generates test report. Through the design of data content and format, the proposed system can exchange data among its modules effectively and fluently. Moreover, all the automation efforts to the proposed system largely reduced human intervention during the test process so that testers can complete their work in several simple steps. A prototype is also made to demonstrate the feasibility of the proposed framework.