Reusable Testing Actions on Test Case Automation for Mobile Devices
Resumo
Performing software tests is a crucial component to ensure the matching between software applications and their specified requirements. In the mobile device’s context, most of the test cases are executed manually, part of the automation engineer’s role is to automate these tests using tools that simulate manual interaction on the device. Automated testing reduces long-term costs, improves reproducibility, and saves time in the developing cycle. A test case can be defined as a sequence of test steps where each step is a subset of commands written to evaluate the pre-established feature. Test case automation still faces many challenges, most directly related to the development process, involving factors, such as a steep automation learning curve and test case maintenance. In an industrial scenario, as new features are incorporated, the costs associated with the maintenance of automation code become increasingly significant, to such a degree that small changes can cause expensive refactoring. This research evaluates the impact of using Reusable Test Actions (RTAs) for mitigating test development problems like refactoring and legibility while adding layers of abstraction, simplifying the automation process, and encouraging pattern adherence. As one of the main contributions of this work, we analyzed three years of a repository’s historical data, revealing the effects of this approach on automation code writing in a real scenario. We noticed a positive influence in software engineering-related processes while also reducing code size and minimizing the penalties associated with code refactoring. We also pointed out possible drawbacks related to redundancy and overlap between the RTAs. These insights, together with the description needed to create RTAs, aim to demonstrate the main motivations, benefits, and disadvantages of this approach in real development environments.
Publicado
05/11/2024
Como Citar
FREITAS, William do Vale Cavalcante; FERREIRA, Nikson Bernardes Fernandes; FREITAS JUNIOR, Hermino Barbosa de; ALVES, Arthur Binda; RAFAEL, Gabriel Joseph Ramos; MELO, Hallyson Luiz de Morais; OLIVEIRA FILHO, Bonifácio Leite de; CARVALHO, André.
Reusable Testing Actions on Test Case Automation for Mobile Devices. In: SIMPÓSIO BRASILEIRO DE QUALIDADE DE SOFTWARE (SBQS), 23. , 2024, Bahia/BA.
Anais [...].
Porto Alegre: Sociedade Brasileira de Computação,
2024
.
p. 460–468.