Trusted function stress testing method, system, electronic device and readable storage medium
By working together with the main control terminal and the trusted management server, concurrent stress testing of the same trusted terminal by multiple terminal devices was achieved, solving the problem that existing technologies could not test simultaneously, improving the accuracy and efficiency of testing, and discovering potential concurrency defects.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- HUANENG POWER INT CO LTD RIZHAO POWER PLANT
- Filing Date
- 2026-02-28
- Publication Date
- 2026-06-09
AI Technical Summary
Existing technologies cannot simultaneously perform stress tests on the same trusted terminal with the same trusted function on multiple terminal devices.
The main control terminal collects automated user interface operations in real time and encapsulates them into multiple messages, generates a message queue, and sends them to multiple target clients in parallel. The target clients perform the same trusted function tests, and the trusted management server processes test requests in parallel to achieve concurrent stress testing of trusted terminals.
It enables concurrent stress testing of the same trusted function by multiple terminal devices, improving the accuracy and efficiency of testing, reducing labor costs, and discovering potential concurrent defects.
Smart Images

Figure CN122179340A_ABST
Abstract
Claims
1. A reliable functional stress testing method, characterized in that, include: The main control unit collects local user interface automation operations in real time and encapsulates them into multiple first messages, generating a message queue; The master control terminal traverses the message queue and sends the first message in parallel to n target clients, where n is a positive integer. The target client receives the first message and performs the same trusted function test as the master control terminal based on the first message; The trusted management server receives multiple trusted function test requests from the master control terminal and / or the n target clients in parallel, and sends the multiple trusted function test requests to the trusted terminal in parallel. The target client and / or the master control terminal generate the trusted function test request based on the trusted function test.
2. The reliable functional stress testing method according to claim 1, characterized in that, Before the master control terminal traverses the message queue and sends the first message to n target clients in parallel, the process further includes: The first client sends a connection request to the master control terminal; The master control terminal receives and verifies the connection request. If the master control terminal verifies the connection request, the first client is identified as the target client.
3. The reliable functional stress testing method according to claim 1, characterized in that, After the trusted management server receives multiple trusted function test requests from the master control terminal and the n target clients in parallel, and sends the multiple trusted function test requests to the trusted terminal in parallel, the process further includes: The trusted terminal processes multiple trusted function test requests from the main control terminal and the n target clients in parallel to obtain execution results; The trusted terminal returns the execution result to the trusted management server.
4. The reliable functional stress testing method according to claim 3, characterized in that, After the trusted terminal returns the execution result to the trusted management server, the process further includes: The master control terminal sends a connection establishment request to the trusted management server; When the master control terminal establishes a connection with the trusted management server, the master control terminal obtains the execution result from the trusted management server.
5. The reliable functional stress testing method according to claim 3, characterized in that, After the trusted terminal returns the execution result to the trusted management server, the process further includes: The target client sends a connection establishment request to the trusted management server; Once the target client establishes a connection with the trusted management server, the target client obtains the execution result from the trusted management server.
6. The reliable functional stress testing method according to claim 1, characterized in that, The target client receives the first message and performs the same trusted functionality test as the master control terminal based on the first message, including: The target client receives the first message; The target client determines the target control interface based on the local operating system type; The target client performs the same trusted functionality test as the master control terminal based on the target control interface and the first message.
7. The reliable functional stress testing method according to claim 1, characterized in that, The trusted functional test includes at least one of the following: On the trusted terminal, add or delete trusted policies for trusted functions, switch the status of trusted functions on or off, or execute files protected by trusted functions; on the trusted management server, add or delete trusted policies for trusted functions, switch the status of trusted functions on or off, or view the execution audit and execution results of the trusted function tests.
8. A reliable functional stress testing system, characterized in that, include: The main control unit is used to collect local user interface automated operations in real time and encapsulate them into multiple first messages, generate a message queue, traverse the message queue, and send the first messages in parallel to n target clients, where n is a positive integer; And send the trusted function test request to the trusted management server, and, if a connection is established with the trusted management server, obtain the execution result from the trusted management server; The target client is configured to receive the first message, determine the target control interface based on the local operating system type, and perform the same trusted function test as the master control terminal based on the target control interface and the first message. The target client is also configured to generate a trusted function test request based on the first message and send it to the trusted management server, and to obtain the execution result from the trusted management server when a connection is established with the trusted management server; The trusted management server is configured to receive multiple trusted function test requests from the master control terminal and the n target clients in parallel, and forward the multiple trusted function test requests to trusted terminals. And configured to receive execution results from the trusted terminal and provide the execution results to the master control terminal and the target client; The trusted terminal is configured to concurrently process the trusted function test requests forwarded by the trusted management server, obtain the execution results, and return the execution results to the trusted management server; The trusted function test includes at least one of the following: adding or deleting trusted policies, switching trusted function states, or executing files protected by trusted functions on the trusted terminal; adding or deleting trusted policies, switching trusted function states, or performing an audit of the trusted function test and recording the execution results on the trusted management server.
9. An electronic device, characterized in that, It includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, when executing a program stored in memory, implements the trusted function stress testing method as described in any one of claims 1-7.
10. A readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the trusted functional stress testing method as described in any one of claims 1-7.