# US 12,111,741 B2 · Automatic test method and apparatus, electronic device, and storage medium

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

- Number: US 12,111,741 B2
- Document ID: US12111741B2
- Status: Granted
- Kind: B2
- Application number: 17/754,561
- Filed: 2021-07-06
- Published: 2024-02-22
- Granted: 2024-10-08
- Earliest claimed: 2021-02-26
- Assignees: Beijing Baidu Netcom Science Technology Co., Ltd.
- Applicants: Beijing Baidu Netcom Science and Technology Co., Ltd.
- Inventors: Chen Ma
- Web page: https://patentgrep.com/patent/US12111741B2

## CPC

- G06F 11/28: by checking the correct order of processing (G06F11/08 - G06F11/26 take precedence; monitoring patterns of pulse trains H03K5/19)
- G06F 11/3688: {for test execution, e.g. scheduling of test suites}
- G06F 11/3698: Environments for analysis, debugging or testing of software
- G06F 2201/875: Monitoring of systems including the internet
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

An automatic test method and apparatus, an electronic device, and a storage medium are provided, which relate to the fields of the automatic test, the voice testing, the voice effect acceptance check, etc. The method includes: receiving a test task initiated by a visualization front-end; issuing the test task to a plurality of clients deployed; and scheduling execution of the test task for the plurality of clients, and feeding back obtained task execution results to the visualization front-end.

## Claims

### Claim 1

An automatic test method, comprising:
receiving a test task initiated by a visualization front-end;
issuing the test task to a plurality of clients deployed; and
scheduling execution of the test task for the plurality of clients, and feeding back obtained task execution results to the visualization front-end,
wherein the method further comprises:
receiving registration requests initiated by the plurality of clients respectively;
in response to the registration requests, issuing a state query instruction to the plurality of clients respectively; and
deploying the plurality of clients according to test task states reported by the plurality of clients respectively,
wherein the test task states comprise: test task states of devices to be tested, connected to the plurality of clients respectively.

### Claim 2 (depends on 1)

The method of claim 1, wherein the receiving the test task initiated by the visualization front-end, comprises:
receiving the test task initiated by the visualization front-end through a hyper text transfer protocol,
the test task comprises: a test parameter and data to be tested, wherein the test parameter comprises: at least one test parameter of a test product type, a test version, a test scenario, or a test device state.

### Claim 3 (depends on 1)

The method of claim 1, wherein the scheduling the execution of the test task for the plurality of clients, and feeding back the obtained task execution results to the visualization front-end, comprises:
acquiring operation state information of devices to be tested, connected to the plurality of clients respectively, and performing the scheduling according to the operation state information of the devices to be tested; and
receiving the task execution results reported respectively by the plurality of clients through a transmission control protocol, and feeding back the task execution results to the visualization front-end.

### Claim 4 (depends on 3)

The method of claim 3, further comprising:
storing the task execution results locally or providing the task execution results to a cloud; and
writing a local storage address or a storage address in the cloud into a database, to provide the storage address to the visualization front-end, such that the visualization front-end downloads the task execution results based on the storage address.

### Claim 5

An automatic test method, comprising:
receiving a test task issued by a central control system, wherein the test task is initiated by a visualization front-end;
accepting scheduling of the central control system and executing the test task, to obtain a task execution result; and
reporting the task execution result to the central control system, such that the central control system forwards the task execution result to the visualization front-end,
wherein the method further comprises:
initiating a registration request to the central control system;
receiving a state query instruction issued by the central control system; and
in response to the state query instruction, reporting a test task state to the central control system,
wherein the test task state comprises test task states of devices to be tested, connected to a plurality of clients respectively, such that the plurality of clients are deployed based on the test task states.

### Claim 6 (depends on 5)

The method of claim 5, wherein the accepting the scheduling of the central control system and executing the test task, to obtain the task execution result, comprises:
reporting operation state information of the devices to be tested, connected to the plurality of clients respectively, to the central control system, to accept the scheduling according to the operation state information of the devices to be tested;
detecting whether the operation state information of the devices to be tested, connected to the plurality of clients respectively, is an available state;
in a case where the devices to be tested are in the available state, calling execution scripts; and
running the execution scripts, and executing the test task according to preset formats, to obtain task execution results.

### Claim 7 (depends on 5)

The method of claim 5, wherein the reporting the task execution result to the central control system, such that the central control system forwards the task execution result to the visualization front-end, comprises:
reporting the task execution result to the central control system through a transmission control protocol, to feed back the task execution result to the visualization front-end through the central control system.

### Claim 8

An automatic test method, comprising:
a visualization front-end initiating a test task;
a central control system receiving the test task and issuing the test task to a plurality of clients deployed;
the plurality of clients respectively accepting scheduling of the central control system, executing the test task, and reporting obtained task execution results to the central control system; and
the central control system feeding back the task execution results to the visualization front-end,
wherein the method further comprises:
the central control system receiving registration requests initiated by the plurality of clients respectively;
in response to the registration requests, the central control system issuing a state query instruction to the plurality of clients respectively; and
the central control system deploying the plurality of clients according to test task states reported by the plurality of clients respectively,
wherein the test task states comprise: test task states of devices to be tested, connected to the plurality of clients respectively.

### Claim 9

