# US 2025/0156306 A1 · Method and device for denoising test data, 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/0156306 A1
- Document ID: US20250156306A1
- Status: Published application
- Kind: A1
- Application number: 18/737,939
- Filed: 2024-06-07
- Published: 2025-05-15
- Earliest claimed: 2023-11-13
- Assignees: Guangzhou Pinwei Software Co., Ltd.
- Applicants: Guangzhou Pinwei Software Co., Ltd.
- Inventors: Wei XU
- Web page: https://patentgrep.com/patent/US20250156306A1

## CPC

- G06F 11/3684: {for test design, e.g. generating new test cases}
- Y02D 30/70: in wireless communication networks
- 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 for denoising test data, a device for denoising test data, a storage media and a computer device are provided. For any replaying mobile terminal different from a recording mobile terminal, first request data and first response data are obtained in responds to a replaying request for a target test case, where the first response data is the same as response data for recording the target test case. Then, in a case that a preset request field corresponding to the target test case is identified in the first request data, a target value corresponding to a preset response field is generated. Ultimately, a value of a response field matching the preset response field in the first response data is replaced with the target value.

## Claims

### Claim 1

A method for denoising test data, performed by a processor, comprising:
obtaining, for a replaying mobile terminal different from a recording mobile terminal, replaying traffic data in response to a replaying request for a target test case, wherein the replaying traffic data comprises first request data and first response data, the first response data is the same as second response data, and the second response data is response data for recording the target test case:
generating a target value corresponding to a preset response field, in a case that a preset request field corresponding to the target test case is identified in the first request data, wherein the preset response field corresponds to the preset request field in the first request data, and the preset response field is a noise field:
replacing a value of a response field matching the preset response field in the first response data with the target value, to eliminate interference caused by the noise field during a process of replaying the target test case and enable the first response data with replacement to be applicable to the replaying mobile terminal; and
displaying the target test case on the replaying mobile terminal;
wherein a generation process of the preset request field and the preset response field corresponding to the target test case comprises:
obtaining recorded traffic data corresponding to the target test case from a server, wherein the recorded traffic data comprises the second response data and second request data:
parsing the second request data:
determining requirement information corresponding to the target test case from a test requirement set, wherein the test requirement set is used to record all the requirement information of a target application:
determining the preset request field from request fields of the second request data based on the requirement information corresponding to the target test case:
determining the preset response field from response fields of the second response data based on the requirement information corresponding to the target test case; and
associating the preset request field with the preset response field to obtain a first association relationship; and
wherein the generating the target value corresponding to the preset response field comprises:
generating the target value corresponding to the preset response field based on an assignment rule corresponding to the preset response field.

### Claim 2 (depends on 1)

The method for denoising test data according to claim 1, wherein the process of generating the target value corresponding to the preset response field in a case that the preset request field corresponding to the target test case is identified in the first request data comprises:
determining, in the case that the preset request field corresponding to the target test case is identified in the first request data, the preset response field corresponding to the preset request field based on the first association relationship; and
generating the target value corresponding to the preset response field.

### Claim 3

(canceled)

### Claim 4 (depends on 1)

The method for denoising test data according to claim 1, wherein
the assignment rule comprises a random rule:
the process of generating the target value corresponding to the preset response field based on the assignment rule corresponding to the preset response field comprises:
generating a value randomly as the target value corresponding to the preset response field, in a case that the assignment rule corresponding to the preset response field is the random rule.

### Claim 5 (depends on 1)

The method for denoising test data according to claim 1, wherein the assignment rule comprises a preset rule:
the process of generating the target value corresponding to the preset response field based on the assignment rule corresponding to the preset response field comprises:
generating a value that satisfies the preset rule as the target value corresponding to the preset response field, in a case that the assignment rule corresponding to the preset response field is the preset rule, wherein the preset rule comprises a data type and a value range.

### Claim 6

(canceled)

### Claim 7

A non-transitory storage medium, storing computer-readable instructions, wherein the computer-readable instructions, when executed by one or more processors, cause the one or more processors to implement a method for denoising test data, the method comprises:
obtaining, for a replaying mobile terminal different from a recording mobile terminal, replaying traffic data in response to a replaying request for a target test case, wherein the replaying traffic data comprises first request data and first response data, the first response data is the same as second response data, and the second response data is response data for recording the target test case:
generating a target value corresponding to a preset response field, in a case that a preset request field corresponding to the target test case is identified in the first request data, wherein the preset response field corresponds to the preset request field in the first request data, and the preset response field is a noise field:
replacing a value of a response field matching the preset response field in the first response data with the target value, to eliminate interference caused by the noise field during a process of replaying the target test case and enable the first response data with replacement to be applicable to the replaying mobile terminal; and
displaying the target test case on the replaying mobile terminal;
wherein a generation process of the preset request field and the preset response field corresponding to the target test case comprises:
obtaining recorded traffic data corresponding to the target test case from a server, wherein the recorded traffic data comprises the second response data and second request data:
parsing the second request data:
determining requirement information corresponding to the target test case from a test requirement set, wherein the test requirement set is used to record all the requirement information of a target application:
determining the preset request field from request fields of the second request data based on the requirement information corresponding to the target test case:
determining the preset response field from response fields of the second response data based on the requirement information corresponding to the target test case; and
associating the preset request field with the preset response field to obtain a first association relationship; and
wherein the generating the target value corresponding to the preset response field comprises:
generating the target value corresponding to the preset response field based on an assignment rule corresponding to the preset response field.

### Claim 8 (depends on 1)

A computer device, comprising:
one or more processors; and
a memory, wherein the memory stores computer-readable instructions, and the computer-readable instructions, when executed by the one or more processors, implement the method for denoising test data according to claim 1.
