Improving Test Suites Maintainability with the Page Object Pattern: An Industrial Case Study
Authors:
- Maurizio LeottaMaurizio Leotta
- Diego ClerissiDCDiego Clerissi
- Filippo RiccaFRFilippo Ricca
- Cristiano SpadaroCSCristiano Spadaro
- 1 March 2013
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 108-113
Abstract
The page object pattern is used in the context of web testing for abstracting the application's web pages in order to reduce the coupling between test cases and application under test. This paper reports on an industrial case study in a small Italian company (eXact learning solutions S.p.A.) investigating the potential benefits of adopting the page object pattern to improve the maintainability of Selenium WebDriver test cases. After a maintenance/evolution activity performed on the application under test, we compared two equivalent test suites, one built using the page object pattern and one without it. The results of our case study indicate a strong reduction in terms of time required (by a factor of about three) and number of modified LOCs (by a factor of about eight) to repair the test suite when the page object pattern is used.Keywords
This publication has 6 references indexed in Scilit:
- Software Test Automation practices in agile development environment: An industry experience report2012
- Empirical Observations on Software Testing Automation2009
- Successful Test Automation for Software Maintenance2007 IEEE International Conference on Software Maintenance, 2006
- Detecting Anomaly and Failure in Web ApplicationsIEEE MultiMedia, 2006
- Observations and lessons learned from automated testing2005
- Experimentation in Software Engineering2000