DocumentCode
708010
Title
Using Multi-Locators to Increase the Robustness of Web Test Cases
Author
Leotta, Maurizio ; Stocco, Andrea ; Ricca, Filippo ; Tonella, Paolo
Author_Institution
Dipt. di Inf., Univ. di Genova, Genoa, Italy
fYear
2015
fDate
13-17 April 2015
Firstpage
1
Lastpage
10
Abstract
The main reason for the fragility of web test cases is the inability of web element locators to work correctly when the web page DOM evolves. Web elements locators are used in web test cases to identify all the GUI objects to operate upon and eventually to retrieve web page content that is compared against some oracle in order to decide whether the test case has passed or not. Hence, web element locators play an extremely important role in web testing and when a web element locator gets broken developers have to spend substantial time and effort to repair it. While algorithms exist to produce robust web element locators to be used in web test scripts, no algorithm is perfect and different algorithms are exposed to different fragilities when the software evolves. Based on such observation, we propose a new type of locator, named multi-locator, which selects the best locator among a candidate set of locators produced by different algorithms. Such selection is based on a voting procedure that assigns different voting weights to different locator generation algorithms. Experimental results obtained on six web applications, for which a subsequent release was available, show that the multi-locator is more robust than the single locators (about -30% of broken locators w.r.t. the most robust kind of single locator) and that the execution overhead required by the multiple queries done with different locators is negligible (2-3% at most).
Keywords
Internet; graphical user interfaces; information retrieval; program testing; GUI object; Web element locator; Web page DOM; Web page content retrieval; Web test case; locator generation algorithm; software testing; voting procedure; Maintenance engineering; Navigation; Robustness; Software; Software algorithms; Testing; Web pages;
fLanguage
English
Publisher
ieee
Conference_Titel
Software Testing, Verification and Validation (ICST), 2015 IEEE 8th International Conference on
Conference_Location
Graz
Type
conf
DOI
10.1109/ICST.2015.7102611
Filename
7102611
Link To Document