BlackBoxTestGen: An Automatic Black-Box Test Case Generation Framework
Abstract
1. Introduction
- The proposed framework facilitates architectural unification via a shared XML basis. It integrates the existing automatic framework of TestGen, SYNTest, and STATETest into a single pipeline driven by a redesigned, centralised XML intermediate representation. As this shared XML simultaneously feeds a data dictionary, a decision tree, and a state machine, it seamlessly merges rule-based ECP, Regular Expression (RegEx) syntax, and state transition testing into a single-driven pipeline. This creates the benefit of the drift of the testing technique and manual stitching errors being eliminated across functional, format, and behavioral spaces. To ensure testing coverage across three testing techniques, the framework also enables the calculation of accumulative coverage.
- We developed a web-based prototype to demonstrate the effectiveness and usability of the proposed framework. The accuracy of the prototype was evaluated by professional software testing experts. A comparison was conducted between the test cases generated by the prototype and the expert benchmark results. These rigorous evaluations confirm the practical viability, significantly minimising manual engineering effort to deliver compact and reproducible test suites.
- We demonstrate the algorithmic optimisation of BlackBoxTestGen through two parts of evaluation experiments. In the first part, the parameters are scaled up to isolate the algorithmic complexity and structural overhead of each technique. These isolated stress tests prove that the framework performs computational resilience to handle extreme theoretical loads. Then, the integrated efficiency is evaluated across three diverse systems (HRMS, OSPS, and SSMS). This experiment confirms that our proposed integrated framework handles close-to-realistic scaling of variables and transitions with robust sub-linear resource growth and maintains stable peak memory usage.
2. Materials and Approach
2.1. BlackBoxTestGen Framework
2.2. Pre-Processing Step
2.3. Test Case Generation Step
2.3.1. Rule-Based ECP
2.3.2. Syntax Testing
2.3.3. State Transition Testing
2.4. XML Structure
2.4.1. XML Structure of Data Dictionary
2.4.2. XML Structure of Decision Tree
2.4.3. XML Structure of State Machine Diagram
2.5. Test Case Coverage Calculation
3. Proof of Concepts
3.1. Case Study Formulation
3.2. BlackBoxTestGen Prototyping
3.3. Prototype Evaluation
3.3.1. Accuracy Evaluation
3.3.2. Computational Efficiency and Scalability Evaluation
4. Lessons Learned and Discussion
4.1. Discussion
4.2. Comparison to Related Approaches
4.2.1. Comparison of Functionality and Capabilities
4.2.2. Comparison of Performance
4.3. Methodological Limitations
5. Conclusions and Future Work
6. Deployment and Availability
Author Contributions
Funding
Data Availability Statement
Conflicts of Interest
References
- Jorgensen, P.C. Software Testing: A Craftsman’s Approach, 4th ed.; CRC Press: Boca Raton, FL, USA, 2013. [Google Scholar]
- Jia, X. The Role and Importance of Software Testing in Software Quality Management. J. Ind. Eng. Manag. 2023, 1, 39–45. [Google Scholar] [CrossRef] [Scilit]
- Pressman, R. Software Engineering: A Practitioner’s Approach, 7th ed.; McGraw-Hill, Inc.: Columbus, OH, USA, 2009. [Google Scholar]
- Pargaonkar, S. A Study on the Benefits and Limitations of Software Testing Principles and Techniques. Int. J. Adv. Res. Sci. Commun. Technol. 2023, 3, 282–286. [Google Scholar]
- Maspupah, A. Literature review: Advantages and disadvantages of black box and white box testing methods. J. Comput. Inf. Technol. 2025, 21, 151–162. [Google Scholar] [CrossRef] [Scilit]
- Gamido, H.V.; Gamido, M.V. Comparative review of the features of automated software testing tools. Int. J. Electr. Comput. Eng. 2023, 9, 4473–4478. [Google Scholar] [CrossRef] [Scilit]
- Darmawan, V.I.; Sudarmilah, E. The development of website based point of sales system at Kedai 3 Sahabat. AIP Conf. Proc. 2023, 2727, 040002. [Google Scholar]
- Hozairi, H.; Buhari, B.; Rofiudin, R.; Wahyudi, F.; Alim, S. Application of black box testing and PIECES framework for Bakamla messenger application development. AIP Conf. Proc. 2025, 3250, 050001. [Google Scholar]
- Purwanti, S.; Febriani, A.; Mardeni, M.; Irawan, Y. Temperature Monitoring System for Egg Incubators Using Raspberry Pi3 Based on Internet of Things (IoT). J. Robot. Control 2021, 2, 349–352. [Google Scholar] [CrossRef] [Scilit]
- Muhardi; Gunawan, S.I.; Irawan, Y.; Devis, Y. Design of Web Based LMS (Learning Management System) in SMAN 1 Kampar Kiri Hilir. J. Appl. Eng. Technol. Sci. 2020, 1, 70–76. [Google Scholar]
- Hadikin, V.B.; Wiratama, J. Web-Based ERP System Prototype for Enhanced Inventory and Supply Chain Management in the Logistics Industry. Ultim. Infosys J. Ilmu Sist. Inf. 2024, 15, 138–145. [Google Scholar] [CrossRef] [Scilit]
- Alshamaa, Z.; Saleem, N. Black box software testing techniques: A literature review. Passer J. Basic Appl. Sci. 2025, 7, 1001–1011. [Google Scholar]
- Sonika; Pal, V.; Chauhan, N.; Kumar, H. A review of the software testing tools. Int. J. Sci. Res. Arch. 2024, 12, 2387–2392. [Google Scholar] [CrossRef] [Scilit]
- Okezie, F.; Odun-Ayo, I.; Bogle, S. A Critical Analysis of Software Testing Tools. J. Phys. Conf. Ser. 2019, 1378, 042030. [Google Scholar] [CrossRef] [Scilit]
- Sneha, K.; Malle, G.M. Research on software testing techniques and software automation testing tools. In Proceedings of the 2017 International Conference on Energy, Communication, Data Analytics and Soft Computing (ICECDS), Chennai, India, 1–2 August 2017; pp. 77–81. [Google Scholar]
- Izzat, S.K.; Saleem, N.N. Software Testing Techniques and Tools: A Review. J. Educ. Sci. 2023, 32, 30–44. [Google Scholar] [CrossRef] [Scilit]
- Selenium Project. The Selenium Browser Automation Project. Available online: https://www.selenium.dev/documentation/ (accessed on 21 December 2025).
- Oracle. Oracle® Functional Testing. OpenScript User’s Guide, Version 12.1.0.1; Oracle Corporation: Redwood Shores, CA, USA, 2015. Available online: https://docs.oracle.com/cd/E59558_01/OPSUG/title.htm (accessed on 19 April 2026).
- xUnit.net. About xunit.net. Available online: https://xunit.net/ (accessed on 21 December 2025).
- Nogueira, S.; Araujo, H.; Araujo, R.; Iyoda, J.; Sampaio, A. Test case generation, selection and coverage from natural language. Sci. Comput. Program. 2019, 181, 84–110. [Google Scholar] [CrossRef] [Scilit]
- Intana, A.; Sriraksa, T.; Kaewyao, S.; Phetrupan, J.; Singsom, K. The prototype development of automatic test case generation for supporting system and user acceptance testing. In Proceedings of the 9th National Conference on Information Technology (NCIT), Bangkok, Thailand, 2017; Council of IT Deans of Thailand: Bangkok, Thailand, 2017; pp. 246–252. [Google Scholar]
- Intana, A.; Thongthep, M.; Thepnimit, P.; Saethapan, P.; Monpipat, T. SYNTest: Prototype of Syntax Test Case Generation Tool. In Proceedings of the 2020 5th International Conference on Information Technology (InCIT), Chonburi, Thailan, 21–22 October 2020; pp. 259–264. [Google Scholar]
- Intana, A.; Sawedsuthiphan, A. STATETest: An Automatic Test Case Generation Framework for State Transition Testing. In Proceedings of the 2023 20th International Conference on Electrical Engineering/Electronics, Computer, Telecommunications and Information Technology (ECTI-CON), Nakhon Phanom, Thailand, 9–12 May 2023; pp. 1–4. [Google Scholar]
- Intana, A.; Tantayakul, K.; Kaewnaka, P. BlackBoxTestGen Framework and Tool. Available online: https://sites.google.com/phuket.psu.ac.th/blackboxtestgen/ (accessed on 21 December 2025).
- World Wide Web Consortium. State Chart XML (SCXML): State Machine Notation for Control Abstraction. W3C Recommendation. Available online: https://www.w3.org/TR/scxml/ (accessed on 6 December 2025).
- Intana, A.; Laosen, K.; Nuanchan, P.; Pattanakit, N.; Dermchai, S. An NLP-Based Approach for Detecting Ambiguity of Thai Software Requirements Specification. In Proceedings of the 2024 21st International Joint Conference on Computer Science and Software Engineering (JCSSE), Phuket, Thailand, 19–22 June 2024; pp. 99–106. [Google Scholar]
- Ting, K.M. Precision and Recall. In Encyclopedia of Machine Learning; Sammut, C., Webb, G.I., Eds.; Springer: Boston, MA, USA, 2010; p. 781. [Google Scholar]
- Anwar, N.; Kar, S. Review Paper on Various Software Testing Techniques & Strategies. Glob. J. Comput. Sci. Technol. 2019, 19, 43–49. [Google Scholar] [CrossRef] [Scilit]
- Expleo Group. Testona. Available online: https://products.expleogroup.com/testona/ (accessed on 6 December 2025).
- SigmaZone. Pro-Test Tutorial. Available online: https://sigmazone.com/protest/ (accessed on 18 November 2025).
- IBM. IBM Engineering Systems Design Rhapsody. Available online: https://www.ibm.com/products/engineering-rhapsody (accessed on 6 December 2025).
- Shahbaz, M.; McMinn, P.; Stevenson, M. Automatic Generation of Valid and Invalid Test Data for String Validation Routines Using Web Searches and Regular Expressions. Sci. Comput. Program. 2015, 97, 405–425. [Google Scholar] [CrossRef] [Scilit]
- Samuel, P.; Mall, R.; Bothra, A.K. Automatic test case generation using unified modeling language (UML) state diagrams. IET Softw. 2008, 2, 79–93. [Google Scholar] [CrossRef] [Scilit] [PubMed]














