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

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Research and Application of Automatic Test Case Generation Method Based on User Interface and Business Flow Chart

Ruxue Bai, Lei Xiao, R. Chen, Keshou Wu
網際網路技術學刊
Educational Technology and Assessment
article

Research and Application of Automatic Test Case Generation Method Based on User Interface and Business Flow Chart

Ruxue Bai, Lei Xiao, R. Chen, Keshou Wu
article en

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.

網際網路技術學刊Vol. 26(3)
Openalex Percentile: Top 84%
Educational Technology and Assessment
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.