Font Size: a A A

Design And Implementation Of Key Technology In Windows Application Automation Testing

Posted on:2019-08-29Degree:MasterType:Thesis
Country:ChinaCandidate:F X ZhuFull Text:PDF
GTID:2428330542494225Subject:Computer software and theory
Abstract/Summary:PDF Full Text Request
With the development of agile programming technology,software will experience rapid iteration of the version during the development phase.The new version of soft-ware must be tested systematically before it goes alive,and automated testing can meet the requirements of modern software for testing speed and reduce test cost.With the development of software development technology under Windows platform,the exist-ing automated testing solutions cannot support a wide variety of UI frameworks for Windows applications.In addition,in the field of model-based automated testing re-search,GUI traversal technology is the basis for GUI modeling and dynamic analysis.The existing research on automated traversal methods for Windows applications has the problem of low GUI coverage.This thesis focuses on the key technical issues in automated testing of Windows applications above.Main work contents are as follows:(1)To solve the problem of insufficient support for Windows applications under different UI frameworks for the existing automated testing solution,this thesis proposes an automated testing solution that can be compatible with different types of Windows applications.This solution solves two key problems of control driver and control iden-tify in automated testing.This thesis divides the control driver into two categories:API driver and picture-comparison based driver.It abstracts and encapsulates differ-ent types of automated test drivers,which makes the program compatible with control drivers under multiple UI frameworks.In addition,a method based on the control path is proposed for the API driver,and the control identification method based on screen-shots is proposed for the image-comparison based driver,so this solution can solve the control identification problem.(2)To solve the problem of low GUI coverage in the current automated traver-sal methods of Windows applications,this thesis proposes a dynamic traversal method based on GUI triggering.This method first redefines the GUI state and GUI state ma-chine model according to the GUI characteristics of Windows application software.The methods of judging GUI state transitions,step backtracking,step guidance,and style value filtering are proposed,which solves the difficulties of GUI looping,such as loop-back,insufficient traversal,and low traversal efficiency.Experiments show that this method has a high traversal effect,and its average GUI approximate coverage rate can reach 57.8%-74.3%,which has a 21.8%increase compared to other similar studies.(3)Design and implement a black box automated testing tool for Windows ap-plications which name is WindowsAutoTest and implemented the regression testing function based on recording-playback and the collapse detection function based on GUI traversal.Experiments show that the tool can support regression testing of many types of Windows applications and can effectively improve test efficiency and save test costs.In addition,its crash detection module can effectively detect potential crashes in the application.
Keywords/Search Tags:Graphical user interface, automated testing, Windows applications, GUI traversal algorithms, regression testing, crash detection
PDF Full Text Request
Related items