DocumentCode :
555321
Title :
A framework for automated testing of javascript web applications
Author :
Artzi, Shay ; Dolby, Julian ; Jensen, Simon Holm ; Moller, Andreas ; Tip, Frank
fYear :
2011
fDate :
21-28 May 2011
Firstpage :
571
Lastpage :
580
Abstract :
Current practice in testing JavaScript web applications requires manual construction of test cases, which is difficult and tedious. We present a framework for feedback-directed automated test generation for JavaScript in which execution is monitored to collect information that directs the test generator towards inputs that yield increased coverage. We implemented several instantiations of the framework, corresponding to variations on feedback-directed random testing, in a tool called Artemis. Experiments on a suite of JavaScript applications demonstrate that a simple instantiation of the framework that uses event handler registrations as feedback information produces surprisingly good coverage if enough tests are generated. By also using coverage information and read-write sets as feedback information, a slightly better level of coverage can be achieved, and sometimes with many fewer tests. The generated tests can be used for detecting HTML validity problems and other programming errors.
Keywords :
Internet; Java; program testing; Artemis; Javascript Web application; automated testing; coverage information; event handler registration; feedback-directed automated test generation; read-write sets; Browsers; Generators; HTML; Reactive power; Servers; Testing; Web pages; ajax; automated testing; debugging; event driven; javascript; random testing; web applications;
fLanguage :
English
Publisher :
ieee
Conference_Titel :
Software Engineering (ICSE), 2011 33rd International Conference on
Conference_Location :
Honolulu, HI
ISSN :
0270-5257
Print_ISBN :
978-1-4503-0445-0
Electronic_ISBN :
0270-5257
Type :
conf
DOI :
10.1145/1985793.1985871
Filename :
6032496
Link To Document :
بازگشت