Comparing the maintainability of selenium WebDriver test suites employing different locators: a case study

Test suite maintenance tends to have the biggest impact on the overall cost of test automation. Frequently modifications applied on a web application lead to have one or more test cases broken and repairing the test suite is a time-consuming and expensive task. This paper reports on an industrial case study conducted in a small Italian company investigating on the analysis of the effort to repair web test suites implemented using different UI locators (e.g., Identifiers and XPath). The results of our case study indicate that ID locators used in conjunction with LinkText is the best solution among the considered ones in terms of time required (and LOCs to modify) to repair the test suite to the new release of the application.

[1]  Paolo Tonella,et al.  Detecting anomaly and failure in Web applications , 2006, IEEE Multimedia.

[2]  S. Berner,et al.  Observations and lessons learned from automated testing , 2005, Proceedings. 27th International Conference on Software Engineering, 2005. ICSE 2005..

[3]  Tom Wissink,et al.  Successful Test Automation for Software Maintenance , 2006, 2006 22nd IEEE International Conference on Software Maintenance.

[4]  Filippo Ricca,et al.  Improving Test Suites Maintainability with the Page Object Pattern: An Industrial Case Study , 2013, 2013 IEEE Sixth International Conference on Software Testing, Verification and Validation Workshops.

[5]  Geir Kjetil Hanssen,et al.  Automated Acceptance Testing: A Literature Review and an Industrial Case Study , 2008, Agile 2008 Conference.

[6]  Paolo Tonella,et al.  Testing Processes of Web Applications , 2002, Ann. Softw. Eng..

[7]  Vicente Ferreira de Lucena,et al.  Software Test Automation practices in agile development environment: An industry experience report , 2012, 2012 7th International Workshop on Automation of Software Test (AST).