Comparative analysis of methods for testing web applications

Wojciech Superson


Politechnika Lubelska, Wydział Elektrotechniki i Informatyki (Poland)

Tomasz Smyk

tomasz.smyk@pollub.edu.pl
Politechnika Lubelska, Wydział Elektrotechniki i Informatyki (Poland)

Małgorzata Plechawska-Wójcik


Politechnika Lubelska, Wydział Elektrotechniki i Informatyki (Poland)

Abstract

The aim of the study was to conduct a comparative analysis of testing approaches for web applications in the two most popular architectures: monolithic and microservices. For the purpose of the study, the server-side of the application (backend) was implemented twice with identical functionalities for each of these architectures, allowing for a precise comparison of testing differences for the same program capabilities. The results revealed that the monolithic application was easier and faster to test. However, the microservices architecture requires more energy spent on testing, but allows better scalability and elasticity for independent teams to develop applications. Each of the examined architectures certainly has its own advantages and drawbacks. Furthermore, the conducted research indicates that unit tests require significantly less time to execute. However, when it comes to comprehensive code analysis, integration tests outperform unit tests by covering a substantial portion of the application's code with a single test. Nonetheless, the best comprehensive code analysis and protection against unwanted functional changes can be achieved by employing all known types of tests.


Keywords:

unit testing, integration testing, microservices architecture, monolithic architecture

J. P. Sotomayor, S. C. Allala, P. Alt, J. Phillips, T. M. King, P. J. Clarke, Comparison of runtime testing tools for microservices, Annual Computer Software and Applications Conference (COMPSAC) 43(2) (2019) 356-361.
DOI: https://doi.org/10.1109/COMPSAC.2019.10232   Google Scholar

H. G. Gross, C. Atkinson, F. Barbier, Component integration through built-in contract testing, Component-based software quality, Lecture Notes in Computer 2693 (2003) 159-183.
DOI: https://doi.org/10.1007/978-3-540-45064-1_8   Google Scholar

H. Fischer, Testing in microservice systems: a repository mining study on open-source systems using contract testing, GUPEA, Gothenburg, 2021.
  Google Scholar

F. Selleby, Creating a Framework for Consumer-Driven Contract Testing of Java APIs, Bachelor’s degree, Linköping University, Linköping, 2018.
  Google Scholar

P. Stefan, V. Horky, L. Bulej, P. Tuma, Unit testing performance in java projects: Are we there yet?, Proceedings of the 8th ACM/SPEC on International Conference on Performance Engineering (2017) 401-412.
DOI: https://doi.org/10.1145/3030207.3030226   Google Scholar

R. Pawlak, Testowanie oprogramowania. Podręcznik dla początkujących, Helion, Gliwice, 2014.
  Google Scholar

R. Dahiya, A. Shahid, Importance of Manual and Automation Testing, CS & IT Conference Proceedings 9(17) (2019) 6-13.
DOI: https://doi.org/10.5121/csit.2019.91719   Google Scholar

G. Fink, F. Ido, JavaScript Unit Testing, Pro Single Page Application Development: Using Backbone, JS and ASP. Net, Apress, Berkeley, 2014.
DOI: https://doi.org/10.1007/978-1-4302-6674-7_10   Google Scholar

D. Raghuvanshi, Introduction to Software Testing, International Journal of Trend in Scientific Research and Development (IJTSRD) 4(3) (2020) 797-800.
  Google Scholar

M. Vesikkala, Visual regression testing for web applications, Master's thesis, Aalto University, Espoo, 2014.
  Google Scholar

H. Achkar, Model Based Testing of Web Applications, The Science Technicians' Association of New Zealand Conference (2010) 11-19.
  Google Scholar

Z. Qian, M. Huaikou, Z. Hongwei, a practical web testing model for web application testing, 2007 third international IEEE conference on signal-image technologies and internet-based system (2007) 434-441.
DOI: https://doi.org/10.1109/SITIS.2007.16   Google Scholar

N. Antunes, M. Vieira, Penetration testing for web services, Computer 47(2) (2013) 30-36.
DOI: https://doi.org/10.1109/MC.2013.409   Google Scholar

H. Saleh, JavaScript Unit Testing, Packt Publishing, Mumbai 2013.
  Google Scholar

T. Kleivane, Unit Testing with TDD in JavaScript, Master's thesis, Institutt for datateknikk og informasjonsvitenskap, Trondheim, 2011.
  Google Scholar

B. Kaalra, and K. Gowthaman, Cross Browser Testing Using Automated Test Tools, International Journal of Advanced Studies in Computers, Science and Engineering 3(10) (2014) 7-13.
  Google Scholar

P. Tonella, R. Filippo, Web Testing: a Roadmap for the Empirical Research, Seventh IEEE International Symposium on Web Site Evolution (2005) 63-70.
  Google Scholar

H. V. Gamido, M. V. Gamido, Comparative review of the features of automated software testing tools, International Journal of Electrical and Computer Engineering (IJECE) 9(5) (2019) 4473-4480.
DOI: https://doi.org/10.11591/ijece.v9i5.pp4473-4478   Google Scholar

Download


Published
2023-09-30

Cited by

Superson, W., Smyk, T., & Plechawska-Wójcik, M. (2023). Comparative analysis of methods for testing web applications . Journal of Computer Sciences Institute, 28, 236–241. https://doi.org/10.35784/jcsi.3697

Authors

Wojciech Superson 

Politechnika Lubelska, Wydział Elektrotechniki i Informatyki Poland

Authors

Tomasz Smyk 
tomasz.smyk@pollub.edu.pl
Politechnika Lubelska, Wydział Elektrotechniki i Informatyki Poland

Authors

Małgorzata Plechawska-Wójcik 

Politechnika Lubelska, Wydział Elektrotechniki i Informatyki Poland

Statistics

Abstract views: 141
PDF downloads: 209