An automatic test apparatus, comprising a visualization front-end, a central control system, and a plurality of clients, wherein
the visualization front-end is configured for initiating a test task;
the central control system is configured for receiving the test task and issuing the test task to a plurality of clients deployed;
the plurality of clients are configured for respectively accepting scheduling of the central control system, executing the test task, and reporting obtained task execution results to the central control system; and
the central control system is further configured for feeding back the task execution results to the visualization front-end,
the central control system is further configured for receiving registration requests initiated by the plurality of clients respectively;
in response to the registration requests, the central control system is further configured for issuing a state query instruction to the plurality of clients respectively; and
the central control system is further configured for deploying the plurality of clients according to test task states reported by the plurality of clients respectively,
wherein the test task states comprise: test task states of devices to be tested, connected to the plurality of clients respectively.

### Claim 10

An electronic device, comprising:
at least one processor; and
a memory connected communicatively to the at least one processor, wherein
the memory stores instructions executable by the at least one processor, and the instructions, when executed by the at least one processor, enable the at least one processor to perform operations of:
receiving a test task initiated by a visualization front-end;
issuing the test task to a plurality of clients deployed; and
scheduling execution of the test task for the plurality of clients, and feeding back obtained task execution results to the visualization front-end,
wherein the instructions, when executed by the at least one processor, enable the at least one processor further to perform operations of:
receiving registration requests initiated by the plurality of clients respectively;
in response to the registration requests, issuing a state query instruction to the plurality of clients respectively; and
deploying the plurality of clients according to test task states reported by the plurality of clients respectively,
wherein the test task states comprise: test task states of devices to be tested, connected to the plurality of clients respectively.

### Claim 11 (depends on 10)

The electronic device of claim 10, wherein the receiving the test task initiated by the visualization front-end, comprises:
receiving the test task initiated by the visualization front-end through a hyper text transfer protocol,
the test task comprises: a test parameter and data to be tested, wherein the test parameter comprises: at least one test parameter of a test product type, a test version, a test scenario, or a test device state.

### Claim 12 (depends on 10)

The electronic device of claim 10, wherein the scheduling the execution of the test task for the plurality of clients, and feeding back the obtained task execution results to the visualization front-end, comprises:
acquiring operation state information of devices to be tested, connected to the plurality of clients respectively, and performing the scheduling according to the operation state information of the devices to be tested; and
receiving the task execution results reported respectively by the plurality of clients through a transmission control protocol, and feeding back the task execution results to the visualization front-end.

### Claim 13

A non-transitory computer readable storage medium storing computer instructions, wherein the computer instructions, when executed by a computer, cause the computer to perform operations of:
receiving a test task initiated by a visualization front-end;
issuing the test task to a plurality of clients deployed; and
scheduling execution of the test task for the plurality of clients, and feeding back obtained task execution results to the visualization front-end,
wherein the computer instructions, when executed by a computer, cause the computer further to perform operations of:
receiving registration requests initiated by the plurality of clients respectively;
in response to the registration requests, issuing a state query instruction to the plurality of clients respectively; and
deploying the plurality of clients according to test task states reported by the plurality of clients respectively,
wherein the test task states comprise: test task states of devices to be tested, connected to the plurality of clients respectively.

### Claim 14

An electronic device, comprising:
at least one processor; and
a memory communicatively connected with the at least one processor, wherein
the memory stores instructions executable by the at least one processor, and the instructions, when executed by the at least one processor, enable the at least one processor to perform operations of:
receiving a test task issued by a central control system, wherein the test task is initiated by a visualization front-end;
accepting scheduling of the central control system and executing the test task, to obtain a task execution result; and
reporting the task execution result to the central control system, such that the central control system forwards the task execution result to the visualization front-end,
wherein the instructions, when executed by the at least one processor, enable the at least one processor further to perform operations of:
initiating a registration request to the central control system;
receiving a state query instruction issued by the central control system; and
in response to the state query instruction, reporting a test task state to the central control system,
wherein the test task state comprises test task states of devices to be tested, connected to a plurality of clients respectively, such that the plurality of clients are deployed based on the test task states.

### Claim 15 (depends on 14)

The electronic device of claim 14, wherein the accepting the scheduling of the central control system and executing the test task, to obtain the task execution result, comprises:
reporting operation state information of the devices to be tested, connected to the plurality of clients respectively, to the central control system, to accept the scheduling according to the operation state information of the devices to be tested;
detecting whether the operation state information of the devices to be tested, connected to the plurality of clients respectively, is an available state;
in a case where the devices to be tested are in the available state, calling execution scripts; and
running the execution scripts, and executing the test task according to preset formats, to obtain task execution results.

### Claim 16

A non-transitory computer readable storage medium storing computer instructions, wherein the computer instructions, when executed by a computer, cause the computer to perform operations of:
receiving a test task issued by a central control system, wherein the test task is initiated by a visualization front-end;
accepting scheduling of the central control system and executing the test task, to obtain a task execution result; and
reporting the task execution result to the central control system, such that the central control system forwards the task execution result to the visualization front-end,
wherein the computer instructions, when executed by a computer, cause the computer further to perform operations of:
initiating a registration request to the central control system;
receiving a state query instruction issued by the central control system; and
in response to the state query instruction, reporting a test task state to the central control system,
wherein the test task state comprises test task states of devices to be tested, connected to a plurality of clients respectively, such that the plurality of clients are deployed based on the test task states.
