Implementation of Automated Test Case Generation in REST API on Android-Based Koperasi Application
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
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.


Copyright (c) 2023 Journal of Information Systems and Informatics

This work is licensed under a Creative Commons Attribution 4.0 International License.
- I certify that I have read, understand and agreed to the Journal of Information Systems and Informatics (Journal-ISI) submission guidelines, policies and submission declaration. Submission already using the provided template.
- I certify that all authors have approved the publication of this and there is no conflict of interest.
- I confirm that the manuscript is the authors' original work and the manuscript has not received prior publication and is not under consideration for publication elsewhere and has not been previously published.
- I confirm that all authors listed on the title page have contributed significantly to the work, have read the manuscript, attest to the validity and legitimacy of the data and its interpretation, and agree to its submission.
- I confirm that the paper now submitted is not copied or plagiarized version of some other published work.
- I declare that I shall not submit the paper for publication in any other Journal or Magazine till the decision is made by journal editors.
- If the paper is finally accepted by the journal for publication, I confirm that I will either publish the paper immediately or withdraw it according to withdrawal policies
- I Agree that the paper published by this journal, I transfer copyright or assign exclusive rights to the publisher (including commercial rights)