TY - GEN
T1 - Automated generation of visual web tests from DOM-based web tests
AU - Leotta, Maurizio
AU - Stocco, Andrea
AU - Ricca, Filippo
AU - Tonella, Paolo
N1 - Publisher Copyright:
Copyright 2015 ACM.
PY - 2015/4/13
Y1 - 2015/4/13
N2 - Functional test automation is increasingly adopted by web applications developers. In particular, 2nd generation tools overcome the limitations of 1st generation tools, based on screen coordinates, by providing APIs for easy selection and interaction with Document Object Model (DOM) elements. On the other hand, a new, 3rd generation of web testing tools, based on visual image recognition, brings the promise of wider applicability and simplicity. In this paper, we consider the problem of the automated creation of 3rd generation visual web tests from 2nd generation test suites. This transformation affects mostly the way in which test cases locate web page elements to interact with or to assert the expected test case outcome. Our tool PESTO determines automatically the screen position of a web element located in the DOM by a DOM-based test case. It then determines a rectangle image centred around the web element so as to ensure unique visual matching. Based on such automatically extracted images, the original, 2nd generation test suite is rewritten into a 3rd generation, visual test suite. Experimental results show that our approach is accurate, hence potentially saving substantial human effort in the creation of visual web tests from DOM-based ones.
AB - Functional test automation is increasingly adopted by web applications developers. In particular, 2nd generation tools overcome the limitations of 1st generation tools, based on screen coordinates, by providing APIs for easy selection and interaction with Document Object Model (DOM) elements. On the other hand, a new, 3rd generation of web testing tools, based on visual image recognition, brings the promise of wider applicability and simplicity. In this paper, we consider the problem of the automated creation of 3rd generation visual web tests from 2nd generation test suites. This transformation affects mostly the way in which test cases locate web page elements to interact with or to assert the expected test case outcome. Our tool PESTO determines automatically the screen position of a web element located in the DOM by a DOM-based test case. It then determines a rectangle image centred around the web element so as to ensure unique visual matching. Based on such automatically extracted images, the original, 2nd generation test suite is rewritten into a 3rd generation, visual test suite. Experimental results show that our approach is accurate, hence potentially saving substantial human effort in the creation of visual web tests from DOM-based ones.
KW - DOM-based Testing
KW - PESTO
KW - Page Object
KW - Selenium WebDriver
KW - Sikuli
KW - Test Automation
KW - Visual Testing
KW - Web Testing
UR - http://www.scopus.com/inward/record.url?scp=84955504485&partnerID=8YFLogxK
U2 - 10.1145/2695664.2695847
DO - 10.1145/2695664.2695847
M3 - Conference contribution
AN - SCOPUS:84955504485
T3 - Proceedings of the ACM Symposium on Applied Computing
SP - 775
EP - 782
BT - 2015 Symposium on Applied Computing, SAC 2015
A2 - Shin, Dongwan
PB - Association for Computing Machinery
T2 - 30th Annual ACM Symposium on Applied Computing, SAC 2015
Y2 - 13 April 2015 through 17 April 2015
ER -