TY - GEN
T1 - Clustering-aided page object generation for web testing
AU - Stocco, Andrea
AU - Leotta, Maurizio
AU - Ricca, Filippo
AU - Tonella, Paolo
N1 - Publisher Copyright:
© Springer International Publishing Switzerland 2016.
PY - 2016
Y1 - 2016
N2 - To decouple test code from web page details, web testers adopt the Page Object design pattern. Page objects are facade classes abstracting the internals of web pages (e.g., form fields) into high-level business functions that can be invoked by test cases (e.g., user authentication). However, writing such page objects requires substantial effort, which is paid off only later, during software evolution. In this paper we propose a clustering-based approach for the identification of meaningful abstractions that are automatically turned into Java page objects. Our clustering approach to page object identification has been integrated into our tool for automated page object generation, APOGEN. Experimental results indicate that the clustering approach provides clusters of web pages close to those manually produced by a human (with, on average, only three differences per web application). 75% of the code generated by APOGEN can be used as-is by web testers, breaking down the manual effort for page object creation. Moreover, a large portion (84%) of the page object methods created automatically to support assertion definition corresponds to useful behavioural abstractions.
AB - To decouple test code from web page details, web testers adopt the Page Object design pattern. Page objects are facade classes abstracting the internals of web pages (e.g., form fields) into high-level business functions that can be invoked by test cases (e.g., user authentication). However, writing such page objects requires substantial effort, which is paid off only later, during software evolution. In this paper we propose a clustering-based approach for the identification of meaningful abstractions that are automatically turned into Java page objects. Our clustering approach to page object identification has been integrated into our tool for automated page object generation, APOGEN. Experimental results indicate that the clustering approach provides clusters of web pages close to those manually produced by a human (with, on average, only three differences per web application). 75% of the code generated by APOGEN can be used as-is by web testers, breaking down the manual effort for page object creation. Moreover, a large portion (84%) of the page object methods created automatically to support assertion definition corresponds to useful behavioural abstractions.
UR - http://www.scopus.com/inward/record.url?scp=84977559147&partnerID=8YFLogxK
U2 - 10.1007/978-3-319-38791-8_8
DO - 10.1007/978-3-319-38791-8_8
M3 - Conference contribution
AN - SCOPUS:84977559147
SN - 9783319387901
T3 - Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
SP - 132
EP - 151
BT - Web Engineering - 16th International Conference, ICWE 2016, Proceedings
A2 - Cudré–Mauroux, Philippe
A2 - Pautasso, Cesare
A2 - Bozzon, Alessandro
PB - Springer Verlag
T2 - 16th International Conference on Web Engineering, ICWE 2016
Y2 - 6 June 2016 through 9 June 2016
ER -