# US 2025/0156305 A1 · Method and apparatus for recording test case, storage medium, and computer device

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0156305 A1
- Document ID: US20250156305A1
- Status: Published application
- Kind: A1
- Application number: 18/733,926
- Filed: 2024-06-05
- Published: 2025-05-15
- Earliest claimed: 2023-11-13
- Assignees: Guangzhou Pinwei Software Co., Ltd.
- Applicants: Guangzhou Pinwei Software Co., Ltd.
- Inventors: Chaoyong CHEN
- Web page: https://patentgrep.com/patent/US20250156305A1

## CPC

- G06F 11/3684: {for test design, e.g. generating new test cases}
- G06F 11/3688: {for test execution, e.g. scheduling of test suites}
- G06F 11/36: Prevention of errors by analysis, debugging or testing of software
- G06F 11/3692: {for test results analysis}
- Y02D 10/00: Energy efficient computing, e.g. low power processors, power management or thermal management
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- Y02D: CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE

## Abstract

A method and apparatus for recording a test case, a storage medium, and a computer device are provided. With the method, case information groups corresponding to a target application program are obtained, each of the case information groups includes a case label and a case requirement. A case selection box is generated by using case labels from the case information groups as candidates. In response to a record starting operation of a user and if one of the case labels is selected, a target case information group corresponding to the selected case label is determined from the case information groups, and test action data is obtained. In response to a record stopping operation of the user, obtaining of the test action data is stopped, and a target test case is generated based on obtained test action data and the target case information group.

## Claims

### Claim 1

A method for recording a test case, performed by a processor, comprising:
determining test versions of a target application program and determining, from a pre-established test case management system, functional identifications corresponding to the test versions and case information groups corresponding to the functional identifications, wherein each of the case information groups comprises a case label and a case requirement;
extracting case labels from the case information groups, and sorting the case labels based on case numbers in the case labels, and generating a case selection box by using the sorted case labels as candidates;
determining, in response to a record starting operation of a user and in a case where one of the case labels is selected, a target case information group corresponding to the selected case label from the case information groups, and obtaining test action data, wherein the obtaining test action data comprises:
detecting a plurality of probes preset in the target application program, wherein each of the probes is configured to identify a function name in the target application program; and
determining, in a case where a target executable statement in the target application program is executed, a target probe corresponding to the target executable statement and recording a target function name corresponding to the target probe, wherein the target executable statement is an executable statement in a function module of the target application program; and
stopping obtaining the test action data in response to a record stopping operation of the user, and automatically generating a target test case based on the obtained test action data and the target case information group without requiring the user to manually input test case IDs;
wherein after the step of stopping obtaining the test action data in response to a record stopping operation of the user, and generating a target test case based on obtained test action data and the target case information group, the method further comprises:
establishing, based on the recorded target function name, a correlation between the recorded target function name and the target test case; and
calculating a percentage of a number of recorded target function names to a total number of all target function names, to obtain a test coverage of the target test case; and
wherein the method further comprises:
determining, in a case that one of the case labels is selected, a target case information group corresponding to the selected case label from the case information groups; and
displaying, in the case selection box, case information content in the target case information group.

### Claim 2

(canceled)

### Claim 3

(canceled)

### Claim 4 (depends on 1)

The method for recording a test case according to claim 1, further comprising:
determining, in a case that one of the case labels is selected, a target case information group corresponding to the selected case label from the case information groups; and
displaying, in the case selection box, case information content in the target case information group.

### Claim 5 (depends on 1)

The method for recording a test case according to claim 1, further comprising:
sending, in response to the record starting operation, an alert to a user in a case where none of the case labels is selected.

### Claim 6

(canceled)

### Claim 7

(canceled)

### Claim 8 (depends on 1)

A non-transitory computer-readable storage medium, wherein the storage medium stores a computer-readable instruction, and the computer-readable instruction, when executed by one or more processors, causes the one or more processor to perform the method for recording a test case according to claim 1.

### Claim 9 (depends on 1)

A computer device, comprising: one or more processors and a memory, wherein
the memory stores a computer-readable instruction, and
the computer-readable instruction, when executed by the one or more processors, performs the method for recording a test case according to claim 1.
