IP Library › Granted Patent US 12,111,741
Granted Patent B2
US 12,111,741 · App. 17/754,561 · Granted Oct 8, 2024

Automatic test method and apparatus, electronic device, and storage medium

Inventor: Chen Ma (Beijing, CN)
Assignee: Beijing Baidu Netcom Science and Technology Co., Ltd.
G06F11/28
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,111,741
App. No.
17/754,561
Granted
Oct 8, 2024
Kind
B2
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 (106)

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.

2. 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.

3. 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.

4. 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.

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.

6. 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.

7. 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.

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.

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.

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.

11. 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.

12. 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.

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.

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.

15. 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.

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.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 21, 2023
From: MA, CHEN
To: BEIJING BAIDU NETCOM SCIENCE AND TECHNOLOGY CO., LTD.
Reel/Frame 063396/0175 →
Priority Claims (1)
CN 202110216597.3 · Feb 26, 2021 · national
Continuity (1)
Related Publication 20240061759A1 · Feb 22, 2024