Reducing web test cases aging by means of robust XPath locators

Maurizio Leotta, Andrea Stocco, Filippo Ricca, Paolo Tonella

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

39 Scopus citations

Abstract

In the context of web regression testing, the main aging factor for a test suite is related to the continuous evolution of the underlying web application that makes the test cases broken. This rapid decay forces the quality experts to evolve the test ware. One of the major costs of test case evolution is due to the manual effort necessary to repair broken web page element locators. Locators are lines of source code identifying the web elements the test cases interact with. Web test cases rely heavily on locators, for instance to identify and fill the input portions of a web page (e.g., The form fields), to execute some computations (e.g., By locating and clicking on buttons) and to verify the correctness of the output (by locating the web page elements showing the results). In this paper we present ROBULA (ROBUst Locator Algorithm), a novel algorithm able to partially prevent and thus reduce the aging of web test cases by automatically generating robust XPath-based locators that are likely to work also when new releases of the web application are created. Preliminary results show that XPath locators produced by ROBULA are substantially more robust than absolute and relative locators, generated by state of the practice tools such as Fire Path. Fragility of the test suites is reduced on average by 56% for absolute locators and 41% for relative locators.

Original languageEnglish
Title of host publicationProceedings - IEEE 25th International Symposium on Software Reliability Engineering Workshops, ISSREW 2014
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages449-454
Number of pages6
ISBN (Electronic)9781479973774
DOIs
StatePublished - 12 Dec 2014
Externally publishedYes
Event25th IEEE International Symposium on Software Reliability Engineering Workshops, ISSREW 2014 - Naples, Italy
Duration: 3 Nov 20146 Nov 2014

Publication series

NameProceedings - IEEE 25th International Symposium on Software Reliability Engineering Workshops, ISSREW 2014

Conference

Conference25th IEEE International Symposium on Software Reliability Engineering Workshops, ISSREW 2014
Country/TerritoryItaly
CityNaples
Period3/11/146/11/14

Keywords

  • Robust locators
  • Test cases aging
  • Web testing

Fingerprint

Dive into the research topics of 'Reducing web test cases aging by means of robust XPath locators'. Together they form a unique fingerprint.

Cite this