Software testing plays a very important role in the whole process of softwaredevelopment. Nowadays, nearly all software applications are operated throughgraphical user interfaces (GUI). In order to conquer the difficulties of manual GUItesting, and enhance the quality of software as well as efficiency of software testing,the automation of testing process is widely applied.However, the majority of the testing tools use record/playback technology torecord test scripts. Test engineers found that the current GUI automated testing toolcan't generate robust testing scripts and complete software testing directly.Engineers often spend a lot of time to operate it, and then edit the scripts. If testscripts that fail to execute need to re-debug, and test tools have a very long learningcurve. Testing experts and economists believe the current infrastructure of softwaretesting is inadequate and recording playback technique is not an effective way towriting testing scripts in a long period of time. But so far no one has proposed abetter solution or invention to improve the degree of automated testing.This paper summarizes the theories of the GUI test automation in the past;analyzes the application scopes of automated testing. On the basis of studyingprinciple of current automated testing tools and GUI test characteristics ofaccounting information system, points out the inadequacy of them, propose a GUIautomated testing method which can recognize the GUI components actively andautomatically generate test scripts based on the test case, and apply the test theory totests of accounting information system. A GUI component can be recognized by itsname, its component class, the title of its parent window, and theprogrammer-assigned tag. According to test case, this system not only makes use ofproperties of the mouse and type keyboard for automated testing, but also can beused for regression testing. Combine the theories of GUI automated testing and the author's practices. Aslong as we can design professional and efficient test case, the method can be appliedto not only tests of accounting information system, but also tests of othermanagement information system. |