Implementation of Automated Test Case Generation in REST API on Android-Based Koperasi Application

  • Syamsul Mujahidin Institut Teknologi Kalimantan, Indonesia
  • M. Reinaldy Hermawan Institut Teknologi Kalimantan, Indonesia
  • Chandra Cahyo Utomo Institut Teknologi Kalimantan, Indonesia
Keywords: Android, Koperasi, REST API, Testing, EvoMaster

Abstract

This study is focused on developing a data collection system to enhance the performance of Koperasi, an organization with complex data collection. An Android application was created to automate the processing of member and transaction data, significantly improving data processing efficiency. However, building a quality system takes time and requires error-free data processing. To achieve this, Automated Test Case Generation with EvoMaster was used to test the REST API and identify errors. The testing process went through several iterations until almost no errors were found. EvoMaster generated over 19.5 million scenarios and found 78 errors in the REST API in 58 hours, which were promptly fixed between iterations. The use of EvoMaster not only reduced development time but also helped maintain code quality.

Downloads

Download data is not yet available.

References

H. Hendra, S. N. Arfandi, Andriasan Sudarso, and U. T. H. H. M. P. S. M. B. Vivi Candra, Manajemen Koperasi. Yayasan Kita Menulis, 2021.

H. Tolle, A. Pinandito, A. P. Kharisma, and R. K. Dewi, Pengembangan Aplikasi Perangkat Bergerak. Universitas Brawijaya Press, 2017.

A. G. Clark, N. Walkinshaw, and R. M. Hierons, “Test case generation for agent-based models: A systematic literature review,” Inf Softw Technol, vol. 135, p. 106567, Jul. 2021, doi: 10.1016/J.INFSOF.2021.106567.

N. Gupta, V. Yadav, and M. Singh, “Automated Regression Test Case Generation for Web Application,” ACM Computing Surveys (CSUR), vol. 51, no. 4, Aug. 2018, doi: 10.1145/3232520.

M. Zhang, B. Marculescu, and A. Arcuri, “Resource-based Test Case Generation for RESTful Web Services,” GECCO 2019 - Proceedings of the 2019 Genetic and Evolutionary Computation Conference, pp. 1426–1434, Jul. 2019, doi: 10.1145/3321707.3321815.

D. Stallenberg, M. Olsthoorn, and A. Panichella, “Improving Test Case Generation for REST APIs Through Hierarchical Clustering,” Proceedings - 2021 36th IEEE/ACM International Conference on Automated Software Engineering, ASE 2021, pp. 117–128, 2021, doi: 10.1109/ASE51524.2021.9678586.

D. Corradini, A. Zampieri, M. Pasqua, and M. Ceccato, “Empirical Comparison of Black-box Test Case Generation Tools for RESTful APIs,” Proceedings - IEEE 21st International Working Conference on Source Code Analysis and Manipulation, SCAM 2021, pp. 226–236, 2021, doi: 10.1109/SCAM52516.2021.00035.

A. Panichella, F. M. Kifetew, and P. Tonella, “Automated test case generation as a many-objective optimisation problem with dynamic selection of the targets,” IEEE Transactions on Software Engineering, vol. 44, no. 2, pp. 122–158, 2017.

A. Tosun, M. Ahmed, B. Turhan, and N. Juristo, “On the effectiveness of unit tests in test-driven development,” ACM International Conference Proceeding Series, pp. 113–122, May 2018, doi: 10.1145/3202710.3203153.

A. Arcuri, “RESTful API automated test case generation with EvoMaster,” ACM Transactions on Software Engineering and Methodology (TOSEM), vol. 28, no. 1, pp. 1–37, 2019.

M. S. Rumetna, T. N. Lina, and A. B. Santoso, “Rancang Bangun Aplikasi Koperasi Simpan Pinjam Menggunakan Metode Research And Development,” Jurnal SIMETRIS, vol. 11, no. 1, 2020.

I. G. T. Isa and G. P. Hartawan, “Perancangan Aplikasi Koperasi Simpan Pinjam Berbasis Web (Studi Kasus Koperasi Mitra Setia),” Jurnal Ilmiah Ilmu Ekonomi, vol. 5, no. 10, pp. 129–151, 2017.

D. C. Lee, K. M. Seo, H. M. Park, and B. S. Kim, “Simulation Testing of Maritime Cyber-Physical Systems: Application of Model-View-ViewModel,” Complexity, vol. 2022, 2022, doi: 10.1155/2022/1742772.

T. Lou, “A comparison of Android native app architecture MVC, MVP and MVVM,” Eindhoven University of Technology, 2016.

R. C. Martin, J. Grenning, S. Brown, K. Henney, and J. Gorman, Clean architecture: a craftsman’s guide to software structure and design, no. s 31. Prentice Hall, 2018.

M. Zhang and A. Arcuri, “Enhancing Resource-Based Test Case Generation for RESTful APIs with SQL Handling,” in Search-Based Software Engineering: 13th International Symposium, SSBSE 2021, Bari, Italy, October 11–12, 2021, Proceedings, 2021, pp. 103–117. doi: 10.1007/978-3-030-88106-1_8.

Published
2023-02-20
Abstract views: 98 times
Download PDF: 63 times
How to Cite
Mujahidin, S., Reinaldy Hermawan, M., & Cahyo Utomo, C. (2023). Implementation of Automated Test Case Generation in REST API on Android-Based Koperasi Application. Journal of Information Systems and Informatics, 5(1), 123-133. https://doi.org/10.51519/journalisi.v5i1.431