Research and Application of Automatic Test Case Generation Method Based on User Interface and Business Flow Chart
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.
Authors
- Ruxue Bai (ORCID: https://orcid.org/0000-0002-1005-0058)
- Lei Xiao (ORCID: https://orcid.org/0000-0001-6716-0066)
- R. Chen (ORCID: https://orcid.org/0009-0007-4621-5022)
- Keshou Wu
Publication Details
- Journal
- 網際網路技術學刊
- Published
- 2025-05-26
- DOI
- https://doi.org/10.70003/160792642025052603009
- Primary Topic
- Educational Technology and Assessment
- Type
- article
- Field-Weighted Citation Impact
- 0.00