Abstract:This article proposes an automated test framework for MVC GUI module, based on Robot Framework. The GUI automation test framework is divided into four aspects: user interface function testing, information set function testing, information query function testing, and special items testing. The whole framework, making the GUI test and the Database test combined together, fully completes the coverage of GUI automation test. According to different system environment, by writing Python scripts, the underlying data can be flexibly called. The combination of black-box and white-box test makes the tester quickly focus the code defect, and guarantees the correctness and completeness of the development program effectively. At the same time, the applicability of this test framework has been verified, as OpenWRT LuCI module specifically addressed.