A test case generation method and device, and a storage medium
By decomposing the communication protocol into multi-layered protocols and constructing a structured and rule-based binary tree to generate test cases, the problem of low test coverage in existing technologies is solved, achieving comprehensive coverage of the communication protocol and improving reliability.
CN119383123BActive Publication Date: 2026-06-09GUANGDONG POWER GRID CO LTD +1
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GUANGDONG POWER GRID CO LTD
- Filing Date
- 2024-11-08
- Publication Date
- 2026-06-09
Smart Images

Figure CN119383123B_ABST
Abstract
The application discloses a test case generation method and device and a storage medium, wherein the method comprises the following steps: decomposing a target protocol into multiple hierarchical protocols; constructing a structure binary tree and a corresponding rule binary tree of each hierarchical protocol; traversing each structure binary tree to generate a one-dimensional matrix corresponding to each structure binary tree; and traversing each rule binary tree to fill first node data of each rule binary tree into the one-dimensional matrix of the corresponding structure binary tree to generate a test case of the target protocol. According to the application, the structure binary tree and the corresponding rule binary tree of each hierarchical protocol are constructed, and the first node data of each rule binary tree is filled into the one-dimensional matrix of the corresponding structure binary tree to generate the test case, so that each data field can be filled according to the corresponding generation rule, and the corresponding test case can be generated based on the entire target protocol, all levels of the target protocol can be covered, and the test coverage rate is effectively improved.
Need to check novelty before this filing date? Find Prior Art