Research and Application of Automatic Test Case Generation Method Based on User Interface and Business Flow Chart
Abstract
Test case design is a critical task in software testing. Manual test case generation is time-consuming and challenging to maintain. To address these issues, this paper proposes a method for automatically generating test cases based on user interface and flowchart analysis. Firstly, YOLOv8 object detection and EasyOCR text recognition are used to identify control information within the interface. Secondly, the Faker library is utilized to generate corresponding test data. Finally, a text generation program is employed to transform control information and test data into a set of interface test cases. Additionally, a circular traversal algorithm is applied to traverse the flowchart, generating test paths that are combined with interface test cases to form a complete set of test cases. To validate the effectiveness of the method, corresponding tools were developed, and 209 test cases were generated for three systems using this approach. Experimental results demonstrate that our proposed method performs well in terms of test case generation efficiency, defect discovery, and maintainability.
Keywords
Test case automatic generation, YOLOv8, Loop traversal algorithm
Citation Format:
Lei Xiao, Ru-Xue Bai, Ke-Shou Wu, Rong-Shang Chen, "Research and Application of Automatic Test Case Generation Method Based on User Interface and Business Flow Chart," Journal of Internet Technology, vol. 26, no. 3 , pp. 367-378, May. 2025.
Lei Xiao, Ru-Xue Bai, Ke-Shou Wu, Rong-Shang Chen, "Research and Application of Automatic Test Case Generation Method Based on User Interface and Business Flow Chart," Journal of Internet Technology, vol. 26, no. 3 , pp. 367-378, May. 2025.
Refbacks
- There are currently no refbacks.
Published by Executive Committee, Taiwan Academic Network, Ministry of Education, Taipei, Taiwan, R.O.C
JIT Editorial Office, Office of Library and Information Services, National Dong Hwa University
No. 1, Sec. 2, Da Hsueh Rd., Shoufeng, Hualien 974301, Taiwan, R.O.C.
Tel: +886-3-931-7314 E-mail: jit.editorial@gmail.com