TY - GEN
T1 - Incremental web application testing using page object
AU - Yu, Bing
AU - Ma, Lei
AU - Zhang, Cheng
N1 - Publisher Copyright:
© 2015 IEEE.
PY - 2016/1/4
Y1 - 2016/1/4
N2 - Software testing is indispensable to assure software quality. Traditional software testing techniques are insufficient for modern web applications due to their unique characteristics, such as highly dynamic generation of web pages and interactions with DOM elements. Meanwhile, existing web testing techniques are cumbersome to use in long-term maintenance and evolution because the tests are often brittle in the presence of fast changes to web pages. In this paper, we propose an automatic test generation technique for dynamic web applications. Our technique effectively decouples test code from web pages by automatically generating page objects. Based on page objects, our technique performs iterative feedback directed random test generation. Our evaluation on seven real-world web applications demonstrates that the proposed technique achieves reasonable code coverage (from 23.3% to 90.8%) and can effectively explore dynamically generated web pages (around 14.7 times more than the original static web pages), revealing hundreds of HTML issues and five real errors in the applications.
AB - Software testing is indispensable to assure software quality. Traditional software testing techniques are insufficient for modern web applications due to their unique characteristics, such as highly dynamic generation of web pages and interactions with DOM elements. Meanwhile, existing web testing techniques are cumbersome to use in long-term maintenance and evolution because the tests are often brittle in the presence of fast changes to web pages. In this paper, we propose an automatic test generation technique for dynamic web applications. Our technique effectively decouples test code from web pages by automatically generating page objects. Based on page objects, our technique performs iterative feedback directed random test generation. Our evaluation on seven real-world web applications demonstrates that the proposed technique achieves reasonable code coverage (from 23.3% to 90.8%) and can effectively explore dynamically generated web pages (around 14.7 times more than the original static web pages), revealing hundreds of HTML issues and five real errors in the applications.
UR - http://www.scopus.com/inward/record.url?scp=84969584643&partnerID=8YFLogxK
UR - http://www.scopus.com/inward/citedby.url?scp=84969584643&partnerID=8YFLogxK
U2 - 10.1109/HotWeb.2015.14
DO - 10.1109/HotWeb.2015.14
M3 - Conference contribution
AN - SCOPUS:84969584643
T3 - Proceedings - 3rd Workshop on Hot Topics in Web Systems and Technologies, HotWeb 2015
SP - 1
EP - 6
BT - Proceedings - 3rd Workshop on Hot Topics in Web Systems and Technologies, HotWeb 2015
PB - Institute of Electrical and Electronics Engineers Inc.
T2 - 3rd Workshop on Hot Topics in Web Systems and Technologies, HotWeb 2015
Y2 - 12 November 2015 through 13 November 2015
ER -