ModelWeb: A Toolset for the Model-based Testing of Web Applications
Mert Ozkaya, Mehmet Alp Kose, Arda Burak Mamur, Turker Koc
Citation: Communication Papers of the 17th Conference on Computer Science and Intelligence Systems, M. Ganzha, L. Maciaszek, M. Paprzycki, D. Ślęzak (eds). ACSIS, Vol. 32, pages 331–338 (2022)
Abstract. Model-based testing promotes the specifications ofabstract system behaviours and their transformations into test scenarios to enhance the quality of software testing. In this paper, we propose a modeling toolset called ModelWeb for the model-based testing of web applications. ModelWeb provides a modeling editor that offers a flowchart-based notation set for the modeling of users' functional behaviours on the web applications. ModelWeb's flowchart notation set consists of a pre-defined list of user actions (e.g., click, type, login, register, select etc.) and system actions (display and return). ModelWeb can further transform the flowchart-based model for a web functionality (e.g., adding products to cart in an online store) into the test scenarios that are documented in accordance with the behaviour driven development (BDD) approach for understandability and the acceptance by the web test automation tools. So finally, ModelWeb can automatically test the web applications against the transformed BDD scenarios using the Selenium web test automation tool and report the test results to the user. To evaluate ModelWeb, we asked four practitioners from diverse industries to test three different web-applications with and without ModelWeb. We observed that ModelWeb enables considerable gains on the time performance (27-41\%) and the number BDD scenarios obtained (51-113\%).
- E. Seidewitz, “What models mean,” IEEE Softw., vol. 20, no. 5, pp. 26–32, 2003. [Online]. Available: https://doi.org/10.1109/MS.2003.1231147
- B. Selic, “The pragmatics of model-driven development,” IEEE Softw., vol. 20, no. 5, pp. 19–25, 2003. [Online]. Available: https://doi.org/10.1109/MS.2003.1231146
- T. Kühne, “Matters of (meta-)modeling,” Software and Systems Modeling, vol. 5, no. 4, pp. 369–385, 2006. [Online]. Available: https://doi.org/10.1007/s10270-006-0017-9
- J. E. Rumbaugh, I. Jacobson, and G. Booch, The unified modeling language reference manual. Addison-Wesley-Longman, 1999.
- I. Schieferdecker, “Model-based testing,” pp. 14–18, 2012. [Online]. Available: https://doi.org/10.1109/MS.2012.13
- A. Pretschner, W. Prenninger, S. Wagner, C. Kühnel, M. Baumgartner, B. Sostawa, R. Zölch, and T. Stauner, “One evaluation of model-based testing and its automation,” CoRR, vol. abs/1701.06815, 2017. [Online]. Available: http://arxiv.org/abs/1701.06815
- M. Utting, B. Legeard, F. Bouquet, E. Fourneret, F. Peureux, and A. Vernotte, “Recent advances in model-based testing,” Adv. Comput., vol. 101, pp. 53–120, 2016. [Online]. Available: https://doi.org/10.1016/bs.adcom.2015.11.004
- A. Kraus, A. Knapp, and N. Koch, “Model-driven generation of web applications in UWE,” in Proceedings of the 3rd International Workshop on Model-Driven Web Engineering MDWE 2007, Como, Italy, July 17, 2007, ser. CEUR Workshop Proceedings, N. Koch, A. Vallecillo, and G. Houben, Eds., vol. 261. CEUR-WS.org, 2007. [Online]. Available: http://ceur-ws.org/Vol-261/paper03.pdf
- J. Gómez, C. Cachero, and O. Pastor, “Conceptual modeling of device-independent web applications,” IEEE Multim., vol. 8, no. 2, pp. 26–39, 2001. [Online]. Available: https://doi.org/10.1109/93.917969
- D. M. Groenewegen, Z. Hemel, L. C. L. Kats, and E. Visser, “Webdsl: a domain-specific language for dynamic web applications,” in Companion to the 23rd Annual ACM SIGPLAN Conference on Object-Oriented Programming, Systems, Languages, and Applications, OOPSLA 2008, October 19-13, 2007, Nashville, TN, USA, G. E. Harris, Ed. ACM, 2008, pp. 779–780. [Online]. Available: https://doi.org/10.1145/1449814.1449858
- R. D. Virgilio, “AML: a modeling language for designing adaptive web applications,” Pers. Ubiquitous Comput., vol. 16, no. 5, pp. 527–541, 2012. [Online]. Available: https://doi.org/10.1007/s00779-011-0418-9
- G. Paolone, M. Marinelli, R. Paesani, and P. D. Felice, “Automatic code generation of MVC web applications,” Comput., vol. 9, no. 3, p. 56, 2020. [Online]. Available: https://doi.org/10.3390/computers9030056
- F. Bolis, A. Gargantini, M. Guarnieri, E. Magri, and L. Musto, “Model-driven testing for web applications using abstract state machines,” in Current Trends in Web Engineering - ICWE 2012 International Workshops: MDWE, ComposableWeb, WeRE, QWE, and Doctoral Consortium, Berlin, Germany, July 23-27, 2012, Revised Selected Papers, ser. Lecture Notes in Computer Science, M. Grossniklaus and M. Wimmer, Eds., vol. 7703. Springer, 2012, pp. 71–78. [Online]. Available: https://doi.org/10.1007/978-3-642-35623-0_7
- M. Peroli, F. D. Meo, L. Viganò, and D. Guardini, “Mobster: A model-based security testing framework for web applications,” Softw. Test. Verification Reliab., vol. 28, no. 8, 2018. [Online]. Available: https://doi.org/10.1002/stvr.1685
- A. Törsel, “Automated test case generation for web applications from a domain specific model,” in Workshop Proceedings of the 35th Annual IEEE International Computer Software and Applications Conference, COMPSAC Workshops 2011, Munich, Germany, 18-22 July 2011. IEEE Computer Society, 2011, pp. 137–142. [Online]. Available: https://doi.org/10.1109/COMPSACW.2011.32
- A. Marchetto, P. Tonella, and F. Ricca, “State-based testing of ajax web applications,” in First International Conference on Software Testing, Verification, and Validation, ICST 2008, Lillehammer, Norway, April 9-11, 2008. IEEE Computer Society, 2008, pp. 121–130. [Online]. Available: https://doi.org/10.1109/ICST.2008.22
- P. W. M. Koopman, P. Achten, and R. Plasmeijer, “Model-based testing of thin-client web applications and navigation input,” in Practical Aspects of Declarative Languages, 10th International Symposium, PADL 2008, San Francisco, CA, USA, January 7-8, 2008, ser. Lecture Notes in Computer Science, P. Hudak and D. S. Warren, Eds., vol. 4902. Springer, 2008, pp. 299–315. [Online]. Available: https://doi.org/10.1007/978-3-540-77442-6_20
- X. Wang, B. Zhou, and W. Li, “Model based load testing of web applications,” in IEEE International Symposium on Parallel and Distributed Processing with Applications, ISPA 2010, Taipei, Taiwan, 6-9 September 2010. IEEE Computer Society, 2010, pp. 483–490. [Online]. Available: https://doi.org/10.1109/ISPA.2010.24
- F. Lebeau, B. Legeard, F. Peureux, and A. Vernotte, “Model-based vulnerability testing for web applications,” in Sixth IEEE International Conference on Software Testing, Verification and Validation, ICST 2013 Workshops Proceedings, Luxembourg, Luxembourg, March 18-22, 2013. IEEE Computer Society, 2013, pp. 445–452. [Online]. Available: https://doi.org/10.1109/ICSTW.2013.58
- M. Wynne, A. Hellesoy, and S. Tooke, The Cucumber Book: Behaviour-Driven Development for Testers and Developers. Pragmatic Bookshelf, 2017.
- H. Reza, K. Ogaard, and A. Malge, “A model based testing technique to test web applications using statecharts,” in Fifth International Conference on Information Technology: New Generations (ITNG 2008), 7-8 April 2008, Las Vegas, Nevada, USA, S. Latifi, Ed. IEEE Computer Society, 2008, pp. 183–188. [Online]. Available: https://doi.org/10.1109/ITNG.2008.145
- J. P. Ernits, R. Roo, J. Jacky, and M. Veanes, “Model-based testing of web applications using nmodel,” in Testing of Software and Communication Systems, 21st IFIP WG 6.1 International Conference, TESTCOM 2009 and 9th International Workshop, FATES 2009, Eindhoven, The Netherlands, November 2-4, 2009. Proceedings, ser. Lecture Notes in Computer Science, M. Núñez, P. Baker, and M. G. Merayo, Eds., vol. 5826. Springer, 2009, pp. 211–216. [Online]. Available: https://doi.org/10.1007/978-3-642-05031-2 14
- G. J. Holzmann, “The spin model checker,” vol. 23, no. 5, pp. 279–295, May 1997.
- K. G. Larsen, P. Pettersson, and W. Yi, “UPPAAL in a nutshell,” STTT, vol. 1, no. 1–2, pp. 134–152, 1997.
- I. Malavolta, P. Lago, H. Muccini, P. Pelliccione, and A. Tang, “What industry needs from architectural languages: A survey,” IEEE Trans. Software Eng., vol. 39, no. 6, pp. 869–891, 2013. [Online]. Available: https://doi.org/10.1109/TSE.2012.74
- S. Kelly, K. Lyytinen, and M. Rossi, “Metaedit+ A fully configurable multi-user and multi-tool CASE and CAME environment,” in Seminal Contributions to Information Systems Engineering, 25 Years of CAiSE, J. A. B. Jr., J. Krogstie, O. Pastor, B. Pernici, C. Rolland, and A. Sølvberg, Eds. Springer, 2013, pp. 109–129. [Online]. Available: http://dx.doi.org/10.1007/978-3-642-36926-1_9
- K. Beck, Test Driven Development: By Example. Addison-Wesley Professional, 2002.