| Variable | Partition | Input Data Range | Type | Test Data |
|---|---|---|---|---|
| NumStay | 1 | 1–2 | Valid | 1 |
| 2 | 3–7 | Valid | 4 | |
| 3 | 8–15 | Valid | 10 | |
| 4 | 16–30 | Valid | 21 | |
| 5 | <1 | Invalid | −1 | |
| 6 | >30 | Invalid | 45 | |
| GuestType | 1 | Regular | Valid | Regular |
| 2 | Silver | Valid | Silver | |
| 3 | Platinum | Valid | Platinum | |
| 4 | N/A | Invalid | N/A |
| Type | Syntax | RegEx Mapping |
|---|---|---|
| 1. Range of values | value1 .. value2 | [value1–value2] |
| 2. List of values | value1 |value2 |… | (value1 |value2 |…) |
| 3. Iteration | min{item}max | item{min,max} |
| 4. N times | n{item}n | item{n} |
| 5. Optional value | [value] | value? |
| 6. Sequence | item + item | (?:item)+ |
| 7. Literal values | “A”,“1”,“word” | (A),(1),(word) |
| TC# | Email Input | Type | Classification/Partition |
|---|---|---|---|
| 1 | test@gmail.com | Valid | Standard-Format |
| 2 | a1_b2@sub.domain.edu | Valid | Long-Domain-Multi-Dot |
| 3 | test@gmail.company | Invalid | TLD-Length-Exceeded |
| 4 | @com.gmail.test | Invalid | Syntax-Sequence-Error |
| 5 | test@gmail | Invalid | Omission-TLD |
| 6 | test@gmail.com#123 | Invalid | Illegal-Char-Addition |
| 7 | a+b.c%d@x.tv | Valid | Special-Symbols-Local |
| 8 | 123456789@abc.com | Valid | Numeric-Local-Part |
| System | ECP | Business Rules | Syntax | State Transition | |||
|---|---|---|---|---|---|---|---|
| #Var. | #Part. | #Rules | #Nested | #Var. | #States | #Trans. | |
| HRMS | 3 | 12 | 12 | 2 | 8 | 3 | 6 |
| OSPS | 4 | 19 | 48 | 3 | 5 | 6 | 11 |
| SSMS | 4 | 18 | 36 | 3 | 7 | 6 | 18 |
| Testing Technique | System | Number of Test Case | Precision | Recall | F-Measure | |
|---|---|---|---|---|---|---|
| Expert/Manual | Prototype | |||||
| Rule-based ECP | HRMS | 15 | 15 | 100% | 100% | 100% |
| OSPS | 51 | 53 | 96.23% | 100% | 98.08% | |
| SSMS | 39 | 41 | 95.12% | 100% | 97.50% | |
| Syntax Testing | HRMS | 40 | 40 | 100% | 100% | 100% |
| OSPS | 25 | 25 | 100% | 100% | 100% | |
| SSMS | 35 | 35 | 100% | 100% | 100% | |
| State Transition | HRMS | 18 | 18 | 100% | 100% | 100% |
| OSPS | 52 | 53 | 98.11% | 100% | 99.05% | |
| SSMS | 58 | 60 | 96.67% | 100% | 98.31% | |
| System | Total TCs | Tparse (ms) | Tgen(recp) (ms) | Tgen(syn) (ms) | Tgen(state) (ms) | Ttotal (ms) | Mpeak (MB) |
|---|---|---|---|---|---|---|---|
| HRMS | 73 | 4.942 | 0.327 | 0.968 | 0.28 | 6.517 | 103.676 |
| OSPS | 131 | 7.781 | 0.567 | 0.208 | 0.413 | 8.969 | 104.117 |
| SSMS | 136 | 9.862 | 0.768 | 0.442 | 0.861 | 11.933 | 104.316 |
| Criteria | BlackBox TestGen (Proposed) | TestGen [21] | SYNTest [22] | STATETest [23] | UTG [33] | ProTest [30] | TESTONA [29] | IBM Rhapsody [31] |
|---|---|---|---|---|---|---|---|---|
| Testing Technique | ECP, Syntax, State | ECP | Syntax | State | State | ECP | ECP | N/A |
| Source of Test Case Generation | SRS | SRS | SRS | SRS | SRS | GUI | GUI | Class and Sequence Diagrams |
| Test Case Generation | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| Test Case Coverage Analysis | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| Free (F)/Commercial (C) | F | F | F | F | N/A | C | C | C |
| Standalone (S)/Web-based (W) | W | S | W | W | S | S | S | S |
| Criteria | BlackBoxTestGen (Proposed) | Academic Standalones (TestGen [21], SYNTest [22], STATETest, [23]) | UTG [33] | Commercial GUI-Based (TESTONA [29], ProTest [30]) | Commercial UML-Based (IBM Rhapsody [31]) |
|---|---|---|---|---|---|
| Usability and Scalability | High | Low | Low | Moderate | Moderate/Low |
| Generation Time and Performance | Highly Optimised | Fast execution | Slower | Delayed Workflow | Enterprise-Grade |
| Number of Test Cases Produced | Compact and Reproducible | Varies by scope | Highly Compressed | Dependent on Interface | Comprehensive |
| Coverage Quality | Multi-Dimensional | One-Dimensional | Incomplete | Restricted | High |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Intana, A.; Tantayakul, K.; Kaewnaka, P. BlackBoxTestGen: An Automatic Black-Box Test Case Generation Framework. Computers 2026, 15, 263. https://doi.org/10.3390/computers15050263
Intana A, Tantayakul K, Kaewnaka P. BlackBoxTestGen: An Automatic Black-Box Test Case Generation Framework. Computers. 2026; 15(5):263. https://doi.org/10.3390/computers15050263
Chicago/Turabian StyleIntana, Adisak, Kuljaree Tantayakul, and Pongsakorn Kaewnaka. 2026. "BlackBoxTestGen: An Automatic Black-Box Test Case Generation Framework" Computers 15, no. 5: 263. https://doi.org/10.3390/computers15050263
APA StyleIntana, A., Tantayakul, K., & Kaewnaka, P. (2026). BlackBoxTestGen: An Automatic Black-Box Test Case Generation Framework. Computers, 15(5), 263. https://doi.org/10.3390/computers15050263

