A Selenium based approach to automatic test script generation for refactoring JavaScript code

During the development process of Web application, two essential phases are software testing and code refactoring. However, automatic testing script plays an important role in test automation. It has been a hot research topic in Web application. In order to refactor the JavaScript code of Web application more conveniently, an approach to automatic script generation from the defined test case is introduced in this paper. First, it describes the test case using customized XML format. Then, since Selenium platform supports multi-browsers testing, a method to transform XML description into test scripts based on Selenium framework is proposed as the emphasis.

[1]  Chris McMahon History of a Large Test Automation Project Using Selenium , 2009, 2009 Agile Conference.

[2]  Marian Jureczko,et al.  Automated acceptance testing tools for web applications using Test-Driven Development , 2010 .

[3]  Robert W. Floyd,et al.  Assigning Meanings to Programs , 1993 .

[4]  Alessandro Orso,et al.  WATER: Web Application TEst Repair , 2011, ETSE '11.

[5]  Xinchun Wang,et al.  Build an Auto Testing Framework Based on Selenium and FitNesse , 2009, 2009 International Conference on Information Technology and Computer Science.

[6]  Lauretta O. Osho,et al.  Axiomatic Basis for Computer Programming , 2013 .

[7]  Mika Katara,et al.  Model-Based Testing with a General Purpose Keyword-Driven Test Automation Framework , 2011, 2011 IEEE Fourth International Conference on Software Testing, Verification and Validation Workshops.

[8]  Paolo Tonella,et al.  Analysis and testing of Web applications , 2001, Proceedings of the 23rd International Conference on Software Engineering. ICSE 2001.

[9]  Marc Kellogg,et al.  Automating functional tests using Selenium , 2006, AGILE 2006 (AGILE'06).

[10]  Biagio Mazzi,et al.  About the Web Site , 2013 .

[11]  Huaikou Miao,et al.  A New Approach to Generating High Quality Test Cases , 2010, 2010 19th IEEE Asian Test Symposium.