A Framework for Automated Testing of JavaScript Web Applications

Current practice in testing JavaScript web applications requires manual construction of test cases, which is difficult and tedious. The authors 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. They 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.

Provided by: Association for Computing Machinery Topic: Software Date Added: May 2011 Format: PDF

Find By Topic