Automatic testing method and system for simulation detection of intelligent patrol system of transformer substation

By constructing a simulation testing method for an intelligent substation inspection system, and using a genetic algorithm to generate test case sets and scripts, the automated testing system solves the problem of low efficiency in traditional manual testing, achieving efficient and comprehensive test coverage and accuracy.

CN120849291APending Publication Date: 2025-10-28GUODIAN NANJING AUTOMATION SOFTWARE ENG
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511051095.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-07-29
Publication Date
2025-10-28

AI Technical Summary

Technical Problem

Traditional testing methods for intelligent substation inspection systems rely on manual operation, which is inefficient and cannot cover all possible working scenarios and fault conditions.

Method used

A genetic algorithm is used to generate a set of target test cases, and a test simulation environment is built. The intelligent substation inspection system is tested automatically through test scripts, including robot and drone simulation equipment, to simulate substation scenarios. The system is also used for collaborative simulation with the upper-level simulation master station and the main and auxiliary monitoring system.

Benefits of technology

It enables the rapid execution of a large number of test cases, shortens the testing cycle, improves testing efficiency, reduces labor costs and the risk of human error, and ensures the comprehensiveness and accuracy of testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120849291A_ABST
    Figure CN120849291A_ABST
Patent Text Reader

Abstract

The invention discloses an automatic test method and system for simulation detection of a transformer substation intelligent patrol system, and relates to the technical field of intelligent transformer substation testing, and the method comprises the steps: constructing a test simulation environment of a to-be-tested transformer substation intelligent patrol system; based on a genetic algorithm, generating a target test case set in a test simulation environment; generating a test script based on the target test case set; and testing the to-be-tested substation intelligent patrol system in the test simulation environment based on the test script to obtain a test result. According to the invention, the technical problems of low efficiency and incomplete coverage in the prior art are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of intelligent substation testing technology, specifically to an automated testing method and system for simulation testing of an intelligent substation inspection system. Background Technology

[0002] With the continuous development and increasing intelligence of power systems, intelligent substation inspection systems are being used more and more widely. These systems utilize robots, drones, cameras, and other equipment to automatically inspect and monitor substation equipment, improving operational efficiency and safety. However, to ensure the reliability and functionality of these intelligent substation inspection systems, rigorous testing is necessary. Traditional testing methods often rely on manual operation, which is inefficient and fails to cover all possible working scenarios and fault conditions. Summary of the Invention

[0003] The purpose of this invention is to provide an automated testing method and system for simulation testing of a substation intelligent inspection system in order to solve at least one of the above-mentioned technical problems.

[0004] In a first aspect, embodiments of the present invention provide an automated testing method for simulation testing of a substation intelligent inspection system, comprising: constructing a test simulation environment for the substation intelligent inspection system to be tested; generating a target test case set in the test simulation environment based on a genetic algorithm; generating a test script based on the target test case set; and testing the substation intelligent inspection system to be tested in the test simulation environment based on the test script to obtain test results.

[0005] Optionally, the method further includes: optimizing the intelligent inspection system of the substation under test based on the test results.

[0006] Optionally, the test simulation environment includes data acquisition equipment, a higher-level simulation master station, and a main and auxiliary monitoring system; wherein, the data acquisition equipment includes robot simulation equipment and drone simulation equipment, used to simulate intelligent inspection scenarios of substations; the higher-level simulation master station is used to simulate the control tasks of the substation; and the main and auxiliary monitoring system is used to work in conjunction with the higher-level simulation master station to simulate the simulation signals of the substation.

[0007] Optionally, generating a target test case set in the test simulation environment based on a genetic algorithm includes: randomly generating an initial test case set in the test simulation environment; calculating the corresponding fitness value based on the number of functional points covered by each test case in the initial test case set and the accuracy of the test results; selecting test cases with fitness values ​​exceeding a preset threshold as parent individuals based on a roulette wheel selection method; performing crossover and mutation operations on the parent individuals to generate new test cases; adding the new test cases to the initial test case set and replacing test cases with low fitness to obtain a new test case set; repeating the selection, crossover, mutation, and replacement operations on the new test case set until a preset stopping condition is met to obtain the target test case set.

[0008] Optionally, the intelligent inspection system of the substation under test is tested in the test simulation environment based on the test script to obtain test results, including: testing robot control, UAV control, task issuance, data acquisition and analysis in the test simulation environment based on the test script to obtain test data; analyzing the test data to obtain test results; the test results include: functional test results, performance index evaluation, and fault and vulnerability detection results.

