Automatic test method and system for intelligent linkage of centralized control station
By automatically generating and executing intelligent linkage test cases for centralized control stations, the problems of low testing efficiency and insufficient coverage in the existing technology are solved, and intelligent and efficient automatic testing of intelligent linkage functions of centralized control stations are realized, improving the test quality and efficiency .
Patent Information
- Application Number
- CN202411041428.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-12-13
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The intelligent linkage automatic testing method of the existing substation centralized monitoring system is inefficient, and the reverse test cases cannot be configured, the test coverage is insufficient, and the test reports cannot be generated automatically. The test cases need to be configured manually, which is prone to errors.
Provides a method for intelligent linkage automatic testing of centralized control stations, including loading intelligent linkage policy library, automatically generating test cases and expected results, executing forward and reverse test cases in order, generating test results and comparing, and automatically generating test reports.
It improves the testing efficiency and quality, realizes intelligent and efficient automatic testing of the intelligent linkage function of the centralized control station, reduces labor costs, and enhances test coverage and product quality.
Smart Images

Figure CN119126738A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of automatic testing of a centralized monitoring system of a substation, and in particular to an intelligent linkage automatic testing method and system for a centralized control station. Background Art
[0002] Substation auxiliary equipment is an important part of ensuring the safe and stable operation of substations. They cover many aspects, including fire monitoring equipment, security and defense equipment, dynamic environment monitoring equipment, online monitoring equipment, and lighting control equipment. Each type of equipment contains a large number of auxiliary equipment. The main function of these auxiliary equipment is to provide a safe, comfortable, and efficient working environment for the substation and ensure the normal operation of the main equipment. Substation auxiliary equipment plays an indispensable role in ensuring the safe and stable operation of substations. With the continuous advancement and application of technology, the functions and performance of these equipment are also constantly improving, providing more reliable and efficient guarantees for the operation of substations.
[0003] The centralized monitoring system (centralized control station) of the new generation of substations plays an important role in the management of auxiliary equipment. The system realizes comprehensive monitoring and management of auxiliary equipment by integrating information technology, Internet of Things technology, big data technology and artificial intelligence technology. The system can monitor the operating status of the equipment in real time, perform fault diagnosis and early warning, support remote operation and control, and provide rich data recording and analysis functions. Intelligent linkage is an important function of the new generation of substation centralized monitoring system. The application of intelligent linkage function makes the auxiliary equipment of the substation no longer an isolated individual, but forms an organic whole, which can cooperate with each other to jointly ensure the safe and stable operation of the substation. At the same time, this also provides a more convenient and efficient management method for operation and maintenance personnel, improving work efficiency and operation and maintenance level.
[0004] The centralized control station will form an intelligent linkage strategy library based on operation and maintenance experience. When the linkage conditions are met, the intelligent linkage of auxiliary equipment will be triggered, such as turning on lights, doors, fans, water pumps, etc., to automatically handle some relatively simple faults. Before the intelligent linkage function is officially put into operation, the testing and verification of the linkage function is particularly important. However, traditional testing methods mostly rely on manual operation, which is inefficient and error-prone, and cannot meet the needs of modern industrial production. Therefore, the development of an intelligent and efficient automatic testing method and system is of great significance to improving the testing efficiency and quality of the intelligent linkage function of the centralized control station. The current testing system has the following problems:
[0005] Test cases need to be configured manually, which is inefficient and error-prone;
[0006] Only forward test cases can be configured, but reverse test cases cannot be configured, resulting in insufficient test coverage;
[0007] When executing test cases, you can only execute them manually one by one, and cannot execute them automatically in sequence;
[0008] Unable to automatically generate test report. Summary of the invention
[0009] The purpose of the present invention is to solve at least one technical problem in the background technology and to provide a method and system for intelligent linkage automatic testing of a centralized control station.
[0010] To achieve the above object, the present invention provides an intelligent linkage automatic testing method for a centralized control station, comprising:
[0011] Load the intelligent linkage strategy library of the centralized control station, generate and export the linkage strategy library file;
[0012] Load the scd file and the linkage strategy library file to automatically generate intelligent linkage test cases and expected results;
[0013] Execute the forward test cases and reverse test cases in sequence and generate test results;
[0014] Compare the test results with the expected results. If they meet the expected results, the test passes. If they do not meet the expected results, the test fails.
[0015] Generate a test report with the test results, expected results and comparison results.
[0016] According to one aspect of the present invention, the linkage policy library file includes a trigger source, a trigger condition, a linkage event and a timeout period.
[0017] According to one aspect of the present invention, when the centralized control station exports the linkage strategy library file, the linkage strategy library in the centralized control station database is loaded, the measurement point of the trigger source is read, and then the measurement point table in the database is matched. If the match fails, a configuration error is prompted, and the linkage strategy library of the centralized control station is modified and reloaded; if the match is successful, the trigger source in the linkage strategy library file is generated according to the trigger source of the linkage strategy library in the centralized control station database, including the plant station to which it belongs, the signal name, the trigger source type, and the reference address.
[0018] According to one aspect of the present invention, when the linkage strategy library file is exported in the centralized control station, the measurement points of the linkage events are loaded, and then the measurement point table in the centralized control station database is matched. If the match fails, a configuration error is prompted, and the linkage strategy library of the centralized control station is modified and reloaded; if the match is successful, the linkage events in the linkage strategy library file are generated according to the linkage events of the linkage strategy library in the centralized control station database, including the plant station to which it belongs, signal name, reference address, and remote control expected value.
[0019] According to one aspect of the present invention, the triggering condition in the linkage policy library file is generated by combining the triggering source type and the triggering condition of the linkage policy library;
[0020] The trigger conditions in the linkage strategy library file include:
[0021] When the trigger source type is main equipment remote signaling and auxiliary equipment remote signaling, the trigger conditions are open position and closed position;
[0022] When the trigger source type is primary device telemetry and auxiliary device telemetry, the trigger conditions are exceeding the upper limit, exceeding the upper limit, exceeding the limit recovery, exceeding the lower limit, and exceeding the lower limit. At the same time, various limit values of the telemetry point are read and written into the linkage strategy library file;
[0023] When the trigger source type is remote preset, the trigger conditions are preset open successfully and preset close successfully.
[0024] According to one aspect of the present invention, the loading of the scd file and the linkage strategy library file to generate intelligent linkage test cases and expected results includes:
[0025] Load scd file and linkage strategy library file;
[0026] Match the reference address of the trigger source in the linkage strategy library file to the scd file. If the match fails, an error message is displayed and the process ends. If the match succeeds, the successfully matched measurement point is used as the trigger source in the test case.
[0027] Generate the trigger source preset state in the intelligent linkage test case according to the trigger conditions in the linkage strategy library file;
[0028] The linkage events in the scd file and the linkage strategy library file are matched through the reference address. If the match fails, an error prompt is given and the process ends. If the match succeeds, the expected results in the intelligent linkage test case are generated according to the linkage events in the linkage strategy library file, and the matched measurement points are added to the expected results in the intelligent linkage test case. At the same time, the value of the expected result in the intelligent linkage test case is generated according to the remote control expected value of the linkage event.
[0029] According to one aspect of the present invention, the reverse test case is generated by changing the data quality and expected result of the trigger source signal in the intelligent linkage test case and / or by changing the remote control command response identifier and expected result in the intelligent linkage test case.
[0030] According to one aspect of the present invention, the step of executing the forward test case and the reverse test case in sequence to generate the test result includes:
[0031] When the trigger source is remote signaling, the trigger source signal is sent to the centralized control station according to the trigger source measurement point and trigger source preset state in the intelligent linkage test case. After the centralized control station receives the trigger source signal, the intelligent linkage function responds, triggers the linkage event, issues a remote control command, and automatically changes the state of the measurement point corresponding to the linkage event according to the remote control command;
[0032] When the trigger source is telemetry, the telemetry value of the trigger source measurement point is sent to the centralized control station according to the trigger source measurement point and the preset state of the trigger source in the intelligent linkage test case. After the centralized control station receives the telemetry value of the trigger source measurement point, the intelligent linkage function responds, triggers the linkage event, issues a remote control command, and automatically changes the state of the measurement point corresponding to the linkage event according to the remote control command;
[0033] When the trigger source is remote control preset, the remote control preset analog message is sent to the centralized control station. After the centralized control station receives the remote control preset analog message, the intelligent linkage function responds, triggers the linkage event, issues a remote control command, and automatically changes the state of the measurement point corresponding to the linkage event according to the remote control command;
[0034] When executing the reverse test case of abnormal trigger source signal quality, a trigger source signal with invalid or suspicious data quality is sent to the centralized control station. After the centralized control station receives the trigger source signal with invalid or suspicious data quality, the intelligent linkage function does not respond and does not trigger the linkage event;
[0035] When executing the reverse test case of linkage event remote control failure, a trigger source signal is sent to the centralized control station. After the centralized control station receives the trigger source signal, the intelligent linkage function responds, triggers the linkage event, and issues a remote control command, but does not respond to the remote control command.
[0036] According to one aspect of the present invention, comparing the test result with the expected result is:
[0037] The waiting time in the forward test case and the reverse test case is generated according to the timeout time in the linkage strategy library file. After the forward test case and the reverse test case are executed, they wait for the corresponding waiting time and then automatically compare with the expected results.
[0038] To achieve the above object, the present invention also provides an intelligent linkage automatic test system for a centralized control station, comprising:
[0039] The linkage strategy library file acquisition module loads the intelligent linkage strategy library of the centralized control station, generates and exports the linkage strategy library file;
[0040] An intelligent linkage test case and expected result generation module loads the scd file and the linkage strategy library file to automatically generate intelligent linkage test cases and expected results;
[0041] The test case execution module executes the forward test cases and the reverse test cases in sequence and generates the test results;
[0042] The test result comparison module compares the test result with the expected result. If the test result meets the expected result, the test passes. If the test result does not meet the expected result, the test fails.
[0043] The result output module generates a test report based on the test results, expected results and comparison results.
[0044] According to the solution of the present invention, after the test case is automatically generated, the test case can be automatically executed and a test report can be generated to test and verify whether the intelligent linkage function of the centralized control station is normal, without the need to manually execute the test case. The present invention can automatically generate and automatically execute the intelligent linkage test case of the centralized control station, not only considering the forward test case, but also considering the reverse test case, realizing intelligent and efficient automatic testing of the intelligent linkage function of the centralized control station, greatly improving the test efficiency and test quality, and greatly reducing the labor cost.
[0045] According to the above solution of the present invention, both positive test cases and reverse test cases can be generated, which greatly improves the test coverage and product quality;
[0046] The present invention realizes intelligent and efficient automatic testing of the intelligent linkage function of the centralized control station through the organic combination of the centralized control station intelligent linkage strategy library, the scd file and the automatic testing system, and has important practical value and application prospects. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 The flowchart schematically shows a method for intelligent linkage automatic testing of a centralized control station according to an embodiment of the present invention. DETAILED DESCRIPTION
[0048] The present invention will now be discussed with reference to exemplary embodiments. It should be understood that the embodiments discussed are only to enable those skilled in the art to better understand and thus implement the present invention, rather than implying any limitation on the scope of the present invention.
[0049] As used herein, the term “including” and variations thereof are to be interpreted as open-ended terms meaning “including, but not limited to.” The term “based on” is to be interpreted as “based, at least in part, on.” The terms “one embodiment” and “an embodiment” are to be interpreted as “at least one embodiment.”
[0050] Figure 1 The flowchart schematically shows a method for automatic testing of a centralized control station intelligent linkage according to an embodiment of the present invention. Figure 1 As shown, in this embodiment, the intelligent linkage automatic testing method of the centralized control station includes:
[0051] Load the intelligent linkage strategy library of the centralized control station, generate and export the linkage strategy library file;
[0052] Load scd files and linkage strategy library files to automatically generate intelligent linkage test cases and expected results;
[0053] Execute the forward test cases and reverse test cases in sequence and generate test results;
[0054] Compare the test results with the expected results. If they meet the expected results, the test passes. If they do not meet the expected results, the test fails.
[0055] Generate a test report with the test results, expected results and comparison results.
[0056] According to one embodiment of the present invention, the linkage strategy library file includes a trigger source, a trigger condition, a linkage event, and a timeout period. The linkage strategy library is configured by a dedicated configuration tool for the centralized control station system. For example, through configuration, it is set that when the temperature exceeds 32°C, the air conditioner is automatically turned on; when someone invades the substation, the broadcast alarm is automatically turned on; when the water level exceeds the warning value, the water pump is automatically turned on, etc.
[0057] Furthermore, according to an embodiment of the present invention, when the centralized control station exports the linkage strategy library file, the linkage strategy library in the centralized control station database is loaded, the measurement point of the trigger source is read, and then the measurement point table in the database is matched. If the match fails, a configuration error is prompted, and the linkage strategy library of the centralized control station is modified and reloaded; if the match is successful, the trigger source in the linkage strategy library file is generated according to the trigger source of the linkage strategy library in the centralized control station database, including the plant station to which it belongs, signal name, trigger source type, and reference address.
[0058] In this implementation, the plant station is used to identify the plant station to which the trigger source signal belongs, and is identified in the form of name + digital ID; the signal name is consistent with the signal name in the matched measuring point table; the trigger source type is divided into main equipment telesignaling, main equipment telemetry, auxiliary equipment telesignaling, auxiliary equipment telemetry, and remote control preset; the reference address is consistent with the reference address in the matched measuring point table.
[0059] Furthermore, according to an embodiment of the present invention, when the centralized control station exports the linkage strategy library file, the measurement points of the linkage events are loaded, and then the measurement point table in the centralized control station database is matched. If the match fails, a configuration error is prompted, and the linkage strategy library of the centralized control station is modified and reloaded; if the match is successful, the linkage events in the linkage strategy library file are generated according to the linkage events of the linkage strategy library in the centralized control station database, including the plant station to which it belongs, signal name, reference address, and remote control expected value.
[0060] In this implementation, the affiliated plant station is used to identify the plant station to which the linkage event belongs, and the name + digital ID is used for identification; the signal name is consistent with the signal name in the matched measurement point table; the reference address is consistent with the reference address in the matched measurement point table; the remote control expectation value is divided into control-off and control-on, control-off is represented by 0, and control-on is represented by 1, which is used to identify the remote control expectation of the auxiliary device. When there are multiple linkage events, they are written into the linkage strategy library file in the order of the linkage events in the linkage strategy library.
[0061] Further, according to an embodiment of the present invention, the triggering conditions in the linkage strategy library file are generated by combining the triggering source type and the triggering conditions of the linkage strategy library;
[0062] The trigger conditions in the linkage policy library file include:
[0063] When the trigger source type is main equipment remote signaling and auxiliary equipment remote signaling, the trigger conditions are open position and closed position;
[0064] When the trigger source type is primary device telemetry and auxiliary device telemetry, the trigger conditions are exceeding the upper limit, exceeding the upper limit, exceeding the limit recovery, exceeding the lower limit, and exceeding the lower limit. At the same time, various limit values of the telemetry point are read and written into the linkage strategy library file;
[0065] When the trigger source type is remote preset, the trigger conditions are preset open successfully and preset close successfully.
[0066] Further, according to an embodiment of the present invention, the scd file and the linkage strategy library file are loaded to generate intelligent linkage test cases and expected results, including:
[0067] Load scd file and linkage strategy library file;
[0068] Match the reference address of the trigger source in the linkage strategy library file to the scd file. If the match fails, an error message is displayed and the process ends. If the match succeeds, the successfully matched test point is used as the trigger source in the intelligent linkage test case.
[0069] Generate the trigger source preset state in the intelligent linkage test case according to the trigger condition in the linkage strategy library file; in this embodiment, when the trigger condition is split, the preset value of the remote signal trigger source in the intelligent linkage test case is set to 0; when the trigger condition is closed, the preset value of the remote signal trigger source in the intelligent linkage test case is set to 1; when the trigger condition is over the upper limit, the preset value of the telemetry trigger source in the intelligent linkage test case is set to a random number larger than the upper limit value; when the trigger condition is over the upper limit, the preset value of the telemetry trigger source in the intelligent linkage test case is set to a random number between the upper limit and the upper limit; when the trigger condition is over limit recovery, the telemetry trigger source in the intelligent linkage test case is set to a random number between the upper limit and the upper limit; The preset value of the telemetry trigger source is set to a random number between the upper limit and the lower limit; when the trigger condition is over the lower limit, the preset value of the telemetry trigger source in the intelligent linkage test case is set to a random number between the lower limit and the lower lower limit; when the trigger condition is over the lower lower limit, the preset value of the telemetry trigger source in the intelligent linkage test case is set to a random number smaller than the lower lower limit; when the trigger condition is preset separation success, the preset state of the trigger source in the intelligent linkage test case is set to a simulation message that simulates remote control preset separation of the trigger source measurement point; when the trigger condition is preset closing success, the preset state of the trigger source in the intelligent linkage test case is set to a simulation message that simulates remote control preset closing of the trigger source measurement point;
[0070] Match the linkage events in the scd file and the linkage strategy library file through the reference address. If the match fails, an error message is displayed and the process ends. If the match succeeds, the expected result in the intelligent linkage test case is generated according to the linkage event in the linkage strategy library file, and the matched measurement point is added to the expected result in the intelligent linkage test case. At the same time, the value of the expected result in the intelligent linkage test case is generated according to the remote control expected value of the linkage event. In this embodiment, when the remote control expected value of the linkage event is control separation, the value of the expected result in the intelligent linkage test case is set to 0, and when the remote control expected value of the linkage event is control connection, the value of the expected result in the intelligent linkage test case is set to 1.
[0071] Further, according to an embodiment of the present invention, a reverse test case is generated by changing the data quality and expected result of a trigger source signal in an intelligent linkage test case and / or by changing a remote control command response identifier and expected result in an intelligent linkage test case.
[0072] In this embodiment, a reverse test case is generated by changing the data quality and expected result of the trigger source signal in the above-mentioned automatically generated intelligent linkage test case. For example, the data quality of the trigger source signal in the intelligent linkage test case is set to invalid or suspicious, and the expected result is reversed. When executing this test case, the trigger source signal sent by the test system to the centralized control station system will have invalid or suspicious data quality.
[0073] In this embodiment, a reverse test case is generated by changing the remote control command response identifier and expected result in the above automatically generated intelligent linkage test case. The remote control command response identifier is changed to rejection, and the expected result is reversed. When executing this test case, the test system will reject the remote control command of the centralized control station system.
[0074] Further, according to an embodiment of the present invention, the forward test case and the reverse test case are executed in sequence to generate a test result, including:
[0075] When the trigger source is remote signaling, the test system sends the trigger source signal to the centralized control station system through the communication module according to the trigger source measurement point and trigger source preset state in the test case. After the centralized control station system receives the trigger source signal, the intelligent linkage function responds, triggers the linkage event, and sends the remote control command to the test system. The test system responds to the remote control command and automatically changes the state of the measurement point corresponding to the linkage event, such as turning on the light, opening the door, turning on the fan, etc.
[0076] When the trigger source is telemetry, the test system sends the telemetry value of the trigger source measurement point to the centralized control station system through the communication module according to the trigger source measurement point and the trigger source preset state in the test case. After the centralized control station system receives the telemetry value of the trigger source measurement point, the intelligent linkage function responds, triggers the linkage event, and sends a remote control command to the test system. The test system responds to the remote control command and automatically changes the state of the measurement point corresponding to the linkage event, such as turning on the light, opening the door, turning on the fan, etc.
[0077] When the trigger source is remote control preset, the test system sends the remote control preset simulation message to the centralized control station system through the communication module. After the centralized control station system receives the remote control preset simulation message, the intelligent linkage function responds, triggers the linkage event, and sends the remote control command to the test system. The test system responds to the remote control command and automatically changes the state of the measurement point corresponding to the linkage event, such as turning on the light, opening the door, turning on the fan, etc.
[0078] When executing the reverse test case with abnormal trigger source signal quality, the test system sends a trigger source signal with invalid or suspicious data quality to the centralized control station system through the communication module; after the centralized control station system receives the signal with invalid or suspicious data quality, the intelligent linkage function does not respond and does not trigger the linkage event;
[0079] When executing the reverse test case of the failure of remote control of the linkage event, the test system sends a trigger source signal to the centralized control station system through the communication module. After the centralized control station system receives the trigger source signal, the intelligent linkage function responds, triggers the linkage event, and sends a remote control command to the test system. The test system does not respond to the remote control command.
[0080] Further, according to an embodiment of the present invention, the test result is compared with the expected result as follows:
[0081] The waiting time in the forward test case and the reverse test case is generated according to the timeout time in the linkage strategy library file. After the forward test case and the reverse test case are executed, they wait for the corresponding waiting time and then automatically compare with the expected results.
[0082] Further, according to an embodiment of the present invention, the test results are compared with the expected results. When they meet the expected results, the test passes; when they do not meet the expected results, the test fails. Then a test report is generated based on the test results, expected results and comparison results.
[0083] According to the above scheme of the present invention, after the test case is automatically generated, the test case can be automatically executed and a test report can be generated to test and verify whether the intelligent linkage function of the centralized control station is normal, without the need to manually execute the test case. The present invention can automatically generate the intelligent linkage test case of the centralized control station and automatically execute the test case, not only considering the forward test case, but also considering the reverse test case, realizing the intelligent and efficient automatic testing of the intelligent linkage function of the centralized control station, greatly improving the test efficiency and test quality, and greatly reducing the labor cost.
[0084] According to the above solution of the present invention, both positive test cases and reverse test cases can be generated, which greatly improves the test coverage and product quality;
[0085] The present invention realizes intelligent and efficient automatic testing of the intelligent linkage function of the centralized control station through the organic combination of the centralized control station intelligent linkage strategy library, the scd file and the automatic testing system, and has important practical value and application prospects.
[0086] Furthermore, to achieve the above-mentioned purpose, the present invention also provides an intelligent linkage automatic test system for a centralized control station, comprising:
[0087] The linkage strategy library file acquisition module loads the intelligent linkage strategy library of the centralized control station, generates and exports the linkage strategy library file;
[0088] The module for generating intelligent linkage test cases and expected results loads scd files and linkage strategy library files to automatically generate intelligent linkage test cases and expected results;
[0089] The test case execution module executes the forward test cases and the reverse test cases in sequence and generates the test results;
[0090] The test result comparison module compares the test result with the expected result. If the test result meets the expected result, the test passes. If the test result does not meet the expected result, the test fails.
[0091] The result output module generates a test report based on the test results, expected results and comparison results.
[0092] According to an implementation manner of the present invention, the linkage strategy library file includes a trigger source, a trigger condition, a linkage event and a timeout period.
[0093] Furthermore, according to an embodiment of the present invention, when the centralized control station exports the linkage strategy library file, the linkage strategy library in the centralized control station database is loaded, the measurement point of the trigger source is read, and then the measurement point table in the database is matched. If the match fails, a configuration error is prompted, and the linkage strategy library of the centralized control station is modified and reloaded; if the match is successful, the trigger source in the linkage strategy library file is generated according to the trigger source of the linkage strategy library in the centralized control station database, including the plant station to which it belongs, signal name, trigger source type, and reference address.
[0094] In this implementation, the plant station is used to identify the plant station to which the trigger source signal belongs, and is identified in the form of name + digital ID; the signal name is consistent with the signal name in the matched measuring point table; the trigger source type is divided into main equipment telesignaling, main equipment telemetry, auxiliary equipment telesignaling, auxiliary equipment telemetry, and remote control preset; the reference address is consistent with the reference address in the matched measuring point table.
[0095] Furthermore, according to an embodiment of the present invention, when the centralized control station exports the linkage strategy library file, the measurement points of the linkage events are loaded, and then the measurement point table in the centralized control station database is matched. If the match fails, a configuration error is prompted, and the linkage strategy library of the centralized control station is modified and reloaded; if the match is successful, the linkage events in the linkage strategy library file are generated according to the linkage events of the linkage strategy library in the centralized control station database, including the plant station to which it belongs, signal name, reference address, and remote control expected value.
[0096] In this implementation, the affiliated plant station is used to identify the plant station to which the linkage event belongs, and the name + digital ID is used for identification; the signal name is consistent with the signal name in the matched measurement point table; the reference address is consistent with the reference address in the matched measurement point table; the remote control expectation value is divided into control-off and control-on, control-off is represented by 0, and control-on is represented by 1, which is used to identify the remote control expectation of the auxiliary device. When there are multiple linkage events, they are written into the linkage strategy library file in the order of the linkage events in the linkage strategy library.
[0097] Further, according to an embodiment of the present invention, the triggering conditions in the linkage strategy library file are generated by combining the triggering source type and the triggering conditions of the linkage strategy library;
[0098] The trigger conditions in the linkage policy library file include:
[0099] When the trigger source type is main equipment remote signaling and auxiliary equipment remote signaling, the trigger conditions are open position and closed position;
[0100] When the trigger source type is primary device telemetry and auxiliary device telemetry, the trigger conditions are exceeding the upper limit, exceeding the upper limit, exceeding the limit recovery, exceeding the lower limit, and exceeding the lower limit. At the same time, various limit values of the telemetry point are read and written into the linkage strategy library file;
[0101] When the trigger source type is remote preset, the trigger conditions are preset open successfully and preset close successfully.
[0102] Further, according to an embodiment of the present invention, the scd file and the linkage strategy library file are loaded to generate intelligent linkage test cases and expected results, including:
[0103] Load scd file and linkage strategy library file;
[0104] Match the reference address of the trigger source in the linkage strategy library file to the scd file. If the match fails, an error message is displayed and the process ends. If the match succeeds, the successfully matched test point is used as the trigger source in the intelligent linkage test case.
[0105] Generate the trigger source preset state in the intelligent linkage test case according to the trigger condition in the linkage strategy library file; in this embodiment, when the trigger condition is split, the preset value of the remote signal trigger source in the intelligent linkage test case is set to 0; when the trigger condition is closed, the preset value of the remote signal trigger source in the intelligent linkage test case is set to 1; when the trigger condition is over the upper limit, the preset value of the telemetry trigger source in the intelligent linkage test case is set to a random number larger than the upper limit value; when the trigger condition is over the upper limit, the preset value of the telemetry trigger source in the intelligent linkage test case is set to a random number between the upper limit and the upper limit; when the trigger condition is over limit recovery, the telemetry trigger source in the intelligent linkage test case is set to a random number between the upper limit and the upper limit; The preset value of the telemetry trigger source is set to a random number between the upper limit and the lower limit; when the trigger condition is over the lower limit, the preset value of the telemetry trigger source in the intelligent linkage test case is set to a random number between the lower limit and the lower lower limit; when the trigger condition is over the lower lower limit, the preset value of the telemetry trigger source in the intelligent linkage test case is set to a random number smaller than the lower lower limit; when the trigger condition is preset separation success, the preset state of the trigger source in the intelligent linkage test case is set to a simulation message that simulates remote control preset separation of the trigger source measurement point; when the trigger condition is preset closing success, the preset state of the trigger source in the intelligent linkage test case is set to a simulation message that simulates remote control preset closing of the trigger source measurement point;
[0106] Match the linkage events in the scd file and the linkage strategy library file through the reference address. If the match fails, an error message is displayed and the process ends. If the match succeeds, the expected result in the intelligent linkage test case is generated according to the linkage event in the linkage strategy library file, and the matched measurement point is added to the expected result in the intelligent linkage test case. At the same time, the value of the expected result in the intelligent linkage test case is generated according to the remote control expected value of the linkage event. In this embodiment, when the remote control expected value of the linkage event is control separation, the value of the expected result in the intelligent linkage test case is set to 0, and when the remote control expected value of the linkage event is control connection, the value of the expected result in the intelligent linkage test case is set to 1.
[0107] Further, according to an embodiment of the present invention, a reverse test case is generated by changing the data quality and expected result of a trigger source signal in an intelligent linkage test case and / or by changing a remote control command response identifier and expected result in an intelligent linkage test case.
[0108] In this embodiment, a reverse test case is generated by changing the data quality and expected result of the trigger source signal in the above-mentioned automatically generated intelligent linkage test case. For example, the data quality of the trigger source signal in the intelligent linkage test case is set to invalid or suspicious, and the expected result is reversed. When executing this test case, the trigger source signal sent by the test system to the centralized control station system will have invalid or suspicious data quality.
[0109] In this embodiment, a reverse test case is generated by changing the remote control command response identifier and expected result in the above automatically generated intelligent linkage test case. The remote control command response identifier is changed to rejection, and the expected result is reversed. When executing this test case, the test system will reject the remote control command of the centralized control station system.
[0110] Further, according to an embodiment of the present invention, the forward test case and the reverse test case are executed in sequence to generate a test result, including:
[0111] When the trigger source is remote signaling, the test system sends the trigger source signal to the centralized control station system through the communication module according to the trigger source measurement point and trigger source preset state in the test case. After the centralized control station system receives the trigger source signal, the intelligent linkage function responds, triggers the linkage event, and sends the remote control command to the test system. The test system responds to the remote control command and automatically changes the state of the measurement point corresponding to the linkage event, such as turning on the light, opening the door, turning on the fan, etc.
[0112] When the trigger source is telemetry, the test system sends the telemetry value of the trigger source measurement point to the centralized control station system through the communication module according to the trigger source measurement point and the trigger source preset state in the test case. After the centralized control station system receives the telemetry value of the trigger source measurement point, the intelligent linkage function responds, triggers the linkage event, and sends a remote control command to the test system. The test system responds to the remote control command and automatically changes the state of the measurement point corresponding to the linkage event, such as turning on the light, opening the door, turning on the fan, etc.
[0113] When the trigger source is remote control preset, the test system sends the remote control preset simulation message to the centralized control station system through the communication module. After the centralized control station system receives the remote control preset simulation message, the intelligent linkage function responds, triggers the linkage event, and sends the remote control command to the test system. The test system responds to the remote control command and automatically changes the state of the measurement point corresponding to the linkage event, such as turning on the light, opening the door, turning on the fan, etc.
[0114] When executing the reverse test case with abnormal trigger source signal quality, the test system sends a trigger source signal with invalid or suspicious data quality to the centralized control station system through the communication module; after the centralized control station system receives the signal with invalid or suspicious data quality, the intelligent linkage function does not respond and does not trigger the linkage event;
[0115] When executing the reverse test case of the failure of remote control of the linkage event, the test system sends a trigger source signal to the centralized control station system through the communication module. After the centralized control station system receives the trigger source signal, the intelligent linkage function responds, triggers the linkage event, and sends a remote control command to the test system. The test system does not respond to the remote control command.
[0116] Further, according to an embodiment of the present invention, the test result is compared with the expected result as follows:
[0117] The waiting time in the forward test case and the reverse test case is generated according to the timeout time in the linkage strategy library file. After the forward test case and the reverse test case are executed, they wait for the corresponding waiting time and then automatically compare with the expected results.
[0118] Further, according to an embodiment of the present invention, the test results are compared with the expected results. When they meet the expected results, the test passes; when they do not meet the expected results, the test fails. Then a test report is generated based on the test results, expected results and comparison results.
[0119] According to the above scheme of the present invention, after the test case is automatically generated, the test case can be automatically executed and a test report can be generated to test and verify whether the intelligent linkage function of the centralized control station is normal, without the need to manually execute the test case. The present invention can automatically generate the intelligent linkage test case of the centralized control station and automatically execute the test case, not only considering the forward test case, but also considering the reverse test case, realizing the intelligent and efficient automatic testing of the intelligent linkage function of the centralized control station, greatly improving the test efficiency and test quality, and greatly reducing the labor cost.
[0120] According to the above solution of the present invention, both positive test cases and reverse test cases can be generated, which greatly improves the test coverage and product quality;
[0121] The present invention realizes intelligent and efficient automatic testing of the intelligent linkage function of the centralized control station through the organic combination of the centralized control station intelligent linkage strategy library, the scd file and the automatic testing system, and has important practical value and application prospects.
[0122] Furthermore, to achieve the above-mentioned purpose, the present invention also provides an electronic device, including a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the intelligent linkage automatic testing method of the centralized control station as described above is implemented.
[0123] Furthermore, to achieve the above-mentioned purpose, the present invention also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the intelligent linkage automatic testing method of the centralized control station as described above is implemented.
[0124] Those skilled in the art will appreciate that the modules and algorithm steps described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0125] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described devices and equipment can refer to the corresponding processes in the aforementioned method implementation methods, and will not be repeated here.
[0126] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0127] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the embodiments of the present invention.
[0128] In addition, each functional module in the embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
[0129] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the energy-saving signal sending / receiving method of each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical disks.
[0130] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the inventive concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other.
[0131] It should be understood that the size of the serial numbers of each step in the content of the invention and the implementation methods of the present invention does not absolutely mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the implementation methods of the present invention.
Claims
1. Intelligent linkage automatic testing method of centralized control station, It is characterized in that include: Load the intelligent linkage strategy library of the centralized control station, generate and export the linkage strategy library file; Load the scd file and the linkage strategy library file to automatically generate intelligent linkage test cases and expected results; Execute the forward test cases and reverse test cases in sequence and generate test results; Compare the test results with the expected results. If they meet the expected results, the test passes. If they do not meet the expected results, the test fails. Generate a test report with the test results, expected results and comparison results.
2. According to the intelligent linkage automatic testing method of the centralized control station in claim 1, It is characterized in that The linkage strategy library file includes a trigger source, a trigger condition, a linkage event and a timeout period.
3. According to the intelligent linkage automatic testing method of the centralized control station in claim 2, It is characterized in that When the linkage strategy library file is exported at the centralized control station, the linkage strategy library in the centralized control station database is loaded, the measurement point of the trigger source is read, and then the measurement point table in the database is matched. If the match fails, a configuration error is prompted. Modify the linkage strategy library of the centralized control station and reload it. If the match is successful, the trigger source in the linkage strategy library file is generated according to the trigger source of the linkage strategy library in the centralized control station database, including the plant station, signal name, trigger source type, and reference address.
4. According to the intelligent linkage automatic testing method of the centralized control station of claim 3, It is characterized in that When exporting the linkage strategy library file at the centralized control station, load the measurement points of the linkage event, and then match the measurement point table in the centralized control station database. If the match fails, it will prompt a configuration error. Modify the linkage strategy library of the centralized control station and reload it. If the match is successful, the linkage events in the linkage strategy library file are generated according to the linkage events in the linkage strategy library in the centralized control station database, including the plant station, signal name, reference address, and remote control expected value.
5. According to the intelligent linkage automatic testing method of the centralized control station according to claim 4, It is characterized in that Combining the trigger source type and the trigger condition of the linkage strategy library, generating the trigger condition in the linkage strategy library file; The trigger conditions in the linkage strategy library file include: When the trigger source type is main equipment remote signaling and auxiliary equipment remote signaling, the trigger conditions are open position and closed position; When the trigger source type is primary device telemetry and auxiliary device telemetry, the trigger conditions are exceeding the upper limit, exceeding the upper limit, exceeding the limit recovery, exceeding the lower limit, and exceeding the lower limit. At the same time, various limit values of the telemetry point are read and written into the linkage strategy library file; When the trigger source type is remote preset, the trigger conditions are preset open successfully and preset close successfully.
6. The intelligent linkage automatic testing method of the centralized control station according to claim 5, It is characterized in that The loading of the scd file and the linkage strategy library file to generate intelligent linkage test cases and expected results includes: Load scd file and linkage strategy library file; Match the reference address of the trigger source in the linkage strategy library file to the scd file. If the match fails, an error message is displayed and the process ends. If the match succeeds, the successfully matched measurement point is used as the trigger source in the test case. Generate the trigger source preset state in the intelligent linkage test case according to the trigger conditions in the linkage strategy library file; The linkage events in the scd file and the linkage strategy library file are matched through the reference address. If the match fails, an error prompt is given and the process ends. If the match succeeds, the expected results in the intelligent linkage test case are generated according to the linkage events in the linkage strategy library file, and the matched measurement points are added to the expected results in the intelligent linkage test case. At the same time, the value of the expected result in the intelligent linkage test case is generated according to the remote control expected value of the linkage event.
7. The intelligent linkage automatic testing method of the centralized control station according to claim 6, It is characterized in that The reverse test case is generated by changing the data quality and expected result of the trigger source signal in the intelligent linkage test case and / or by changing the remote control instruction response identifier and expected result in the intelligent linkage test case.
8. The intelligent linkage automatic testing method of the centralized control station according to claim 7, It is characterized in that The step of executing the forward test cases and the reverse test cases in sequence to generate the test results includes: When the trigger source is remote signaling, the trigger source signal is sent to the centralized control station according to the trigger source measurement point and trigger source preset state in the intelligent linkage test case. After the centralized control station receives the trigger source signal, the intelligent linkage function responds, triggers the linkage event, issues a remote control command, and automatically changes the state of the measurement point corresponding to the linkage event according to the remote control command; When the trigger source is telemetry, the telemetry value of the trigger source measurement point is sent to the centralized control station according to the trigger source measurement point and the preset state of the trigger source in the intelligent linkage test case. After the centralized control station receives the telemetry value of the trigger source measurement point, the intelligent linkage function responds, triggers the linkage event, issues a remote control command, and automatically changes the state of the measurement point corresponding to the linkage event according to the remote control command; When the trigger source is remote control preset, the remote control preset analog message is sent to the centralized control station. After the centralized control station receives the remote control preset analog message, the intelligent linkage function responds, triggers the linkage event, issues a remote control command, and automatically changes the state of the measurement point corresponding to the linkage event according to the remote control command; When executing the reverse test case of abnormal trigger source signal quality, a trigger source signal with invalid or suspicious data quality is sent to the centralized control station. After the centralized control station receives the trigger source signal with invalid or suspicious data quality, the intelligent linkage function does not respond and does not trigger the linkage event; When executing the reverse test case of linkage event remote control failure, a trigger source signal is sent to the centralized control station. After the centralized control station receives the trigger source signal, the intelligent linkage function responds, triggers the linkage event, and issues a remote control command, but does not respond to the remote control command.
9. The intelligent linkage automatic testing method of the centralized control station according to claim 8, It is characterized in that The comparison of the test results with the expected results is as follows: The waiting time in the forward test case and the reverse test case is generated according to the timeout time in the linkage strategy library file. After the forward test case and the reverse test case are executed, they wait for the corresponding waiting time and then automatically compare with the expected results.
10. Intelligent linkage automatic test system of centralized control station, It is characterized in that include: The linkage strategy library file acquisition module loads the intelligent linkage strategy library of the centralized control station, generates and exports the linkage strategy library file; An intelligent linkage test case and expected result generation module loads the scd file and the linkage strategy library file to automatically generate intelligent linkage test cases and expected results; The test case execution module executes the forward test cases and the reverse test cases in sequence and generates the test results; The test result comparison module compares the test result with the expected result. If the test result meets the expected result, the test passes. If the test result does not meet the expected result, the test fails. The result output module generates a test report based on the test results, expected results and comparison results.
Citation Information
Patent Citations
Intelligent substation monitoring system with linkage function
CN106230965A
Intelligent substation consistency test method and system
CN112865299A
Intelligent linkage method and system for transformer substation and storage medium
CN115208055A
Power distribution automation terminal test scheme generation method
CN116955035A
Smart power grid one-key sequential control checking system and method
CN117277552A
Cited By
Fire-fighting linkage logic verification method and system based on analog simulation
CN120779775A
Interlocking automatic testing method of proton treatment system and related equipment
CN121648485A
