With the rapid development of network technology,the number of mobile applications increases sharply and the iteration speed of version update accelerates,which brings great challenges to software testing.Automated testing is becoming the mainstream instead of manual testing.Aiming at the problems of high technical threshold,single driver and low degree of automation of the existing mobile automation test framework,this paper studies the automatic test technology for mobile applications from three aspects: multi-driver integration,use case generation and control positioning,in order to improve the test efficiency of software.The main research contents are as follows:(1)Research on automated test framework of multi-driver integrationOn the basis of studying the existing test framework,this paper integrates module,data and keyword-driven patterns,and designs and implements a multi-driver integrated test framework based on Appium..At the same time,aiming at the inaccurate positioning of controls and the single verification form of test results in the test process,this paper proposes a monitoring mechanism to deal with the appearance of pop-up windows in the test to ensure the accurate positioning of controls;The image assertion method is improved and introduced on the basis of the existing assertions,and the function of the result verification of the test framework is extended.This framework can reduce the technical threshold of automated testing and make the writing and maintenance of test scripts more flexible and simple.(2)Research on model-based test scenario use case generationBefore software testing,testers need to spend a lot of time designing and writing test cases,and cannot guarantee the full coverage of test cases.This paper compares and analyzes the existing test models,selects the finite state machine model,models the test scenarios in mobile applications,adopts the model state and transformation coverage criteria,and generates the test scenario case set through Dijkstra algorithm.Combining the model-based test scenario case generation with the test framework can improve the automation test level of the framework.(3)Design and implementation of automated test platformBased on the proposed multi-driver integration test framework and model-based test scenario use case generation,an automated test platform for mobile applications is designed and implemented.The platform is mainly divided into project management,module management,use case management,test execution,configuration management and test result modules.Finally,the automated test platform built was used to select mobile apps for testing verification,and the overall evaluation was carried out from the two perspectives of test efficiency and the comparison of different frameworks.It can be seen from the evaluation results that the automated test framework and test platform designed in this paper support the automated testing of mobile applications,effectively improving the test efficiency and achieving the established design objectives. |