| With the development of information technology and Internet of things,software testing plays an increasingly important role.With the fast growth of mobile application,software development tends to be agile.Traditional manual testing is facing great challenges.To improve the efficiency of software testing,manual testing needs to be transformed into automatic testing,which can better serve the fast iterative software.Smart Home Miniprogram can realize remote control of household appliances,software iteration cycle is relatively short,manual testing cycle is relatively long,the introduction of automatic testing is particularly important.Automated testing is more suitable for smoke testing and regression testing.It can greatly save manpower and improve efficiency to build an automatic test framework suitable for Smart Home Wechat Miniprogram.Based on the above situation,through the analysis of the existing automation tools and framework,this thesis studies a set of applicable automation test framework for Smart Home Miniprogram.Firstly,the requirements analysis of Smart Home Wechat Miniprogram for automatic testing are analyzed,including user interface(UI)automation testing requirements and interface automation testing requirements.Then,the framework of UI automatic test and interface automatic test for Smart Home Wechat Miniprogram is built.The UI automatic test framework mainly adopts the test framework of Appium + Python,which can realize the automation of user interface function test,and the interface automatic test framework mainly adopts the test framework of JMeter + Ant +Jenkins,which can realize the automatic and regular construction of test tasks,and can also automatically send the test results to the relevant personnel mailbox.Finally,two aspects of UI automation testing for Smart Home Wechat Miniprogram are optimized.One is the application of Page Object mode,which makes the test case directory clearer,the structure more concise and the efficiency more efficient;On the other hand,it is the proposal and application of Minium,which is more suitable for Wechat Miniprogram automatic testing,and compares the two frameworks,which provides a reference for the research of Wechat Miniprogram automatic testing. |