Model-based testing leveraged for automated web tests

被引:2
作者
Mattiello, Guilherme Ricken [1 ]
Endo, Andre Takeshi [1 ]
机构
[1] Univ Tecnol Fed Parana, Cornelio Procopio, Brazil
关键词
Model-based testing; Automated tests; Test case generation; Page objects; GUI tests; TOOLS;
D O I
10.1007/s11219-021-09575-w
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
Agile methods and their practices have fostered the widespread presence of automated test cases. Such test cases have been successfully and extensively adopted to test different software levels, from unit tests (e.g., JUnit) to end-to-end Web Graphical User Interface (GUI) tests (e.g., Selenium Webdriver). While test execution is mostly automated by existing tools, test design remains a manual task. In the pursuit of a more automated test case generation approach, the use of models has been advocated by the model-based testing (MBT) technique. Current MBT approaches assume a top-down workflow in which testers design models, test cases are generated from models, and then scripts are written to automate test execution. Nevertheless, writing automated tests is nowadays a developer's responsibility and testers face a scenario in which automated tests might be reused to produce new model-based tests. This paper aimed to improve the synergy between existing automated tests and MBT. To do so, we present an approach that infers a model from existing tests, a tester leverages this model to include new tests, and then test code is generated. We analyzed the proposed approach in the context of Web applications with system-level GUI tests that employ the Page Object pattern. For MBT, we adopted event-driven models augmented with parameters and test input data. We evaluated the approach's applicability with a prototype tool called MoLeWe and an experimental study with nine open-source Web applications. The results provide some evidence that using MoLeWe may help to include new tests faster than manually coding them, while increasing the overall code coverage of the test suite.
引用
收藏
页码:621 / 649
页数:29
相关论文
共 42 条
[1]   An orchestrated survey of methodologies for automated software test case generation [J].
Anand, Saswat ;
Burke, Edmund K. ;
Chen, Tsong Yueh ;
Clark, John ;
Cohen, Myra B. ;
Grieskamp, Wolfgang ;
Harman, Mark ;
Harrold, Mary Jean ;
McMinn, Phil ;
Bertolino, Antonia ;
Li, J. Jenny ;
Zhu, Hong .
JOURNAL OF SYSTEMS AND SOFTWARE, 2013, 86 (08) :1978-2001
[2]   INFERENCE OF REVERSIBLE LANGUAGES [J].
ANGLUIN, D .
JOURNAL OF THE ACM, 1982, 29 (03) :741-765
[3]  
[Anonymous], 2015, P 2015 INT S SOFTWAR, P83, DOI DOI 10.1145/2771783.2771786
[4]  
[Anonymous], 1990, Software Testing Techniques
[5]  
[Anonymous], 2007, Practical Model-Based Testing-A Tools Approach
[6]  
[Anonymous], 2013, PageObject
[7]  
Badgett T., 2011, The Art of Software Testing
[8]  
Beck Kent L., 2003, Test Driven Development By Example
[9]   Event-based modelling, analysis and testing of user interactions: approach and case study [J].
Belli, F ;
Budnik, CJ ;
White, L .
SOFTWARE TESTING VERIFICATION & RELIABILITY, 2006, 16 (01) :3-32
[10]  
Belli F., 2012, 2012 International Conference on Software Security and Reliability Companion, P198, DOI 10.1109/SERE-C.2012.24