Guidelines for GUI testing maintenance: A linter for test smell detection

10Citations
Citations of this article
8Readers
Mendeley users who have this article in their library.
Get full text

Abstract

GUI Test suites suffer from high fragility, in fact modifications or redesigns of the user interface are commonly frequent and often invalidate the tests. This leads, for both DOM- and visual-based techniques, to frequent need for careful maintenance of test suites, which can be expensive and time-consuming. The goal of this work is to present a set of guidelines to write cleaner and more robust test code, reducing the cost of maintenance and producing more understandable code. Based on the provided recommendations, a static test suite analyzer and code linter has been developed. An ad-hoc grey literature research was conducted on the state of the practice, by performing a semi-systematic literature review. Authors' experience was coded into a set of recommendations, by applying the grounded theory methodology. Based on these results, we developed a linter in the form of a plugin for Visual Studio Code, implementing 17 of the provided guidelines. The plugin highlights test smells in the Java and Javascript languages. Finally, we conducted a preliminary validation of the tool against test suites from real GitHub projects. The preliminary evaluation, meant to be an attempt of application of the plugin to real test suites, detected three main smells, namely the usage of global variables, the lack of adoption of the Page Object design pattern, and the usage of fragile locator such as the XPath.

Cite

CITATION STYLE

APA

Fulcini, T., Garaccione, G., Coppola, R., Ardito, L., & Torchiano, M. (2022). Guidelines for GUI testing maintenance: A linter for test smell detection. In A-TEST 2022 - Proceedings of the 13th International Workshop on Automating Test Case Design, Selection and Evaluation, co-located with ESEC/FSE 2022 (pp. 17–24). Association for Computing Machinery, Inc. https://doi.org/10.1145/3548659.3561306

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free