Font Size: a A A

Research On Coverage Criteria For Dynamic Web Testing

Posted on:2014-01-20Degree:MasterType:Thesis
Country:ChinaCandidate:Y X ZouFull Text:PDF
GTID:2248330395495347Subject:Computer Science and Technology
Abstract/Summary:PDF Full Text Request
Testing coverage criteria are fundamental to test methods evaluation. A criterion is important to evaluate and drive a testing method. Among them, the code coverage is a widely used measurement due to its simplicity and effectiveness. Dynamic web techniques have been used to improve the usability and user experience of applica-tions. However, it brings some new challenges for testing. Dynamic web applications have richer iterations between client-side and server-side, such that code coverage is difficult to capture these complex iterations for sufficient testing. In the scenario of dynamic web application testing, merely covering the server side script is inadequate because it completely ignores the client side executions, which play an important role in triggering complex client-server interactions and driving the execution. As a result, the tests guided by the code coverage may be insufficient.In this paper, we propose Virtual DOM (V-DOM) Coverage, a novel criterion, to drive the testing efficiently. With static analysis, we firstly aggregate all DOM objects that may be produced by a piece of server script and construct the V-DOM tree. Ac-cording to the experimental study, Test cases are selected to achieve a better coverage on this V-DOM tree.We also present a novel coverage criterion-hybrid coverage. A hybrid coverage criterion which combines statement coverage and HTML element coverage, covers both client-side and server-side features. The experimental result shows that the hybrid coverage can detect22.2%-48.1%more bugs than statement coverage,7.9%-57.1%more bugs than element coverage.
Keywords/Search Tags:Dynamic Web, Coverage Criteria, Virtual DOM Tree, Test Case Prioriti-zation, Hybrid Coverage
PDF Full Text Request
Related items