Skip to main content

GUI Testing for Introductory Object-Oriented Programming Exercises

  • Chapter
  • First Online:
Computational Science/Intelligence & Applied Informatics (CSII 2018)

Part of the book series: Studies in Computational Intelligence ((SCI,volume 787))

  • 667 Accesses

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 109.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

References

  1. Ruiz, A., Price, Y.W.: Test-driven GUI development with TestNG and Abbot. IEEE Softw. 24(3), 51–57 (2007)

    Article  Google Scholar 

  2. 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)

    Article  Google Scholar 

  3. Mlynarski, M., Güldali, B., Weißleder, S., Engels, G.: Model-based testing: achievements and future challenges. Adv. Comput. (Elsevier) 86, 1–39 (2012)

    Google Scholar 

  4. Adamoli, A., Zaparanuks, D., Jovic, M.: Automated GUI performance testing. Softw. Qual. J. (Springer) 19(4), 801–839 (2011)

    Article  Google Scholar 

  5. Schildt, H.: Introducing JavaFX 8 Programming. McGraw-Hill (2015)

    Google Scholar 

  6. 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)

    Google Scholar 

  7. Gray, G.R., Higgins, C.A.: An introspective approach to marking graphical user interfaces. ACM SIGCSE Bull. 38(3), 43–47 (2006)

    Article  Google Scholar 

  8. 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)

    Article  Google Scholar 

  9. 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)

    Google Scholar 

  10. 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)

    Google Scholar 

  11. 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)

    Google Scholar 

  12. 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)

    Google Scholar 

  13. 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)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Ushio Inoue .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2019 Springer International Publishing AG, part of Springer Nature

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

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

Publish with us

Policies and ethics