Capture and Replay techniques provide a well-known solution for End-To-End (E2E) testing of Web applications. They allow a tester to generate test scripts without requiring advanced programming skills. For this reason, they are very popular in acceptance and regression testing activities. These techniques are affected by the issue of fragility of the produced test cases, which may break even if small changes are operated in the user interface, without modifications of the app functionality. To overcome this issue, several approaches for either generating robust test cases or automatically repairing broken test cases have been proposed. In this paper we propose an alternative solution that aims at improving the testability of Web applications for generating robust test cases. This solution applies to Web applications developed with template-based technologies. It is based on the template source code automatic injection of additional hook attributes and on the proposal of a new type of locators based on such hooks. These locators aid the unique retrieval of the user interface items involved in test cases. We validated our technique in the context of a continuous integration and delivery processes of template-based web applications that was developed from scratch. The study showed that the use of hook-based locators can improve the robustness of test cases generated by a Capture & Replay testing tool, introducing relevant savings in the regression test case repairing activity.

Towards the Generation of Robust E2E Test Cases in Template-based Web Applications / Fasolino, Anna Rita; Tramontana, Porfirio. - (2022), pp. 104-111. (Intervento presentato al convegno 48th Euromicro Conference on Software Engineering and Advanced Applications, SEAA 2022 tenutosi a Gran Canaria, Spagna nel 31 agosto 2022 - 2 settembre 2022) [10.1109/SEAA56994.2022.00024].

Towards the Generation of Robust E2E Test Cases in Template-based Web Applications

Fasolino, Anna Rita;Tramontana, Porfirio
2022

Abstract

Capture and Replay techniques provide a well-known solution for End-To-End (E2E) testing of Web applications. They allow a tester to generate test scripts without requiring advanced programming skills. For this reason, they are very popular in acceptance and regression testing activities. These techniques are affected by the issue of fragility of the produced test cases, which may break even if small changes are operated in the user interface, without modifications of the app functionality. To overcome this issue, several approaches for either generating robust test cases or automatically repairing broken test cases have been proposed. In this paper we propose an alternative solution that aims at improving the testability of Web applications for generating robust test cases. This solution applies to Web applications developed with template-based technologies. It is based on the template source code automatic injection of additional hook attributes and on the proposal of a new type of locators based on such hooks. These locators aid the unique retrieval of the user interface items involved in test cases. We validated our technique in the context of a continuous integration and delivery processes of template-based web applications that was developed from scratch. The study showed that the use of hook-based locators can improve the robustness of test cases generated by a Capture & Replay testing tool, introducing relevant savings in the regression test case repairing activity.
2022
978-1-6654-6152-8
Towards the Generation of Robust E2E Test Cases in Template-based Web Applications / Fasolino, Anna Rita; Tramontana, Porfirio. - (2022), pp. 104-111. (Intervento presentato al convegno 48th Euromicro Conference on Software Engineering and Advanced Applications, SEAA 2022 tenutosi a Gran Canaria, Spagna nel 31 agosto 2022 - 2 settembre 2022) [10.1109/SEAA56994.2022.00024].
File in questo prodotto:
File Dimensione Formato  
Towards_the_Generation_of_Robust_E2E_Test_Cases_in_Template-based_Web_Applications.pdf

solo utenti autorizzati

Tipologia: Versione Editoriale (PDF)
Licenza: Copyright dell'editore
Dimensione 347.24 kB
Formato Adobe PDF
347.24 kB Adobe PDF   Visualizza/Apri   Richiedi una copia

I documenti in IRIS sono protetti da copyright e tutti i diritti sono riservati, salvo diversa indicazione.

Utilizza questo identificativo per citare o creare un link a questo documento: https://hdl.handle.net/11588/949508
Citazioni
  • ???jsp.display-item.citation.pmc??? ND
  • Scopus ND
  • ???jsp.display-item.citation.isi??? ND
social impact