Automating Coverage Metrics for Dynamic Web Applications

  • Authors:
  • Manar H. Alalfi;James R. Cordy;Thomas R. Dean

  • Affiliations:
  • -;-;-

  • Venue:
  • CSMR '10 Proceedings of the 2010 14th European Conference on Software Maintenance and Reengineering
  • Year:
  • 2010

Quantified Score

Hi-index 0.01

Visualization

Abstract

Building comprehensive test suites for web applications poses new challenges in software testing. Coverage criteria used for traditional systems to assess the quality of test cases are simply not sufficient for complex dynamic applications. As a result, faults in web applications can often be traced to insufficient testing coverage of the complex interactions between the components. This paper presents a new set of coverage criteria for web applications, based on page access, use of server variables, and interactions with the database. Following an instrumentation transformation to insert dynamic tracking of these aspects, a static analysis is used to automatically create a coverage database by extracting and executing only the instrumentation statements of the program. The database is then updated dynamically during execution by the instrumentation calls themselves. We demonstrate the usefulness of our coverage criteria and the precision of our approach on the analysis of the popular internet bulletin board system PhpBB 2.0.