[0009] Secondly, embodiments of the present invention also provide an automated testing system for simulation testing of a substation intelligent inspection system, comprising: a construction module, a first generation module, a second generation module, and a testing module; wherein, the construction module is used to construct a test simulation environment for the substation intelligent inspection system to be tested; the first generation module is used to generate a target test case set in the test simulation environment based on a genetic algorithm; the second generation module is used to generate a test script based on the target test case set; and the testing module is used to test the substation intelligent inspection system to be tested in the test simulation environment based on the test script, and obtain test results.

[0010] Optionally, it also includes an optimization module for optimizing the intelligent inspection system of the substation under test based on the test results.

[0011] Optionally, the testing module is further configured to: test robot control, drone control, task assignment, data acquisition and analysis in the test simulation environment based on the test script, and obtain test data; analyze the test data to obtain test results; the test results include: functional test results, performance index evaluation, and fault and vulnerability detection results.

[0012] Thirdly, embodiments of the present invention also provide an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method provided in the embodiments of the present invention.

[0013] Fourthly, embodiments of the present invention also provide a computer-readable storage medium storing computer instructions that, when executed by a processor, implement the method provided in the embodiments of the present invention.

[0014] This invention provides an automated testing method and system for simulation testing of a substation intelligent inspection system. It can quickly execute a large number of test cases, shorten the testing cycle, and improve testing efficiency. The testing process does not require manual intervention, reducing labor costs and the risk of human error. The simulation environment can simulate various normal and abnormal working scenarios, ensuring the comprehensiveness and accuracy of the test. It alleviates the technical problems of low efficiency and incomplete coverage in existing technologies. Attached Figure Description

[0015] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0016] Figure 1 A flowchart of an automated testing method for simulation detection of a substation intelligent inspection system provided in an embodiment of the present invention; Figure 2 A flowchart of another automated testing method for simulation detection of a substation intelligent inspection system provided in an embodiment of the present invention; Figure 3 A schematic diagram of the architecture of a test simulation environment provided in an embodiment of the present invention; Figure 4 A flowchart of an automated testing system for simulation testing of a substation intelligent inspection system provided in an embodiment of the present invention. Detailed Implementation

[0017] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.

[0018] Example 1 Figure 1 This is a flowchart of an automated testing method for simulation detection of a substation intelligent inspection system according to an embodiment of the present invention. Figure 2 This is a flowchart of another automated testing method for simulation detection of a substation intelligent inspection system provided by an embodiment of the present invention. Figure 1 and Figure 2 As shown, the method specifically includes the following steps: Step S102: Construct a test simulation environment for the intelligent inspection system of the substation to be tested.

[0019] Step S104: Generate the target test case set in the test simulation environment based on the genetic algorithm.

[0020] Step S106: Generate test scripts based on the target test case set.

[0021] Step S108: Based on the test script, the intelligent inspection system of the substation under test is tested in the test simulation environment to obtain the test results.

[0022] Figure 3 This is a schematic diagram of the architecture of a test simulation environment provided according to an embodiment of the present invention. Figure 3 As shown, the test simulation environment includes data acquisition equipment, a higher-level simulation master station, and a main and auxiliary monitoring system; among which, The data acquisition equipment includes robot simulation devices and drone simulation devices, used to simulate intelligent substation inspection scenarios. Specifically, it includes normal and abnormal images from the robot and drone simulation devices, and transmits these images to the intelligent inspection system to test its ability to identify and judge equipment status.

[0023] The higher-level simulation master station is used to simulate the control tasks of the substation. Specifically, as the superior command and monitoring center of the intelligent inspection system, the higher-level simulation master station can send control tasks to the intelligent inspection system of the substation, evaluate the analysis results sent by the intelligent inspection system, and issue alarms when anomalies are detected.

[0024] The main and auxiliary monitoring system is used to work in conjunction with the superior simulation master station to simulate the simulation signals of the substation; and it can also test and verify the intelligent linkage and one-click sequential control functions of the inspection system.

[0025] Specifically, step S104 further includes the following steps: Step S1041: In the test simulation environment, an initial test case set is randomly generated.

[0026] Specifically, in the test simulation environment, a certain number of test cases are randomly generated to form an initial test case set, where each test case contains different equipment failure states, such as equipment failure states under different angles and different weather conditions.

[0027] Step S1042: Calculate the corresponding fitness value based on the number of functional points covered by each test case in the initial test case set and the accuracy of the test results. A higher fitness value indicates that the test case is more effective in detecting system functions.

