Distributed power distribution network terminal test method and system based on cloud platform, terminal equipment and computer readable storage medium
Through a distributed testing method based on cloud platform, multiple test nodes are used to automatically test the distribution network terminals, solving the problem of traditional test inefficiency and achieving an efficient and automated testing process.
Patent Information
- Application Number
- CN202510327451.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2025-03-03
- Filing Date
- 2025-03-19
- Publication Date
- 2025-06-20
AI Technical Summary
Traditional distribution network terminal testing methods are inefficient and difficult to meet the testing needs of large-scale distribution network terminals.
The distributed testing method based on cloud platform is adopted to automatically test the distribution network terminals through multiple test nodes, obtain resource status in real time and assign test tasks according to priority order.
It significantly improves the efficiency of terminal testing of distribution networks, ensures priority processing of critical tasks, reduces resource waste, and realizes automated testing processes.
Smart Images

Figure CN120177940A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of distribution network terminal testing, and particularly to a distributed distribution network terminal testing method, system, terminal device and computer-readable storage medium based on a cloud platform. Background Art
[0002] With the rapid development of the smart grid field, the proportion of distributed distribution networks in the entire power system is constantly increasing. As the core equipment connecting the distribution network and users, the performance, reliability and safety of distribution network terminals have a direct and crucial impact on the quality and stability of power supply.
[0003] However, in past actual operations, traditional distribution network terminal testing methods mainly relied on laboratory environments, and individual terminals were tested one by one through centralized testing equipment, resulting in low testing efficiency and difficulty in meeting the testing needs of large-scale distribution network terminals. Summary of the Invention
[0004] Embodiments of the present invention provide a distributed distribution network terminal testing method, system, terminal device and computer-readable storage medium based on a cloud platform, which can perform automated testing on distribution network terminals using multiple test nodes on the cloud platform, significantly improving the testing efficiency of the terminals.
[0005] An embodiment of the present invention provides a distributed distribution network terminal testing method based on a cloud platform, including:
[0006] Obtain the device types of each distribution network terminal to be tested;
[0007] For each distribution network terminal to be tested, generate a task set including one or more test tasks and a task deadline corresponding to the test task according to the device type; the test tasks include: function test, performance test, reliability test or security test;
[0008] Determine the priority order of each test task according to the device type to which each test task belongs and the task deadline corresponding to each test task;
[0009] Obtain the resource status of each test node in the cloud platform in real time; the resource status includes: CPU usage rate, remaining memory, storage space and network bandwidth;
[0010] According to the resource status of each test node, allocate each test task to the test node according to the corresponding priority order, so that the test node obtains the test script and test data according to the received test task, and tests the corresponding distribution network terminal according to the test script and test data to obtain the operation data of the distribution network terminal;
[0011] Input the operation data of the distribution network terminal into the trained analysis model to generate a test report.
[0012] Further, determine the priority order of each test task according to the device type to which each test task belongs and the task deadline corresponding to each test task, including:
[0013] For each test task, match the device type to which the test task belongs with the preset device library to obtain the importance score of the test task; wherein, the preset device library includes: several device types and corresponding importance scores;
[0014] Sort all test tasks in the chronological order of the task deadline and assign an urgency score according to the sorting to obtain the urgency scores of each test task;
[0015] Perform a weighted sum of the importance scores and urgency scores of each test task to obtain the priority score of each test task;
[0016] Sort the priority scores of all test tasks from largest to smallest to obtain the priority order of each test task.
[0017] Further, according to the resource status of each test node, assign each test task to the test node according to the corresponding priority order, including:
[0018] Obtain the initial resource status of each test node;
[0019] According to the initial resource status of each test node, repeatedly execute the task assignment process until all test tasks are assigned;
[0020] The task assignment process includes:
[0021] Match the resource status requirements for the test node in the currently to-be-assigned test task with the current resource status of all test nodes, and select a test node whose current resource status meets the resource status requirements as the target test node for the currently to-be-assigned test task; wherein, initially, the currently to-be-assigned test task is the first test task in the priority order of each test task; initially, the current resource status of each test node is the initial resource status;
[0022] Assign the currently to-be-assigned test task to the target test node;
[0023] Update the current resource status of the target test node according to the resource status requirements to obtain the updated resource status of the target test node;
[0024] Use the updated resource status of the target test node as the current resource status of the target node when performing the task assignment process next time, and select the next test task as the current test task to be assigned when performing the task assignment process next time according to the priority order of each test task.
[0025] Further, input the operation data of the distribution network terminal into the trained analysis model to generate a test report, including:
[0026] Input the operation data of the distribution network terminal into the trained analysis model so that the analysis model extracts features from the operation data of the distribution network terminal to obtain an operation feature set;
[0027] Generate a fault discrimination result according to the operation feature set;
[0028] Integrate the test data of the distribution network terminal, the corresponding operation data of the distribution network terminal, and the corresponding fault discrimination result to generate a test report.
[0029] Further, after generating the test report, it also includes:
[0030] Classify and store the test report according to the device type it belongs to.
[0031] Further, after generating the test report, it also includes:
[0032] When the fault discrimination result in the test report indicates a fault, send a fault warning signal.
[0033] Based on the above method embodiment, the present invention correspondingly provides a system embodiment, including: a terminal information acquisition module, a test task generation module, a priority determination module, a resource status acquisition module, a task assignment module, and a data processing module;
[0034] The terminal information acquisition module is used to acquire the device type of each distribution network terminal to be tested;
[0035] The test task generation module is used to generate a task set including one or more test tasks and the task deadline corresponding to the test task for each distribution network terminal to be tested according to the device type; the test tasks include: function test, performance test, reliability test, or security test;
[0036] The priority determination module is used to determine the priority order of each test task according to the device type to which each test task belongs and the task deadline corresponding to each test task;
[0037] The resource status acquisition module is used to acquire the resource status of each test node in the cloud platform in real time; the resource status includes: CPU usage rate, remaining memory, storage space, and network bandwidth;
[0038] A task allocation module, which is used to allocate each test task to a test node according to the corresponding priority order based on the resource status of each test node, so that the test node can obtain a test script and test data according to the received test task, and test the corresponding distribution network terminal according to the test script and test data to obtain the operation data of the distribution network terminal;
[0039] A data processing module, which is used to input the operation data of the distribution network terminal into a trained analysis model to generate a test report.
[0040] Furthermore, the distributed distribution network terminal test system based on a cloud platform further includes: a classification storage module;
[0041] The classification storage module is used to classify and store the test reports according to the device types to which they belong.
[0042] Based on the above method item embodiment, the present invention correspondingly provides a terminal device item embodiment, including: a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, the steps of the distributed distribution network terminal test method based on a cloud platform as described in the present invention are implemented.
[0043] Based on the above method item embodiment, the present invention correspondingly provides a computer-readable storage medium item embodiment, including: a stored computer program. When the computer program runs, it controls the device where the computer-readable storage medium is located to execute the steps of the distributed distribution network terminal test method as described in the present invention.
[0044] Compared with the prior art, the beneficial effects of the embodiment of the present solution are as follows:
[0045] The present invention obtains the device types of each distribution network terminal to be tested, generates test tasks and corresponding task deadlines according to the device types, and determines the priority order of each test task according to the device type to which each test task belongs and the task deadline corresponding to each test task, which can ensure that key or urgent tasks are processed first, reduce the blindness and resource waste of testing, and improve the testing efficiency. Then, the resource status of each test node in the cloud platform is obtained in real time, and according to the resource status of each test node, each test task is assigned to the test node according to the corresponding priority order. By using multiple test nodes on the cloud platform, multiple distribution network terminals can be tested simultaneously, thus significantly improving the testing efficiency. After receiving the test task, each test node obtains the test script and test data according to the corresponding test task, and performs automated testing on the corresponding distribution network terminal through the obtained test script and test data, reducing manual intervention. Finally, the operation data obtained from the test is input into the trained analysis model to automatically generate a test report. The entire testing process, from task allocation, execution to result analysis, has achieved automation, meeting the testing requirements of large-scale distribution network terminals. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 is a schematic flowchart of a distributed distribution network terminal testing method based on a cloud platform provided by an embodiment of the present invention;
[0047] Figure 2 is a schematic structural diagram of a distributed distribution network terminal testing system based on a cloud platform provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0048] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0049] As Figure 1 shown, an embodiment of the present invention provides a distributed distribution network terminal testing method based on a cloud platform, and the method at least includes the following steps:
[0050] Step S1: Obtain the device types of each distribution network terminal to be tested;
[0051] For step S1, first, obtain the device types of each distribution network terminal to be tested. Different types of distribution network terminals have different functional characteristics and technical requirements. In this embodiment, the device type of each distribution network terminal is: feeder terminal (FTU), substation terminal (DTU), distribution transformer terminal (TTU), smart meter, or distributed power source terminal.
[0052] Step S2: For each distribution network terminal to be tested, generate a task set including one or more test tasks and the task deadlines corresponding to the test tasks according to the device type; the test tasks include: function test, performance test, reliability test, or security test.
[0053] For step S2, for each distribution network terminal to be tested, according to the device type information obtained in step S1, screen out the test tasks that match the device type of the distribution network terminal to be tested from the preset test task library. Among them, the test tasks include function test, performance test, reliability test, or security test. The preset test task library contains the test tasks corresponding to each device type and their corresponding task deadlines. The corresponding relationships of these test tasks and their corresponding task deadlines are predefined according to industry standards, device characteristics, and user requirements.
[0054] In this embodiment, the function test focuses on verifying whether the distribution network terminal device can achieve its predetermined functions. During the test process, a large number of electrical parameters related to functions, such as voltage, current, power, frequency, etc., and the operating status information of the device, such as the opening and closing status of switches, the action conditions of protection devices, etc., will be involved. In addition, it will also include the verification of communication data, such as whether the transmission of telemetry, telecontrol, and teleprotection information is correct. For example, when testing the power metering function of a smart meter, different voltage and current values need to be input to simulate the actual power consumption scenario, and check whether the meter can accurately measure the power consumption; at the same time, monitor its communication function to ensure that the power consumption data can be accurately transmitted to the master station.
[0055] The performance test focuses on the performance of the device under different load conditions. In addition to the basic electrical parameters and operating status information, it emphasizes more on the testing of aspects such as data accuracy, response time, and processing ability. For example, measure the response speed of the device to voltage and current changes, the accuracy of data acquisition, and the data transmission rate and packet loss rate under high-load communication conditions.
[0056] The purpose of the reliability test is to evaluate the stability and reliability of the device under long-term operation and various complex environmental conditions. In addition to the conventional electrical parameters and operating status information, it is also necessary to simulate various extreme environments and abnormal situations, such as environmental data such as high temperature, low temperature, humidity, electromagnetic interference, etc., and abnormal status data such as power failure and communication interruption.
[0057] The focus of security testing is to detect whether devices and systems have sufficient security protection capabilities to prevent security issues such as external attacks and internal data leakage. In addition to data related to abnormal current, voltage, etc. in electrical parameters that may pose security risks, a large amount of network security-related data is also required, such as network attack behavior data (e.g., simulated data of hacker attacks, virus invasions), user permission information, data encryption and decryption test data, etc.
[0058] Next, the selected test tasks are combined into a task set. For different types of distribution network terminals, the task set may contain different combinations of test tasks. For example, feeder terminals may need to focus on function testing and reliability testing to ensure their stability and reliability in complex power grid environments, while smart meters may need to focus more on function testing and performance testing to verify their metering accuracy and data processing capabilities. It should be noted that even for the same type of test task (such as function testing), the task deadlines may vary for different types of distribution network terminals. For example, the task deadline corresponding to the function testing of feeder terminals may be different from that of smart meters.
[0059] It should be noted that the generated task set can be manually increased or decreased by managers according to actual needs to better meet the test objectives and resource constraints.
[0060] Step S3: Determine the priority order of each test task according to the device type to which each test task belongs and the task deadline corresponding to each test task;
[0061] In a preferred embodiment, determining the priority order of each test task according to the device type to which each test task belongs and the task deadline corresponding to each test task includes:
[0062] For each test task, match the device type to which the test task belongs with a preset device library to obtain the importance score of the test task; among them, the preset device library includes: several device types and corresponding importance scores;
[0063] Sort all test tasks in chronological order of the task deadline and assign an urgency score according to the sorting to obtain the urgency scores of each test task;
[0064] Perform a weighted sum of the importance scores and urgency scores of each test task to obtain the priority scores of each test task;
[0065] Sort the priority scores of all test tasks from largest to smallest to obtain the priority order of each test task.
[0066] For step S3, after generating the task sets for each distribution network terminal, the priority order of all test tasks is required to ensure that critical and urgent tasks can be processed in a timely manner. Specifically, a preset equipment library is needed. This library contains several equipment types and their corresponding importance scores, which are preset based on factors such as the importance of each equipment type in the distribution network, the possible consequences of failures, the difficulty of repair, and the maintenance cost. For example, since the feeder terminal plays a key protection and control role in the power grid, its importance score is set to 9. Although the smart meter is also an important part of the power grid, since it usually does not directly affect the safe operation of the power grid, its importance score is set to 7. Match the equipment type to which each test task belongs with the preset equipment library respectively. Suppose a test task A1 is a functional test of the feeder terminal, then find the feeder terminal in the equipment library and obtain its corresponding importance score of 9.
[0067] Next, determine the urgency score according to the task deadline of each test task. The closer the task deadline is, the higher the urgency score. Specifically, a preset deadline interval table is set. The preset deadline interval table includes several deadline intervals and the scores corresponding to each deadline interval. For example, the task deadline for interval Q1 is 0 to 8 hours, and the corresponding score is 10; the task deadline for interval Q2 is 8 to 48 hours, and the corresponding score is 4; the task deadline for interval Q3 is more than 48 hours, and the corresponding score is 1. By setting scores with a large difference for different deadline intervals, the urgency of tasks with a close deadline can be highlighted. Then, match the task deadline of each test task with the preset deadline interval table to obtain the preliminary urgency score of each test task. Based on the preliminary urgency score, set the weights evenly from 1 - 0 in the chronological order of the task deadline, that is, the closer the task is to the due time, the higher the weight, and vice versa. Finally, weight the preliminary urgency score according to the weights of each test task to obtain the final urgency score of each test task. Through the weighting process, the specific time point of the task deadline is further considered, making the score more accurate and detailed, helping to distinguish the urgency differences between tasks with the same preliminary score, and avoiding the situation where some tasks cannot be processed due to the same score.
[0068] Finally, perform a weighted sum of the importance score and the urgency score of each test task to obtain the priority order of each test task, and sort the priority scores of all test tasks from largest to smallest to obtain the priority order of each test task.
[0069] It should be noted that the weight value of the importance score is greater than that of the urgency score. Because the importance score usually reflects the contribution degree of a task to the overall goal, strategic goal or long-term value of the project. By assigning a higher weight to the importance score, it can ensure that those tasks crucial to the success of the project are given priority, even if their urgency level may not be the highest.
[0070] Step S4: Obtain the resource status of each test node in the cloud platform in real time; the resource status includes: CPU usage rate, remaining memory, storage space, and network bandwidth;
[0071] For step S4, the resource status of each test node in the cloud platform is obtained in real time through the built-in monitoring system of the cloud platform. The resource status mainly includes CPU usage rate, remaining memory, storage space, and network bandwidth, etc. Among them, the CPU usage rate reflects the busy degree of the CPU of each test node on the cloud platform. A high CPU usage rate may mean too many tasks or some tasks occupying a large amount of CPU resources, which may cause other tasks to execute slowly or system response latency; the remaining memory refers to the amount of memory currently unused by each test node on the cloud platform. Memory is one of the key resources for system operation, and sufficient memory can ensure the system to respond and process tasks quickly; the storage space refers to the capacity available for storing data by each test node on the cloud platform. Reasonable storage space management can also improve the availability and security of data; the network bandwidth reflects the data transmission ability between each test node on the cloud platform. High bandwidth means that data can be transmitted and processed faster, thus improving the overall performance of the system.
[0072] By monitoring information such as CPU usage rate, remaining memory, storage space, and network bandwidth, the available test situation of each test node in the cloud platform at the current moment can be understood.
[0073] Step S5: According to the resource status of each test node, allocate each test task to the test node according to the corresponding priority order, so that the test node obtains the test script and test data according to the received test task, and tests the corresponding distribution network terminal according to the test script and test data to obtain the operation data of the distribution network terminal;
[0074] For step S5, preferably, according to the resource status of each test node, allocate each test task to the test node according to the corresponding priority order, including:
[0075] Obtain the initial resource status of each test node;
[0076] According to the initial resource status of each test node, repeat the task allocation process until all test tasks are allocated;
[0077] The task allocation process includes:
[0078] Match the resource status requirements for the test nodes in the currently to-be-allocated test task with the current resource statuses of all test nodes, and select one test node whose current resource status meets the resource status requirements as the target test node for the currently to-be-allocated test task; among them, the initially currently to-be-allocated test task is the first test task in the priority order of each test task; initially, the current resource status of each test node is the initial resource status.
[0079] Allocate the currently to-be-allocated test task to the target test node.
[0080] Update the current resource status of the target test node according to the resource status requirements to obtain the updated resource status of the target test node.
[0081] Take the updated resource status of the target test node as the current resource status of the target node when performing the task allocation process next time, and select the next test task as the currently to-be-allocated test task when performing the task allocation process next time according to the priority order of each test task.
[0082] Specifically, the test task allocation process is as follows. The cloud platform obtains the resource status information of all distributed test nodes; according to the requirements of the test task for the resource status of the test node, filters out one test node that meets the requirements, preferentially allocates high-priority tasks, and after completing the allocation of high-priority tasks, continues to allocate other tasks, and loops in turn to complete the allocation and processing of all tasks.
[0083] After all test tasks are allocated, each distributed test node starts to perform the corresponding test task. First, the distributed test node obtains the test script and test data from the cloud platform server, and performs test operations on the to-be-tested distribution network terminal according to the test script. These test scripts detail the specific steps of the test, the operations to be performed, and the expected test results, while the test data is carefully prepared to simulate the real scenario or verify specific functions. Finally, the operation data of the distribution network terminal is collected in real time and uploaded to the cloud platform server.
[0084] Step S6: Input the operation data of the distribution network terminal into the trained analysis model to generate a test report.
[0085] In a preferred embodiment, inputting the operation data of the distribution network terminal into the trained analysis model to generate a test report includes:
[0086] Input the operation data of the distribution network terminal into the trained analysis model so that the analysis model extracts features from the operation data of the distribution network terminal to obtain an operation feature set.
[0087] Generate a fault discrimination result according to the operation feature set.
[0088] Integrate the test data of the distribution network terminal, the corresponding operation data of the distribution network terminal, and the corresponding fault discrimination results to generate a test report.
[0089] For step S6, the real-time data generated during the operation of the distribution network terminal, such as current, voltage, power factor, temperature, etc., is input into a pre-trained analysis model. This analysis model is trained based on a large amount of historical data and known fault cases and has the ability to perform deep learning and feature extraction on the operation data of the distribution network terminal. In this embodiment, the analysis model is constructed and trained using neural network models such as multi-layer perceptron (MLP) or convolutional neural network (CNN).
[0090] First, the analysis model processes the input operation data and extracts key operation features. These features can reflect the operation status and possible abnormalities of the distribution network terminal. These features form an operation feature set. Then, based on the information in the operation feature set, the neural network structure inside the analysis model can determine whether there is a fault in the distribution network terminal, as well as the type and possible causes of the fault.
[0091] Preferably, before inputting the operation data of the distribution network terminal into the trained analysis model, data preprocessing and data analysis are performed on the original operation data. Data preprocessing includes missing value processing and normalization processing. Data analysis includes mean calculation, standard deviation calculation, density-based spatial clustering of applications with noise (DBSCAN) processing, and isolation forest processing to improve the quality and usability of the data.
[0092] Finally, integrate the test data of the distribution network terminal, the corresponding operation data of the distribution network terminal, and the corresponding fault discrimination results through a test report template to generate a complete test report.
[0093] Preferably, after generating the test report, it further includes:
[0094] Classify and store the test report according to the type of equipment it belongs to.
[0095] Specifically, after generating the test report, classify and store the test report according to the type of equipment it belongs to, so that the test reports of the same equipment type can be centrally managed, facilitating subsequent trend analysis, performance comparison, and fault mode recognition.
[0096] Preferably, after generating the test report, it further includes:
[0097] When the fault discrimination result in the test report indicates that there is a fault, a fault warning signal is issued.
[0098] Specifically, after generating the test report, if there is a fault in the test result, a fault warning signal is sent in a timely manner to immediately notify relevant personnel, enabling them to quickly understand the fault situation and take necessary countermeasures, thereby minimizing the impact of the fault on the equipment and system.
[0099] As Figure 2 shown, based on the above method embodiment, a corresponding system embodiment is provided;
[0100] An embodiment of the present invention provides a distributed distribution network terminal test system based on a cloud platform, including: a terminal information acquisition module, a test task generation module, a priority determination module, a resource status acquisition module, a task allocation module, and a data processing module;
[0101] The terminal information acquisition module is used to acquire the device types of each distribution network terminal to be tested;
[0102] The test task generation module is used to generate a task set including one or more test tasks and the task deadlines corresponding to the test tasks for each distribution network terminal to be tested according to the device type; the test tasks include: function test, performance test, reliability test, or security test;
[0103] The priority determination module is used to determine the priority order of each test task according to the device type to which each test task belongs and the task deadlines corresponding to each test task;
[0104] The resource status acquisition module is used to acquire the resource status of each test node in the cloud platform in real time; the resource status includes: CPU usage rate, remaining memory, storage space, and network bandwidth;
[0105] The task allocation module is used to allocate each test task to the test nodes according to the corresponding priority order according to the resource status of each test node, so that the test nodes obtain test scripts and test data according to the received test tasks, and test the corresponding distribution network terminals according to the test scripts and test data to obtain the operation data of the distribution network terminals;
[0106] The data processing module is used to input the operation data of the distribution network terminal into the trained analysis model to generate a test report.
[0107] In a preferred embodiment, the distributed distribution network terminal test system based on the cloud platform further includes: a classification storage module;
[0108] The classification storage module is used to classify and store the test reports according to the device types to which they belong.
[0109] It can be understood that the above system item embodiments correspond to the method item embodiments of the present invention, and can implement the distributed distribution network terminal test method based on the cloud platform provided by any one of the above method item embodiments of the present invention.
[0110] It should be noted that the system embodiments described above are only illustrative. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, in the attached drawings of the system embodiments provided by the present invention, the connection relationship between the modules indicates that they have a communication connection, which can be specifically implemented as one or more communication buses or signal lines. Those of ordinary skill in the art can understand and implement it without creative work.
[0111] Based on the above embodiments of the distributed distribution network terminal test method based on the cloud platform, another embodiment of the present invention provides a terminal device, which includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor. When the processor executes the computer program, it implements the distributed distribution network terminal test method based on the cloud platform according to any embodiment of the present invention.
[0112] Exemplarily, in this embodiment, the computer program can be divided into one or more modules. The one or more modules are stored in the memory and executed by the processor to complete the present invention. The one or more module elements can be a series of computer program instruction segments capable of performing specific functions, and these instruction segments are used to describe the execution process of the computer program in the terminal device.
[0113] The terminal device can be a computing device such as a desktop computer, a notebook, a palm computer, and a cloud server. The terminal device may include, but is not limited to, a processor and a memory.
[0114] The so-called processor may be a central processing unit (CPU), or may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), off-the-shelf programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor, or the processor may also be any conventional processor, etc. The processor is the control center of the terminal device, and connects various parts of the entire terminal device through various interfaces and lines.
[0115] Based on the above method item embodiments, another embodiment is provided: A computer-readable storage medium provided by another embodiment of the present invention includes a stored computer program, wherein when the computer program runs, it controls the device where the computer-readable storage medium is located to execute the distributed distribution network terminal test method based on the cloud platform described in any one of the above method item embodiments of the present invention.
[0116] Among them, if the modules / units integrated in the distributed distribution network terminal test system / terminal device based on the cloud platform are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, to implement all or part of the processes in the above embodiment methods of the present invention, it can also be completed by instructing relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by a processor, the steps of the above various method embodiments can be implemented. Among them, the computer program includes computer program code, and the computer program code can be in the form of source code, object code, executable file, or some intermediate form, etc. The computer-readable medium can include: any entity or system capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disc, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signal, telecommunication signal, and software distribution medium, etc.
[0117] The above is the preferred implementation manner of the present invention. It should be noted that for those of ordinary skill in the art, without departing from the principle of the present invention, several improvements and refinements can be made, and these improvements and refinements are also regarded as the protection scope of the present invention.
Claims
1. A distributed distribution network terminal testing method based on a cloud platform, characterized in that: include: Obtain the device type of each distribution network terminal to be tested; For each distribution network terminal to be tested, a task set including one or more test tasks and a task deadline corresponding to the test task is generated according to the device type; The test tasks include: functional testing, performance testing, reliability testing or safety testing; Determine the priority order of each test task according to the device type to which each test task belongs and the task deadline corresponding to each test task; Obtain the resource status of each test node in the cloud platform in real time; the resource status includes: CPU usage, memory remaining, storage space and network bandwidth; According to the resource status of each test node, each test task is assigned to the test node in the corresponding priority order, so that the test node obtains the test script and test data according to the received test task, and tests the corresponding distribution network terminal according to the test script and test data to obtain the operation data of the distribution network terminal; The operation data of the distribution network terminal is input into the trained analysis model to generate a test report.
2. The distributed distribution network terminal testing method based on cloud platform according to claim 1 is characterized in that: Determine the priority order of each test task based on the device type to which each test task belongs and the task deadline corresponding to each test task, including: For each test task, the device type to which the test task belongs is matched with a preset device library to obtain an importance score of the test task; wherein the preset device library includes: a number of device types and corresponding importance scores; All test tasks are sorted in the order of task deadlines, and urgency scores are assigned according to the order to obtain the urgency score of each test task; The importance score and urgency score of each test task are weighted and summed to obtain the priority score of each test task; Sort the priority scores of all test tasks from large to small to obtain the priority order of each test task.
3. The distributed distribution network terminal testing method based on cloud platform according to claim 1 is characterized in that: According to the resource status of each test node, each test task is assigned to the test node in the corresponding priority order, including: Get the initial resource status of each test node; According to the initial resource status of each test node, the task allocation process is repeated until all test tasks are allocated; The task allocation process includes: Match the resource status requirements for the test nodes in the current test task to be assigned with the current resource status of all test nodes, and select a test node whose current resource status meets the resource status requirements as the target test node of the current test task to be assigned; wherein, the current test task to be assigned initially is the first test task in the priority order of each test task; initially, the current resource status of each test node is the initial resource status; Assign the current test task to be assigned to the target test node; According to the resource status requirement, updating the current resource status of the target test node to obtain the updated resource status of the target test node; The updated resource status of the target test node is used as the current resource status of the target node when the task allocation process is executed next time, and the next test task is selected as the current test task to be allocated when the task allocation process is executed next time according to the priority order of each test task.
4. The distributed distribution network terminal testing method based on cloud platform according to claim 1 is characterized in that: Input the operating data of the distribution network terminal into the trained analysis model to generate a test report, including: Inputting the operation data of the distribution network terminal into the trained analysis model so that the analysis model extracts features from the operation data of the distribution network terminal to obtain an operation feature set; generating a fault identification result according to the set of operating characteristics; The test data of the distribution network terminal, the corresponding operation data of the distribution network terminal and the corresponding fault identification results are integrated to generate a test report.
5. The distributed distribution network terminal testing method based on cloud platform according to claim 1 is characterized in that: After the test report is generated, it also includes: The test reports are classified and stored according to the device type they belong to.
6. The distributed distribution network terminal testing method based on cloud platform according to claim 4 is characterized in that: After the test report is generated, it also includes: When the fault judgment result in the test report indicates that a fault exists, a fault warning signal is issued.
7. A distributed distribution network terminal test system based on a cloud platform, characterized in that: include: Terminal information acquisition module, test task generation module, priority determination module, resource status acquisition module, task allocation module and data processing module; The terminal information acquisition module is used to obtain the device type of each distribution network terminal to be tested; The test task generation module is used to generate a task set including one or more test tasks and a task deadline corresponding to the test task for each distribution network terminal to be tested according to the device type; The test tasks include: functional testing, performance testing, reliability testing or safety testing; The priority determination module is used to determine the priority order of each test task according to the device type to which each test task belongs and the task deadline corresponding to each test task; The resource status acquisition module is used to acquire the resource status of each test node in the cloud platform in real time; the resource status includes: CPU usage, memory remaining, storage space and network bandwidth; The task allocation module is used to allocate each test task to the test node in the corresponding priority order according to the resource status of each test node, so that the test node obtains the test script and test data according to the received test task, and tests the corresponding distribution network terminal according to the test script and test data to obtain the operation data of the distribution network terminal; The data processing module is used to input the operating data of the distribution network terminal into the trained analysis model to generate a test report.
8. The distributed distribution network terminal test system based on cloud platform according to claim 7 is characterized in that: Also includes: Classification storage module; The classification storage module is used to classify and store the test reports according to the types of equipment they belong to.
9. A terminal device, characterized in that: include: A processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, the distributed distribution network terminal testing method based on a cloud platform as described in any one of claims 1 to 6 is implemented.
10. A computer-readable storage medium, characterized in that: include: A stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the cloud platform-based distributed distribution network terminal testing method as described in any one of claims 1-6.
Citation Information
Cited By
Synchronous test method of distributed Internet of Things terminal and related equipment
CN121309434A
Cross-type test method and system for power protection device
CN122063370A