Nothing Special   »   [go: up one dir, main page]

skip to main content
10.1145/3393822.3432338acmotherconferencesArticle/Chapter ViewAbstractPublication PagesesseConference Proceedingsconference-collections
research-article

Testing Event-Driven Programs in Processing

Published: 21 December 2020 Publication History

Abstract

Event-driven programming is a paradigm that is widely used in many fields. Processing is a set of programming languages and environments specialized in event-driven programming for interactive graphical applications. It provides only low-level event-handling functions, which imposes difficulty on novice programmers in programming complex behaviors. This paper proposes a method for unit-testing event-driven Processing programs. It allows writing testable Processing programs and test programs in Java. To demonstrate how it works, this paper presents case studies on testing whether mouse and key events are correctly handled.

References

[1]
F. Dabek, N. Zeldovich, F. Kaashoek, D. Mazières, and R. Morris. Event-driven programming for robust software. In Proc. ACM SIGOPS EW, pages 186--189, 2002.
[2]
J. Fischer, R. Majumdar, and T. Millstein. Tasks: Language support for event-driven programming. In Proc. ACM PEPM, pages 134--143, 2007.
[3]
A. Milicevic, D. Jackson, M. Gligoric, and D. Marinov. Model-based, event-driven programming paradigm for interactive web applications. In Proc. ACM Onward!, pages 17--36, 2013.
[4]
B. Fry and C. Reas. Processing. https://processing.org/
[5]
C. Reas and B. Fry. Processing: Programming for the media arts. AI Soc., 20(4):526--538, 2006.
[6]
ISO/IEC/IEEE. Systems and software engineering---vocabulary. Intl. Std. 24765, 2017.
[7]
P. Runeson. A survey of unit testing practices. IEEE Softw., 23(4):22--29, 2006.
[8]
K. Beck and E. Gamma. Test-infected: Programmers love writing tests. Java Report, 3(7):37--50, 1998.
[9]
P. Louridas. JUnit: Unit testing and coding in tandem. IEEE Softw., 22(4):12--15, 2005.
[10]
M. Caswell, V. Aravamudhan, and K. Wilson. jfcUnit user documentation, 2004. http://jfcunit.sourceforge.net/
[11]
T. Wall. Abbot framework for automated testing of Java GUI components and programs, 2011. http://abbot.sourceforge.net/
[12]
B. N. Nguyen, B. Robbins, I. Banerjee, and A. M. Memon. GUITAR: An innovative tool for automated testing of GUI-driven software. Autom. Softw. Eng., 21(1):65--105, 2014.
[13]
A. Timmons. Unit testing and test driven development, 2017. https://p5js.org/learn/tdd.html
[14]
D. Janzen and H. Saiedian. Test-driven development: Concepts, taxonomy, and future direction. IEEE Comput., 38(9):43--50, 2005.
[15]
B. Fry. Visualizing Data: Exploring and Explaining Data with the Processing Environment, chapter 8, pages 220--263. O'Reilly, 2007.

Cited By

View all
  • (2023)Metric Suite for Event-Driven Software Systems2023 International Conference on Advances in Computation, Communication and Information Technology (ICAICCIT)10.1109/ICAICCIT60255.2023.10466151(1140-1145)Online publication date: 23-Nov-2023

Recommendations

Comments

Please enable JavaScript to view thecomments powered by Disqus.

Information & Contributors

Information

Published In

cover image ACM Other conferences
ESSE '20: Proceedings of the 2020 European Symposium on Software Engineering
November 2020
220 pages
ISBN:9781450377621
DOI:10.1145/3393822
Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permitted. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specific permission and/or a fee. Request permissions from [email protected]

In-Cooperation

  • UNIBO: University of Bologna

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 21 December 2020

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. Processing
  2. Unit testing
  3. event-driven programming

Qualifiers

  • Research-article
  • Research
  • Refereed limited

Funding Sources

Conference

ESSE 2020

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • Downloads (Last 12 months)16
  • Downloads (Last 6 weeks)2
Reflects downloads up to 25 Jan 2025

Other Metrics

Citations

Cited By

View all
  • (2023)Metric Suite for Event-Driven Software Systems2023 International Conference on Advances in Computation, Communication and Information Technology (ICAICCIT)10.1109/ICAICCIT60255.2023.10466151(1140-1145)Online publication date: 23-Nov-2023

View Options

Login options

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Figures

Tables

Media

Share

Share

Share this Publication link

Share on social media