[0028] Preferably, the fitness calculation formula is: Fitnessi=Ci / (α×Cmax)+β×(Ai / Amax) Where Fitnessi represents the fitness value of the i-th test case, Ci represents the number of function points covered by the i-th test case, Cmax represents the total number of function points in the system, Ai represents the accuracy score of the test result of the i-th test case, Amax represents the maximum value of the accuracy score of the test result, α and β represent the weight coefficients of function point coverage and test result accuracy, respectively, and α+β=1.

[0029] Step S1043: Based on the roulette wheel selection method, select test cases with fitness values ​​exceeding a preset threshold as parent individuals.

[0030] Specifically, based on the fitness value, test cases with higher fitness are selected as parent individuals for subsequent crossover and mutation operations. The selection operation employs a roulette wheel selection algorithm, and the selection probability is calculated using the following formula: Among them, P i Represents the probability that the i-th test case is selected, Fitness i represents the fitness value of the i-th test case, and N represents the number of test cases in the current test case set.

[0031] Step S1044: Perform crossover and mutation operations on the parent individuals to generate new test cases.

[0032] Specifically, crossover operation refers to combining the test cases of two parent individuals to generate new test cases; mutation operation refers to randomly changing the test cases of a single parent individual to generate new test cases.

[0033] Preferably, the crossover operation uses the single-point crossover method; the mutation operation uses the bit-flip mutation method.

[0034] Step S1045: Add the new test cases to the initial test case set and replace the test cases with low fitness to obtain a new test case set.

[0035] Step S1046 involves repeating the selection, crossover, mutation, and replacement operations on the new test case set until a preset stopping condition is met, resulting in the target test case set. For example, the preset stopping condition may include achieving a preset coverage rate or reaching a preset number of iterations.

[0036] Specifically, step S108 further includes the following steps: Step S1081: Based on the test script, test the robot control, drone control, task assignment, data acquisition and analysis in the test simulation environment to obtain test data; Step S1082: Analyze the test data to obtain test results; the test results include: functional test results, performance index evaluation, and fault and vulnerability detection results.

[0037] The method provided in this embodiment of the invention further includes: generating a test report based on the test results; wherein the test report format includes PDF, Excel, HTML, etc.

[0038] The method provided in this embodiment of the invention further includes, after step S108: optimizing the intelligent inspection system of the substation to be tested based on the test results.

[0039] Assuming a substation intelligent inspection system has 100 functional points, and the maximum accuracy score for the test results is 10 points, initially 10 test cases are generated. After calculation, one of these test cases covers 80 functional points, achieving an accuracy score of 9 points. Its fitness value is: Fitness = 0.6 × (80 / 100) + 0.4 × (9 / 10) = 0.6 × 0.8 + 0.4 × 0.9 = 0.48 + 0.36 = 0.84. After multiple iterations, the final set of test cases covers 95 functional points, meeting the test coverage requirement. The generated test scripts can comprehensively test the functionality and performance of the substation intelligent inspection system.

[0040] The automated testing method for simulation detection of a substation intelligent inspection system provided in this invention has the following technical advantages compared with the prior art: (1) Improve testing efficiency: Automated testing tools can quickly execute a large number of test cases, which greatly shortens the testing cycle and improves testing efficiency.

[0041] (2) Reduced human intervention: The entire testing process does not require human intervention, which reduces labor costs and the risk of human error.

[0042] (3) Comprehensive coverage of test scenarios: The simulation environment can simulate various normal and abnormal working scenarios to ensure the comprehensiveness and accuracy of the test.

[0043] (4) Reduce costs: By constructing a test environment through simulation technology, the large amount of equipment investment and manpower costs required for testing in actual substations are avoided.

[0044] (5) Repeatability and stability: The automated testing process has good repeatability and can stably detect the performance and function of the system.

[0045] Example 2 Figure 4 This is a flowchart of an automated testing system for simulation detection of a substation intelligent inspection system provided according to an embodiment of the present invention. Figure 4 As shown, the system includes: a construction module 10, a first generation module 20, a second generation module 30, and a testing module 40.

[0046] Specifically, module 10 is used to build a test simulation environment for the intelligent inspection system of the substation to be tested; The first generation module 20 is used to generate a target test case set in a test simulation environment based on a genetic algorithm. The second generation module 30 is used to generate test scripts based on the target test case set; Test module 40 is used to test the intelligent inspection system of the substation under test in a test simulation environment based on the test script and obtain the test results.

