An empirical study to compare three web test automation approaches: NLP-based, programmable, and capture&replay

被引:6
作者
Leotta, Maurizio [1 ]
Ricca, Filippo [1 ]
Marchetto, Alessandro [2 ]
Olianas, Dario [1 ]
机构
[1] Univ Genoa, Dipartimento Informat Bioingn Robot & Ingn Sistemi, Genoa, Italy
[2] Univ Trento, Dipartimento Ingn & Sci Informaz DISI, Trento, Italy
关键词
empirical study; natural language processing; page object pattern; Selenium; test automation; web testing; GENERATION;
D O I
10.1002/smr.2606
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
A new advancement in test automation is the use of natural language processing (NLP) to generate test cases (or test scripts) from natural language text. NLP is innovative in this context and promises of reducing test cases creation time and simplifying understanding for "non-developer" software testers as well. Recently, many vendors have launched on the market many proposals of NLP-based tools and testing frameworks but their superiority has never been empirically validated. This paper investigates the adoption of NLP-based test automation in the web context with a series of case studies conducted to compare the costs of the NLP testing approach-measured in terms of test cases development and test cases evolution-with respect to more consolidated approaches, that is, programmable (or script-based) testing and capture & replay testing. The results of our study show that NLP-based test automation appears to be competitive for small- to medium-sized test suites such as those considered in our empirical study. It minimizes the total cumulative cost (development and evolution) and does not require software testers with programming skills.
引用
收藏
页数:24
相关论文
共 45 条
[1]  
Berner S, 2005, PROC INT CONF SOFTW, P571
[2]  
Callaghan D., 2005, Computer Law and Security Report, V21, P56, DOI 10.1016/j.clsr.2005.01.015
[3]   NAT2TESTSCR: Test case generation from natural language requirements based on SCR specifications [J].
Carvalho, Gustavo ;
Falcao, Diogo ;
Barros, Flavia ;
Sampaio, Augusto ;
Mota, Alexandre ;
Motta, Leonardo ;
Blackburn, Mark .
SCIENCE OF COMPUTER PROGRAMMING, 2014, 95 :275-297
[4]   What 5 Million Job Advertisements Tell Us about Testing: a Preliminary Empirical Investigation [J].
Cerioli, Maura ;
Leotta, Maurizio ;
Ricca, Filippo .
PROCEEDINGS OF THE 35TH ANNUAL ACM SYMPOSIUM ON APPLIED COMPUTING (SAC'20), 2020, :1586-1594
[5]  
Claessen Koen., 2000, Proceedings of the fifth ACM SIGPLAN international conference on Functional programming-ICFP00, P268
[6]  
Cohn M, 2004, USER STORIES APPL AG
[7]   Verifying Web Applications: From Business Level Specifications to Automated Model-Based Testing [J].
Colombo, Christian ;
Micallef, Mark ;
Scerri, Mark .
ELECTRONIC PROCEEDINGS IN THEORETICAL COMPUTER SCIENCE, 2013, (141) :14-28
[8]   DevOps [J].
Ebert, Christof ;
Gallardo, Gorka ;
Hernantes, Josune ;
Serrano, Nicolas .
IEEE SOFTWARE, 2016, 33 (03) :94-100
[9]   SPECMATE: Automated Creation of Test Cases from Acceptance Criteria [J].
Fischbach, Jannik ;
Vogelsang, Andreas ;
Spies, Dominik ;
Wehrle, Andreas ;
Junker, Maximilian ;
Freudenstein, Dietmar .
2020 IEEE 13TH INTERNATIONAL CONFERENCE ON SOFTWARE TESTING, VALIDATION AND VERIFICATION (ICST 2020), 2020, :321-331
[10]   Enhancing Web Applications Observability through Instrumented Automated Browsers [J].
Garcia, Boni ;
Ricca, Filippo ;
del Alamo, Jose M. ;
Leotta, Maurizio .
JOURNAL OF SYSTEMS AND SOFTWARE, 2023, 203