| With the rapid development of the information network in modern society, information system is becoming increasingly significant in the various fields. Especially in the internet field, software products are characterized with short development period and frequent upgrade. With the increasingly popular of agile development and development based on component, the software development process is more efficient which also means testing quality and efficiency are becoming the key factors to the success of the software development.Based on the Baidu Search Engine Marketing System, after analyzing the low-efficient problem during the software testing, continuous integration testing pattern is put out. Specific measures are as following:First of all, based on the principle that key activity of continuous integration is priority, considering the real requirement of the product, auto-testing platform is designed and implemented; Version management, static code analysis, continuous building, testing environment building, testing coverage analysis, dispatching auto-testing and Email posting are supported by the platform. Besides these, separated and distributed logging system is provided which is convenient for testers to collect the log information from different servers of the platform.Second, in accordance with the character of the product, layer-oriented auto-testing is designed. The system is divided into atom layer, application layer, and interaction layer. During the process of implementing auto-testing, following works are done:Basic architecture model are implemented; The accessing to database is enclosed; The auto-generating code tool is implemented which can guarantee the testing coverage in the atom layer; Stub model is designed to solve the dependency problem in the application layer; Selenium is imported to do the auto testing in the interaction layer. The effect of auto testing is reached the expected result which is examined by the number and coverage of the testing cases. |