[0047] Specifically, test module 40 is also used for: Based on the test script, the robot control, drone control, task assignment, data acquisition and analysis were tested in the test simulation environment to obtain test data; The test data is analyzed to obtain the test results, which include: functional test results, performance indicator evaluation, and fault and vulnerability detection results.

[0048] Specifically, such as Figure 4 As shown, it also includes: an optimization module 50, used to optimize the intelligent inspection system of the substation under test based on the test results.

[0049] The present invention also provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method provided in the embodiments of the present invention.

[0050] The present invention also provides a computer-readable storage medium storing computer instructions that, when executed by a processor, implement the method provided in the embodiments of the present invention.

[0051] It will be apparent to those skilled in the art that the present invention is not limited to the details of the exemplary embodiments described above, and that the invention can be implemented in other specific forms without departing from its spirit or essential characteristics. Therefore, the embodiments should be considered in all respects as exemplary and non-limiting, and the scope of the invention is defined by the appended claims rather than the foregoing description. Thus, all variations falling within the meaning and scope of equivalents of the claims are intended to be included within the present invention. No reference numerals in the claims should be construed as limiting the scope of the claims.

[0052] Furthermore, it should be understood that although this specification describes embodiments, not every embodiment contains only one independent technical solution. This narrative style is merely for clarity. Those skilled in the art should consider the specification as a whole, and the technical solutions in each embodiment can also be appropriately combined to form other embodiments that can be understood by those skilled in the art.

Claims

1. An automated testing method for simulation detection of a substation intelligent inspection system, characterized in that, include: Construct a test simulation environment for the intelligent inspection system of the substation to be tested; Based on a genetic algorithm, a target test case set is generated in the test simulation environment. Based on the target test case set, generate test scripts; The intelligent inspection system of the substation under test was tested in the test simulation environment based on the test script, and the test results were obtained.

2. The method according to claim 1, characterized in that: The method further includes optimizing the intelligent inspection system of the substation under test based on the test results.

3. The method according to claim 1, characterized in that: The test simulation environment includes data acquisition equipment, a higher-level simulation master station, and a master-slave monitoring system; wherein... The data acquisition equipment includes robot simulation equipment and drone simulation equipment, which are used to simulate intelligent inspection scenarios of substations. The higher-level simulation master station is used to simulate the control tasks of a substation; The main and auxiliary monitoring system is used to work in conjunction with the upper-level simulation master station to simulate the simulation signals of the substation.

4. The method according to claim 1, characterized in that: Based on a genetic algorithm, a target test case set is generated in the test simulation environment, including: In the test simulation environment, an initial set of test cases is randomly generated; Based on the number of functional points covered by each test case in the initial test case set and the accuracy of the test results, the corresponding fitness value is calculated; Based on the roulette wheel selection method, test cases with fitness values ​​exceeding a preset threshold are selected as parent individuals; Crossover and mutation operations are performed on the parent individuals to generate new test cases; The new test cases are added to the initial test case set, and the test cases with low fitness are replaced to obtain a new test case set; Repeat the selection, crossover, mutation, and replacement operations on the new test case set until the preset stopping condition is met to obtain the target test case set.

5. The method according to claim 1, characterized in that: The intelligent inspection system of the substation under test was tested in the test simulation environment based on the test script, and the test results were obtained, including: Based on the test script, robot control, drone control, task assignment, data acquisition and analysis are tested in the test simulation environment to obtain test data. The test data is analyzed to obtain test results; the test results include: functional test results, performance index evaluation, and fault and vulnerability detection results.

6. An automated testing system for simulation testing of a substation intelligent inspection system, characterized in that, include: The module consists of a build module, a first generation module, a second generation module, and a test module; among which, The construction module is used to build a test simulation environment for the intelligent inspection system of the substation to be tested; The first generation module is used to generate a target test case set in the test simulation environment based on a genetic algorithm; The second generation module is used to generate test scripts based on the target test case set; The testing module is used to test the intelligent inspection system of the substation under test in the test simulation environment based on the test script, and obtain the test results.

7. The system according to claim 6, characterized in that: Also includes: An optimization module is used to optimize the intelligent inspection system of the substation under test based on the test results.

8. The system according to claim 6, characterized in that: The test module is also used for: Based on the test script, robot control, drone control, task assignment, data acquisition and analysis are tested in the test simulation environment to obtain test data. The test data is analyzed to obtain the test results; The test results include: functional test results, performance indicator evaluation, and fault and vulnerability detection results.

9. An electronic device, characterized in that, include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the method as claimed in any one of claims 1-5.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a processor, implement the method as described in any one of claims 1-5.