Using multi-locators to increase the robustness of web test cases

Maurizio Leotta, Andrea Stocco, Filippo Ricca, Paolo Tonella

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

61 Scopus citations

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).

Original languageEnglish
Title of host publication2015 IEEE 8th International Conference on Software Testing, Verification and Validation, ICST 2015 - Proceedings
PublisherInstitute of Electrical and Electronics Engineers Inc.
ISBN (Electronic)9781479971251
DOIs
StatePublished - 5 May 2015
Externally publishedYes
Event8th IEEE International Conference on Software Testing, Verification and Validation, ICST 2015 - Graz, Austria
Duration: 13 Apr 201517 Apr 2015

Publication series

Name2015 IEEE 8th International Conference on Software Testing, Verification and Validation, ICST 2015 - Proceedings

Conference

Conference8th IEEE International Conference on Software Testing, Verification and Validation, ICST 2015
Country/TerritoryAustria
CityGraz
Period13/04/1517/04/15

Keywords

  • Test Case Robustness
  • Testware Evolution
  • Web Element Locators
  • Web Testing
  • XPath Locators

Fingerprint

Dive into the research topics of 'Using multi-locators to increase the robustness of web test cases'. Together they form a unique fingerprint.

Cite this