Abstract
Automated testing is necessary in large classrooms where many students learn a programming language. This paper presents a method to test and score student programs with graphical user interfaces written in JavaFX. The method is based on scripts that analyzes the structure of programs under test and simulates user’s interactions. We implemented several utility methods to write the testing scripts easy. No additional software library is required to run the scripts. Preliminary evaluation results are shown on the developing and executing of scripts for real exercises in our introductory programming classrooms.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
References
Ruiz, A., Price, Y.W.: Test-driven GUI development with TestNG and Abbot. IEEE Softw. 24(3), 51–57 (2007)
Nguyen, B.N., Robbins, B., Banerjee, I., Memon, A.: GUITAR: an innovative tool for automated testing of GUI-driven software. Autom. Softw. Eng. (Springer) 21(1), 65–105 (2014)
Mlynarski, M., Güldali, B., Weißleder, S., Engels, G.: Model-based testing: achievements and future challenges. Adv. Comput. (Elsevier) 86, 1–39 (2012)
Adamoli, A., Zaparanuks, D., Jovic, M.: Automated GUI performance testing. Softw. Qual. J. (Springer) 19(4), 801–839 (2011)
Schildt, H.: Introducing JavaFX 8 Programming. McGraw-Hill (2015)
Ihantola, P., Ahoniemi, T., Karavirta, V., Seppälä, O.: Review of recent systems for automatic assessment of programming assignments. In: Proceedings of the 10th Koli Calling International Conference on Computing Education Research, pp. 86–93 (2010)
Gray, G.R., Higgins, C.A.: An introspective approach to marking graphical user interfaces. ACM SIGCSE Bull. 38(3), 43–47 (2006)
Thornton, M., Edwards, S.H., Tan, R.P., Pérez-Quiñones, M.: Supporting student-written tests of GUI programs. ACM SIGCSE Bull. 40(1), 537–541 (2008)
Ahmadzadeh, M., Janghorban, M., Jamasb, B.: JavaMarker extended: an Eclipse plugin to mark Java GUI programs. Int. J. Comput. Appl. 29(10), 47–51 (2011)
Snyder, J., Edwards, S.H., Pérez-Quiñones, M.A.: LIFT: taking GUI unit testing to new heights. In: Proceedings of the 42nd ACM Technical Symposium on Computer Science Education, pp. 643–648 (2011)
Kruk, G., Alves, O., Molinari, L., Roux, E.: Best practices for efficient development of JavaFX applications. In: Proceedings of the 16th International Conference on Accelerator and Large Experimental Control Systems, pp. 1078–1083 (2017)
Klammer, C., Ramler, R., Stummer, H.: Harnessing automated test case generators for GUI testing in industry. In: Proceedings of the 42th Euromicro Conference on Software Engineering and Advanced Applications, pp. 227–234 (2016)
Akahane, Y., Kitaya, H., Inoue, U.: Design and evaluation of automated scoring Java programming assignments. In: Proceedings of the 16th IEEE/ACIS International Conference on Software Engineering, Artificial Intelligence, Networking and Parallel/Distributed Computing, pp. 1–6 (2015)
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2019 Springer International Publishing AG, part of Springer Nature
About this chapter
Cite this chapter
Inoue, U. (2019). GUI Testing for Introductory Object-Oriented Programming Exercises. In: Lee, R. (eds) Computational Science/Intelligence & Applied Informatics. CSII 2018. Studies in Computational Intelligence, vol 787. Springer, Cham. https://doi.org/10.1007/978-3-319-96806-3_1
Download citation
DOI: https://doi.org/10.1007/978-3-319-96806-3_1
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-96805-6
Online ISBN: 978-3-319-96806-3
eBook Packages: Intelligent Technologies and RoboticsIntelligent Technologies and Robotics (R0)