FlowForge: A Prototype for Generating User Stories and Gherkin Test Cases from BPMN with DMN Integration and Pattern Matching
DOI:
https://doi.org/10.21108/ijoict.v10i2.1015Keywords:
BPMN, DMN, User Story, Gherkin, Behavior-Driven Development, FlowForgeAbstract
Business Process Model and Notation (BPMN) is a powerful tool for modeling complex business workflows, but its potential for automation in testing remains underexplored. Manual testing of BPMN models is time-intensive and error-prone, necessitating automated approaches to generate test cases directly from the models. This paper presents FlowForge, a tool that transforms BPMN models into User Stories and Gherkin test cases, leveraging Decision Model and Notation (DMN) to enhance test completeness. By addressing challenges related to complex pathways, exception handling, and evolving process structures, FlowForge bridges gaps in existing prototypes, enabling automated test case generation with 100% path coverage within BPMN models. The study demonstrates the successful mapping of BPMN elements to detailed Gherkin syntax while identifying limitations, such as incomplete cross-pool verification and restricted pattern libraries. These findings highlight the tool's potential for improving the efficiency and reliability of BPMN-based testing and offer insights for future development to expand its applicability to more diverse business processes.
Downloads
References
[1] V. Sklyar and V. Kharchenko, “Domain Specific Modelling and Language for Safety-Critical and Security-Critical Requirements Engineering,” in 2022 12th International Conference on Dependable Systems, Services and Technologies (DESSERT), Athens, Greece: IEEE, Dec. 2022, pp. 1–7. doi: 10.1109/DESSERT58054.2022.10018738.
[2] D. Mateus, D. S. Da Silveira, and J. Araújo, “A Systematic Approach to Derive User Stories and Gherkin Scenarios from BPMN Models,” in Business Modeling and Software Design, vol. 483, B. Shishkov, Ed., in Lecture Notes in Business Information Processing, vol. 483. , Cham: Springer Nature Switzerland, 2023, pp. 235–244. doi: 10.1007/978-3-031-36757-1_15.
[3] G. Nagy and S. Rose, Discovery: Explore behaviour using examples. CreateSpace Independent Publishing Platform, 2018.
[4] D. Chelimsky, Ed., The RSpec book: behaviour-driven development with RSpec, Cucumber, and Friends. Lewisville, Tex: Pragmatic, 2010.
[5] S. Rose and G. Nagy, Formulation: Document examples with Given/When/Then. Independently published, 2021.
[6] Dion Moult and Thomas Krijnen, “Compliance checking on building models with the Gherkin language and Continuous Integration,” Proc. EG-ICE 2020 Workshop Intell. Comput. Eng., pp. 294–303, 2020, doi: 10.14279/DEPOSITONCE-9977.
[7] K. Schneid, H. Kuchen, S. Thöne, and S. Di Bernardo, “Uncovering data-flow anomalies in BPMN-based process-driven applications,” in Proceedings of the 36th Annual ACM Symposium on Applied Computing, Virtual Event Republic of Korea: ACM, Mar. 2021, pp. 1504–1512. doi: 10.1145/3412841.3442025.
[8] T. Lopes and S. Guerreiro, “Assessing business process models: a literature review on techniques for BPMN testing and formal verification,” Bus. Process Manag. J., vol. 29, no. 8, pp. 133–162, Dec. 2023, doi: 10.1108/BPMJ-11-2022-0557.
[9] P. Von Olberg and L. Strey, “Approach to Generating Functional Test Cases from BPMN Process Diagrams,” in 2022 IEEE 30th International Requirements Engineering Conference Workshops (REW), Melbourne, Australia: IEEE, Aug. 2022, pp. 185–189. doi: 10.1109/REW56159.2022.00042.
[10] A. Yazdani Seqerloo, M. J. Amiri, S. Parsa, and M. Koupaee, “Automatic test cases generation from business process models,” Requir. Eng., vol. 24, no. 1, pp. 119–132, Mar. 2019, doi: 10.1007/s00766-018-0304-3.
[11] J. L. De Moura, A. S. Charao, J. C. D. Lima, and B. De Oliveira Stein, “Test case generation from BPMN models for automated testing of Web-based BPM applications,” in 2017 17th International Conference on Computational Science and Its Applications (ICCSA), Trieste, Italy: IEEE, Jul. 2017, pp. 1–7. doi: 10.1109/ICCSA.2017.7999652.
[12] A. Paiva, N. Flores, J. Faria, and J. Marques, “End-to-end Automatic Business Process Validation,” Procedia Comput. Sci., vol. 130, pp. 999–1004, Jan. 2018, doi: 10.1016/j.procs.2018.04.104.
[13] K. Schneid, L. Stapper, S. Thone, and H. Kuchen, “Automated Regression Tests: A No-Code Approach for BPMN-based Process-Driven Applications,” in 2021 IEEE 25th International Enterprise Distributed Object Computing Conference (EDOC), Gold Coast, Australia: IEEE, Oct. 2021, pp. 31–40. doi: 10.1109/EDOC52215.2021.00014.
[14] B. Boonmepipit and T. Suwannasart, “Test Case Generation from BPMN with DMN,” in Proceedings of the 2019 3rd International Conference on Software and e-Business, Tokyo Japan: ACM, Dec. 2019, pp. 92–96. doi: 10.1145/3374549.3374582.
[15] Object Management Group, “Business Process Model and Notation (BPMN), Version 2.0.” 2014. [Online]. Available: https://www.omg.org/spec/BPMN
[16] J. Recker, “Opportunities and constraints: the current struggle with BPMN,” Bus. Process Manag. J., vol. 16, no. 1, pp. 181–201, Feb. 2010, doi: 10.1108/14637151011018001.
[17] C. Nonchot and T. Suwannasart, “A Tool for Generating Test Case from BPMN Diagram with a BPEL Diagram,” Hong Kong, 2016.
[18] P. Pokharel and P. Vaidya, A Study of User Story in Practice. 2020, p. 5. doi: 10.1109/ICDABI51230.2020.9325670.
Downloads
Published
How to Cite
Issue
Section
License

This work is licensed under a Creative Commons Attribution 4.0 International License.
Manuscript submitted to IJoICT has to be an original work of the author(s), contains no element of plagiarism, and has never been published or is not being considered for publication in other journals. Author(s) shall agree to assign all copyright of published article to IJoICT. Requests related to future re-use and re-publication of major or substantial parts of the article must be consulted with the editors of IJoICT.