CN116383061A - Method and related device for testing basic platform interface of substation control system - Google Patents
Method and related device for testing basic platform interface of substation control system Download PDFInfo
- Publication number
- CN116383061A CN116383061A CN202310354804.0A CN202310354804A CN116383061A CN 116383061 A CN116383061 A CN 116383061A CN 202310354804 A CN202310354804 A CN 202310354804A CN 116383061 A CN116383061 A CN 116383061A
- Authority
- CN
- China
- Prior art keywords
- test
- message
- structured
- interface
- feedback
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 477
- 238000000034 method Methods 0.000 title claims abstract description 40
- 238000013524 data verification Methods 0.000 claims abstract description 31
- 230000004044 response Effects 0.000 claims abstract description 29
- 238000012795 verification Methods 0.000 claims abstract description 22
- 238000012545 processing Methods 0.000 claims description 33
- 238000004590 computer program Methods 0.000 claims description 16
- 238000003860 storage Methods 0.000 claims description 16
- 238000002955 isolation Methods 0.000 claims description 8
- 230000000737 periodic effect Effects 0.000 abstract description 4
- 230000006870 function Effects 0.000 description 21
- 238000010586 diagram Methods 0.000 description 12
- 230000008569 process Effects 0.000 description 10
- 230000003993 interaction Effects 0.000 description 5
- 238000012544 monitoring process Methods 0.000 description 5
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000004088 simulation Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000013500 data storage Methods 0.000 description 2
- 230000007812 deficiency Effects 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000009434 installation Methods 0.000 description 1
- 230000010354 integration Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 238000010998 test method Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3692—Test management for test results analysis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
- G06F16/2228—Indexing structures
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/248—Presentation of query results
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y04—INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
- Y04S—SYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
- Y04S10/00—Systems supporting electrical power generation, transmission or distribution
- Y04S10/50—Systems or methods supporting the power network operation or management, involving a certain degree of interaction with the load-side end user applications
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Software Systems (AREA)
- Computational Linguistics (AREA)
- Testing And Monitoring For Control Systems (AREA)
Abstract
The invention belongs to the field of electric power automation, and discloses a method and a related device for testing a basic platform interface of a substation control system, wherein the method comprises the steps of obtaining test request information and generating structured test data according to the test request information; generating a test message according to the structured test data and sending the test message to the interface to be tested, receiving a feedback message of the interface to be tested in response to the test message, analyzing the feedback message to obtain structured feedback data, and checking the feedback message to obtain a feedback message checking result; verifying the structured feedback data according to a preset verification requirement to obtain a structured feedback data verification result; and generating a test result of the interface to be tested according to the test message, the feedback message test result, the structured feedback data and the structured feedback data verification result. The automatic test of the interface to be tested is realized, the interface test difficulty is greatly reduced, the interface test efficiency is effectively improved, and the problem of insufficient centralized testers or periodic pressure is effectively solved.
Description
Technical Field
The invention belongs to the field of electric power automation, and relates to a method and a related device for testing a basic platform interface of a substation control system of a transformer substation.
Background
The transformer substation is a hub for power transmission, and a secondary system of the transformer substation is particularly important for guaranteeing operation safety of the transformer substation. The secondary system of the transformer substation consists of equipment and systems such as protection equipment, automation equipment, station control layer equipment and software, metering and electric energy quality equipment, communication and safety equipment, auxiliary equipment and the like, and is responsible for the tasks of protection, control, measurement and monitoring, so that the real-time acquisition and uploading of data information such as equipment operation data, alarm information and monitoring data are realized, the operation and data support are provided for a remote master station, and the safety and stability of the operation of a power system are ensured.
However, as the functions of the secondary system of the traditional transformer substation have the problems of insufficient remote monitoring information, non-uniform data acquisition mode, cross repetition of equipment functions, dead zones in safety monitoring, risks in autonomous control and the like, the secondary optimization work of a new generation of transformer substation with controllable automation is recently developed, wherein one of the important changes of the transformer substation monitoring system is that the system architecture is changed into an open basic platform and an intelligent application architecture, the basic platform of the station control system provides basic functions and public services of a platform layer, the application layer provides basic applications, and the intelligent applications can be operated in a safety isolation environment to perform service interaction with the basic platform. As the basic function of the station control system, the integrity, interaction consistency, fault tolerance and reliability of the service provided by the basic platform and the intelligent application interaction interface are particularly important, so that the interface provided by the basic platform of the station control system is required to be tested and the interface and other contents are verified, thereby improving the quality and efficiency of the product of the boosting station control system and providing stable and reliable guarantee for the operation of a power grid.
At present, for testing a basic platform interface of a substation control system, a tester generally performs manual testing, and performs complex time-consuming interoperation based on different basic platforms and intelligent applications, so that consistency and stability of the basic platform interface of the substation control system are verified, and testing difficulty is high and efficiency is low.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provides a testing method and a related device for a basic platform interface of a substation control system of a transformer substation.
In order to achieve the purpose, the invention is realized by adopting the following technical scheme:
the invention provides a method for testing a basic platform interface of a substation control system, which comprises the following steps: acquiring test request information, and generating structured test data according to the test request information; generating a test message according to the structured test data and sending the test message to the interface to be tested, receiving a feedback message of the interface to be tested in response to the test message, analyzing the feedback message to obtain structured feedback data, and checking the feedback message to obtain a feedback message checking result; verifying the structured feedback data according to a preset verification requirement to obtain a structured feedback data verification result; and generating a test result of the interface to be tested according to the test message, the feedback message test result, the structured feedback data and the structured feedback data verification result.
Optionally, the method further comprises a concurrent test step, and the concurrent test step comprises: acquiring a concurrent test request, and generating a test sequence in response to the concurrent test request; the test sequence comprises a plurality of test items and time sequence requirements of the test items; traversing each test item based on the time sequence requirement of each test item, and sequentially performing the following steps: generating structured test data of the current test items, generating item test messages of all the current test items according to the structured test data of the current test items, and sending the item test messages to the interface to be tested; receiving a project feedback message of an interface to be tested in response to the project test message, analyzing the project feedback message to obtain structured project feedback data, and checking the project feedback message to obtain a project feedback message checking result; verifying the structured item feedback data according to a preset verification requirement to obtain a structured item feedback data verification result; and generating a test result of the current test item of the interface to be tested according to the item test message, the item feedback message checking result, the structured item feedback data and the structured item feedback data checking result.
Optionally, when the test result of the current test item includes an error test result item, generating an error test result item prompt message, and checking whether the error test result item affects the test of each test item in the test sequence whose time sequence is required to be after the current test item, and when the error test result item affects the test of each test item in the test sequence whose time sequence is required to be after the current test item, ending the concurrent test step.
Optionally, the method further comprises a negative test step, wherein the negative test step comprises the following steps: acquiring a negative test request, and converting the structured test data into structured negative test data in response to the negative test request; generating a negative test message according to the structured negative test data and sending the negative test message to the interface to be tested, receiving a negative feedback message of the interface to be tested responding to the negative test message, analyzing the negative feedback message to obtain structured negative feedback data, and checking the negative feedback message to obtain a negative feedback message checking result; verifying the structured negative feedback data according to a preset verification requirement to obtain a structured negative feedback data verification result; and generating a negative test result of the interface to be tested according to the negative test message, the negative feedback message test result, the structured negative feedback data and the structured negative feedback data verification result.
Optionally, the converting the structured test data into the structured negative test data in response to the negative test request includes: responding to the negative test request, and acquiring the test item category of the current test request information; and according to the category of the test item of the current test request information, converting the structured test data into structured negative test data based on a preset negative field setting table.
Optionally, the method further comprises: visualizing a test result of the interface to be tested; storing test results of the interface to be tested, acquiring a test result query request, and feeding back the test results in response to the test result query request.
The invention provides a basic platform interface test system of a substation control system, which comprises a man-machine interface module, a test item processing module, a message processing judging module and a message receiving and transmitting module; the human-computer interface module is used for acquiring test request information; the test item processing module is used for generating structured test data according to the test request information; the message processing judging module is used for generating a test message according to the structured test data and sending the test message to the interface to be tested through the message receiving and sending module; receiving a feedback message of the interface to be tested in response to the test message through the message receiving and transmitting module, analyzing the feedback message to obtain structured feedback data, and checking the feedback message to obtain a feedback message checking result; the test item processing module is also used for verifying the structured feedback data according to a preset verification requirement to obtain a structured feedback data verification result; and generating a test result of the interface to be tested according to the test message, the feedback message test result, the structured feedback data and the structured feedback data verification result.
Optionally, the message transceiver module includes a first message transceiver unit and a second message transceiver unit that are connected to each other; the second message receiving and transmitting unit is deployed in a safety isolation environment of a basic platform to which the interface to be tested belongs.
In a third aspect of the present invention, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the processor implements the steps of the substation control system basic platform interface testing method described above when executing the computer program.
In a fourth aspect of the present invention, there is provided a computer readable storage medium storing a computer program which, when executed by a processor, implements the steps of the substation control system base platform interface testing method described above.
Compared with the prior art, the invention has the following beneficial effects:
the invention relates to a method for testing a basic platform interface of a substation control system, which comprises the steps of generating structured test data based on test request information, generating test messages according to the structured test data, sending the test messages to an interface to be tested, receiving feedback messages of the interface to be tested in response to the test messages, analyzing the feedback messages to obtain structured feedback data, and checking the feedback messages to obtain feedback message checking results; then verifying the structured feedback data according to a preset verification requirement to obtain a structured feedback data verification result; and finally, generating a test result of the interface to be tested through the test message, the feedback message test result, the structured feedback data and the structured feedback data verification result, realizing the automatic test of the interface to be tested, replacing complex and time-consuming interoperation work between a basic platform and intelligent application, fundamentally ensuring the consistency and stability of the interface, only needing to manually provide test request information, greatly reducing the difficulty of interface test, effectively improving the efficiency of interface test, and effectively relieving the problem of deficiency or periodic pressure of centralized testers.
Drawings
Fig. 1 is a flowchart of a method for testing a basic platform interface of a substation control system according to an embodiment of the present invention.
Fig. 2 is a block diagram of a basic platform interface test system of a substation control system according to an embodiment of the present invention.
Fig. 3 is a detailed structural block diagram of a basic platform interface test system of a substation control system according to an embodiment of the present invention.
FIG. 4 is a schematic diagram of a testing main interface according to an embodiment of the present invention.
Fig. 5 is a schematic diagram of a JSON message display interface according to an embodiment of the present invention.
FIG. 6 is a schematic diagram of a test recording interface according to an embodiment of the present invention.
FIG. 7 is a diagram of a negative test interface according to an embodiment of the invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
First, related terms involved in the embodiments of the present invention are described:
and (3) a basic platform: and the base of the station control system is responsible for providing general technical support for development, operation, communication and resource management of the application and guaranteeing the integration and efficient and reliable operation of the whole system.
Intelligent application: the software for specialized analysis and intelligent processing of one or more services of the power system can be realized by using the basic management, public service and data storage functions provided by the basic platform.
Safety isolation environment: an application running environment that restricts program behavior in accordance with security policies. The system is an independent operation environment created in an operation system, the operation environment is used for carrying out safety isolation on application programs, the application programs running in the operation environment cannot permanently influence a hard disk, and meanwhile, the application programs can be limited to use system resources such as a CPU, a memory, a disk and a network, and some high-risk activities of the application programs such as installation driving, bottom disk operation and the like are forbidden.
JSON (JavaScript Object Notation): is a lightweight data exchange format. Is easy for people to read and write, and can exchange data among multiple languages. And is also easy to machine parse and generate.
The invention is described in further detail below with reference to the attached drawing figures:
referring to fig. 1, in an embodiment of the present invention, a method for testing a basic platform interface of a substation control system of a substation is provided, which is used for implementing a test of the basic platform interface of the substation control system, and includes the following steps:
s1: and acquiring test request information, and generating structured test data according to the test request information.
S2: generating a test message according to the structured test data, sending the test message to the interface to be tested, receiving a feedback message of the interface to be tested in response to the test message, analyzing the feedback message to obtain structured feedback data, and checking the feedback message to obtain a feedback message checking result.
S3: verifying the structured feedback data according to a preset verification requirement to obtain a structured feedback data verification result; and generating a test result of the interface to be tested according to the test message, the feedback message test result, the structured feedback data and the structured feedback data verification result.
In summary, the method for testing the basic platform interface of the substation control system of the invention generates structured test data based on the test request information, then generates test messages according to the structured test data and sends the test messages to the interface to be tested, receives feedback messages of the interface to be tested in response to the test messages, analyzes the feedback messages to obtain structured feedback data, and checks the feedback messages to obtain feedback message checking results; then verifying the structured feedback data according to a preset verification requirement to obtain a structured feedback data verification result; and finally, generating a test result of the interface to be tested through the test message, the feedback message test result, the structured feedback data and the structured feedback data verification result, realizing the automatic test of the interface to be tested, replacing complex and time-consuming interoperation work between a basic platform and intelligent application, fundamentally ensuring the consistency and stability of the interface, only needing to manually provide test request information, greatly reducing the difficulty of interface test, effectively improving the efficiency of interface test, and effectively relieving the problem of deficiency or periodic pressure of centralized testers.
In one possible implementation, the test request information generally includes test parameter data, interface function type, interface parameters, and the like. When the structured test data is generated according to the test request information, judging the function type of the test parameter data in the test request information; judging interface function types of the interface to be tested, such as authority verification, data structure request and the like; based on the function type of the interface to be tested, verifying the correctness and the integrity of the test parameter data; and after verification, combining interface parameters of the interface to be tested to form structural test data.
When the test message is generated according to the structured test data, the test message is automatically generated by calling the JSON generator based on the data type. When analyzing the feedback message to obtain the structured feedback data and checking the feedback message to obtain the feedback message checking result, firstly extracting the JSON character string of the feedback message, then calling a JSON analyzer to analyze the JSON character string, checking whether the correctness of the feedback message meets the requirements on the semantic, grammar and parameter content, and generating the feedback message checking result and the structured feedback data.
When the structured feedback data is verified according to a preset verification requirement to obtain a structured feedback data verification result, verifying the correctness and the integrity of the structured feedback data, and verifying whether the function type of the structured feedback data is consistent with the function type of the test parameter data.
In one possible implementation manner, the method for testing the basic platform interface of the substation control system of the transformer substation further comprises a concurrency testing step, and the concurrency testing step comprises: acquiring a concurrent test request, and generating a test sequence in response to the concurrent test request; the test sequence comprises a plurality of test items and time sequence requirements of the test items; traversing each test item based on the time sequence requirement of each test item, and sequentially performing the following steps: generating structured test data of the current test items, generating item test messages of all the current test items according to the structured test data of the current test items, and sending the item test messages to the interface to be tested; receiving a project feedback message of an interface to be tested in response to the project test message, analyzing the project feedback message to obtain structured project feedback data, and checking the project feedback message to obtain a project feedback message checking result; verifying the structured item feedback data according to a preset verification requirement to obtain a structured item feedback data verification result; and generating a test result of the current test item of the interface to be tested according to the item test message, the item feedback message checking result, the structured item feedback data and the structured item feedback data checking result.
Specifically, the concurrent test step can realize the concurrent test of a plurality of items, or automatically perform continuous test according to the sequence. The flow is designed as follows: starting a concurrent test rule script language editing program, and editing through a script editor to form a test sequence; importing and analyzing a test sequence to form an instance of a project to be tested; entering a concurrent test mode, automatically sending item test messages of all test items according to the sequence requirement of the item instances to be tested, receiving item feedback messages of interfaces to be tested responding to the item test messages, analyzing and checking the item feedback messages, and further generating test results; and after the testing of all the test items is completed, the concurrent testing is exited.
In one possible implementation manner, during the running process of the concurrent test step, when the test result of the current test item contains an error test result item, generating error test result item prompt information, checking whether the error test result item affects the test of each test item in the test sequence, which is required to be after the current test item, and ending the concurrent test step when checking that the error test result item affects the test of each test item in the test sequence, which is required to be after the current test item.
Specifically, if an error is detected in the running process of the concurrent test step, an error prompt should be given, if the error detected currently does not affect the subsequent test, the concurrent test process should be recorded and not interrupted, and if the error detected currently does not affect the subsequent test, the concurrent test should be recorded and suspended.
In one possible implementation manner, the substation control system base platform interface testing method further includes a negative testing step, where the negative testing step includes: acquiring a negative test request, and converting the structured test data into structured negative test data in response to the negative test request; generating a negative test message according to the structured negative test data and sending the negative test message to the interface to be tested, receiving a negative feedback message of the interface to be tested responding to the negative test message, analyzing the negative feedback message to obtain structured negative feedback data, and checking the negative feedback message to obtain a negative feedback message checking result; verifying the structured negative feedback data according to a preset verification requirement to obtain a structured negative feedback data verification result; and generating a negative test result of the interface to be tested according to the negative test message, the negative feedback message test result, the structured negative feedback data and the structured negative feedback data verification result.
Specifically, the negative test step is designed to verify the message fault tolerance and abnormal condition processing logic correctness of the interface to be tested by sending error messages to the interface to be tested.
Optionally, the converting the structured test data into the structured negative test data in response to the negative test request includes: responding to the negative test request, and acquiring the test item category of the current test request information; and according to the category of the test item of the current test request information, converting the structured test data into structured negative test data based on a preset negative field setting table.
Wherein, the negative field setting table is specifically a negative field modification setting performed in advance for different item categories, for example, sending an APP registration request to the interface to be tested, inputting a registration code exceeding 64 bits (adding any character after the correct 64 registration code); sending a request for inquiring the application state to an interface to be tested, and using a non-standard operation type value query_error; sending a request data information structure request to an interface to be tested, and using a non-standard operation type value query_error; sending a request data information type tree request to an interface to be tested, and using a non-standard operation type value query_error; the method comprises the steps of sending a real-time data storage request to an interface to be tested, and using a non-standard data type state_error; sending a request history data request to an interface to be tested, and using a non-standard operation type value query_error; sending a request real-time alarm subscription request to an interface to be tested, selecting an object type and not selecting an object index number; sending an APP (application) sending alarm request to an interface to be tested, and using a non-standard operation type value save_error; sending a request history alarm request to an interface to be tested, checking an object index number list, and inputting error; sending a file data request to an interface to be tested, selecting an object type and not selecting an object index number; sending or storing a file request to an interface to be tested, selecting an object type and not selecting an object index number; and sending a request device information request to the interface to be tested, and using a non-standard operation type value query_error. In addition, the negative field setting table can be edited and modified before the negative test is performed, and the edited negative field can be memorized, and the negative test is automatically performed next time.
In one possible implementation manner, the substation control system base platform interface testing method further includes: visualizing a test result of the interface to be tested; storing test results of the interface to be tested, acquiring a test result query request, and feeding back the test results in response to the test result query request.
Specifically, the stored test results can be classified and stored in the database by analyzing the record types including original messages and information, test item problems and conclusions, system alarms and the like. The test results fed back in response to the test result query request can be visually displayed and exported.
In one possible implementation manner, the substation control system basic platform interface testing method further comprises a registration login step before the test request information is acquired.
Specifically, the step of registering and logging in includes obtaining registration information and logging in information to a basic platform to which the interface to be tested belongs, and logging out the whole test process when registering fails or overtime and logging in fails.
The method comprises the steps of registering by using an interface function register App, adding a common simulation APP into an item list, selecting one simulation APP from the APP list, registering an IApplication callback interface object pApp realized by the application to a basic platform, and after registering, receiving result data returned by the basic platform, wherein user permission verification is needed during registering. And the application registered callback interface object pApp is logged out from the basic platform, and the result data cannot be received after logging out. The registration information, the login information and the logout information generally comprise 64-bit encrypted character string registration codes, APP names, descriptions, version numbers and the like, and corresponding operations can be completed by sending the registration information, the login information and the logout information to corresponding basic platforms.
In summary, the method for testing the basic platform interface of the substation control system of the transformer substation has at least the following advantages: the method can basically replace complex and time-consuming interoperation work between a plurality of basic platforms and intelligent application manufacturers, fundamentally ensures the consistency and stability of interfaces, and protects the navigation for field system application. And the functions of automatically requesting, automatically responding, customizing test items to automatically execute sequence test tasks and automatically generating test records are realized, the test efficiency is greatly improved, and the problem of insufficient or periodic pressure of centralized test personnel is effectively solved.
The following are device embodiments of the present invention that may be used to perform method embodiments of the present invention. For details not disclosed in the apparatus embodiments, please refer to the method embodiments of the present invention.
Referring to fig. 2, in still another embodiment of the present invention, a basic platform interface test system of a substation control system is provided, which can be used to implement the above-mentioned basic platform interface test method of a substation control system, and specifically, the basic platform interface test system of a substation control system includes a man-machine interface module, a test item processing module, a message processing determining module and a message transceiver module.
The human-computer interface module is used for acquiring test request information; the test item processing module is used for generating structured test data according to the test request information; the message processing judging module is used for generating a test message according to the structured test data and sending the test message to the interface to be tested through the message receiving and sending module; receiving a feedback message of the interface to be tested in response to the test message through the message receiving and transmitting module, analyzing the feedback message to obtain structured feedback data, and checking the feedback message to obtain a feedback message checking result; the test item processing module is also used for verifying the structured feedback data according to a preset verification requirement to obtain a structured feedback data verification result; and generating a test result of the interface to be tested according to the test message, the feedback message test result, the structured feedback data and the structured feedback data verification result.
In one possible implementation manner, the message transceiver module includes a first message transceiver unit and a second message transceiver unit which are connected with each other; the second message receiving and transmitting unit is deployed in a safety isolation environment of a basic platform to which the interface to be tested belongs.
Specifically, the message transceiver module and the base platform to be tested perform message transceiver service, and because the base platform to be tested and the test system are not deployed in the same machine, the message transceiver module can be designed into two parts, one part is a first message transceiver unit at the user side of the man-machine interface side, and the other part is a second message transceiver unit which is a proxy module deployed in the security isolation environment of the base platform to be tested. The basic platform carries out message receiving and transmitting on interface service deployed in a safety isolation environment and a second message receiving and transmitting unit, and the second message receiving and transmitting unit forwards the received and transmitted message to a first message receiving and transmitting unit at a user side so as to carry out subsequent message processing.
Referring to fig. 3, in one possible implementation manner, the substation control system base platform interface test system further includes a concurrency processing module.
The concurrent processing module is used for acquiring concurrent test requests and generating test sequences in response to the concurrent test requests; the test sequence comprises a plurality of test items and time sequence requirements of the test items.
The test item processing module is also used for traversing each test item based on the time sequence requirement of each test item and sequentially generating the structured test data of the current test item.
The message processing judging module is also used for generating project test messages of all current test projects according to the structured test data of the current test projects and sending the project test messages to the interface to be tested through the message receiving and sending module; receiving a project feedback message of an interface to be tested responding to the project test message through a message receiving and transmitting module, analyzing the project feedback message to obtain structured project feedback data, and checking the project feedback message to obtain a project feedback message checking result;
the test item processing module is also used for verifying the structured item feedback data according to a preset verification requirement to obtain a structured item feedback data verification result; and generating a test result of the current test item of the interface to be tested according to the item test message, the item feedback message checking result, the structured item feedback data and the structured item feedback data checking result.
In one possible implementation, when the test result of the current test item includes an error test result item, generating error test result item prompt information, checking whether the error test result item affects the test of each test item in the test sequence whose time sequence is required to be after the current test item, and ending the concurrent test when the error test result item affects the test of each test item in the test sequence whose time sequence is required to be after the current test item.
In one possible implementation manner, the substation control system basic platform interface test system further comprises a negative processing module, wherein the negative processing module is used for acquiring a negative test request and converting the structured test data into the structured negative test data in response to the negative test request.
The message processing judging module is used for generating a negative test message according to the structured negative test data and sending the negative test message to the interface to be tested, receiving a negative feedback message of the interface to be tested responding to the negative test message through the message receiving and sending module, analyzing the negative feedback message to obtain the structured negative feedback data, and checking the negative feedback message to obtain a negative feedback message checking result.
The test item processing module is also used for verifying the structured negative feedback data according to a preset verification requirement to obtain a structured negative feedback data verification result; and generating a negative test result of the interface to be tested according to the negative test message, the negative feedback message test result, the structured negative feedback data and the structured negative feedback data verification result.
In one possible implementation, the converting the structured test data into structured negative test data in response to the negative test request includes: responding to the negative test request, and acquiring the test item category of the current test request information; and according to the category of the test item of the current test request information, converting the structured test data into structured negative test data based on a preset negative field setting table.
In one possible implementation manner, the substation control system basic platform interface test system further comprises a test record module, wherein the test record module is used for storing test results of the interface to be tested, acquiring a test result query request and feeding back the test results in response to the test result query request. The man-machine interface module is also used for visualizing the test result of the interface to be tested.
In one possible implementation, referring to fig. 4 to 7, the human-machine interface module sets a test main interface, a JSON message presentation interface, a test record interface, and a negative test interface.
The test main interface comprises four large areas, namely a test item list, a current test item function operation area, a simulation APP list and an interactive information display table, and a plurality of function areas, including test record, negative test, concurrent test, registration and the like. The upper side of the interface of the JSON message display interface is a JSON message display area used for displaying specific JSON message content, and the lower side is a JSON message verification result. The test recording interface can be used for inquiring the interaction data recorded in the test process, namely the test result, by recording the interaction data in the test process in the database. The negative test interface can select test items and edit error fields corresponding to the test items, namely, a preset negative field setting table is modified, after editing, a negative test is started by clicking an on/off negative mode button, and a message sent to a tested basic platform by a tool after starting is an edited error message, namely, a negative test message. In addition, clicking the 'save modification item' button in the interface can memorize the negative field setting of the current edit, and the next time the interface is opened, the interface can be automatically filled.
In a possible implementation manner, the substation control system basic platform interface test system further comprises a registration login module, wherein the registration login module is used for obtaining registration information and login information to a basic platform to which the interface to be tested belongs, and when registration fails or overtime and login fails, the whole test process is exited.
All relevant contents of each step related to the foregoing embodiment of the testing method for the basic platform interface of the substation control system may be cited to the functional description of the functional module corresponding to the basic platform interface testing system of the substation control system in the embodiment of the present invention, which is not described herein.
The division of the modules in the embodiments of the present invention is schematically only one logic function division, and there may be another division manner in actual implementation, and in addition, each functional module in each embodiment of the present invention may be integrated in one processor, or may exist separately and physically, or two or more modules may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules.
In yet another embodiment of the present invention, a computer device is provided that includes a processor and a memory for storing a computer program including program instructions, the processor for executing the program instructions stored by the computer storage medium. The processor may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processor, digital signal processor (Digital Signal Processor, DSP), application specific integrated circuit (Application Specific Integrated Circuit, ASIC), off-the-shelf Programmable gate array (FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc., which are the computational core and control core of the terminal adapted to implement one or more instructions, in particular to load and execute one or more instructions in a computer storage medium to implement the corresponding method flow or corresponding functions; the processor provided by the embodiment of the invention can be used for operating the basic platform interface testing method of the substation control system of the transformer substation.
In yet another embodiment of the present invention, a storage medium, specifically a computer readable storage medium (Memory), is a Memory device in a computer device, for storing a program and data. It is understood that the computer readable storage medium herein may include both built-in storage media in a computer device and extended storage media supported by the computer device. The computer-readable storage medium provides a storage space storing an operating system of the terminal. Also stored in the memory space are one or more instructions, which may be one or more computer programs (including program code), adapted to be loaded and executed by the processor. The computer readable storage medium herein may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as at least one magnetic disk memory. One or more instructions stored in a computer-readable storage medium may be loaded and executed by a processor to implement the corresponding steps of the method for testing a base platform interface of a substation control system in the above-described embodiment.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Finally, it should be noted that: the above embodiments are only for illustrating the technical aspects of the present invention and not for limiting the same, and although the present invention has been described in detail with reference to the above embodiments, it should be understood by those of ordinary skill in the art that: modifications and equivalents may be made to the specific embodiments of the invention without departing from the spirit and scope of the invention, which is intended to be covered by the claims.
Claims (10)
1. The method for testing the basic platform interface of the substation control system of the transformer substation is characterized by comprising the following steps of:
acquiring test request information, and generating structured test data according to the test request information;
generating a test message according to the structured test data and sending the test message to the interface to be tested, receiving a feedback message of the interface to be tested in response to the test message, analyzing the feedback message to obtain structured feedback data, and checking the feedback message to obtain a feedback message checking result;
verifying the structured feedback data according to a preset verification requirement to obtain a structured feedback data verification result; and generating a test result of the interface to be tested according to the test message, the feedback message test result, the structured feedback data and the structured feedback data verification result.
2. The method for testing the basic platform interface of the substation control system according to claim 1, further comprising a concurrency testing step, wherein the concurrency testing step comprises:
acquiring a concurrent test request, and generating a test sequence in response to the concurrent test request; the test sequence comprises a plurality of test items and time sequence requirements of the test items;
traversing each test item based on the time sequence requirement of each test item, and sequentially performing the following steps:
generating structured test data of the current test items, generating item test messages of all the current test items according to the structured test data of the current test items, and sending the item test messages to the interface to be tested;
receiving a project feedback message of an interface to be tested in response to the project test message, analyzing the project feedback message to obtain structured project feedback data, and checking the project feedback message to obtain a project feedback message checking result;
verifying the structured item feedback data according to a preset verification requirement to obtain a structured item feedback data verification result; and generating a test result of the current test item of the interface to be tested according to the item test message, the item feedback message checking result, the structured item feedback data and the structured item feedback data checking result.
3. The method according to claim 2, wherein when the test result of the current test item includes an error test result item, generating error test result item prompt information, checking whether the error test result item affects the test of each test item in the test sequence whose time sequence is required to be after the current test item, and ending the concurrent test step when checking that the error test result item affects the test of each test item in the test sequence whose time sequence is required to be after the current test item.
4. The method for testing the basic platform interface of the substation control system according to claim 1, further comprising a negative testing step, wherein the negative testing step comprises:
acquiring a negative test request, and converting the structured test data into structured negative test data in response to the negative test request;
generating a negative test message according to the structured negative test data and sending the negative test message to the interface to be tested, receiving a negative feedback message of the interface to be tested responding to the negative test message, analyzing the negative feedback message to obtain structured negative feedback data, and checking the negative feedback message to obtain a negative feedback message checking result;
verifying the structured negative feedback data according to a preset verification requirement to obtain a structured negative feedback data verification result; and generating a negative test result of the interface to be tested according to the negative test message, the negative feedback message test result, the structured negative feedback data and the structured negative feedback data verification result.
5. The substation control system base platform interface testing method according to claim 4, wherein said converting structured test data into structured negative test data in response to a negative test request comprises:
responding to the negative test request, and acquiring the test item category of the current test request information;
and according to the category of the test item of the current test request information, converting the structured test data into structured negative test data based on a preset negative field setting table.
6. The substation control system base platform interface testing method according to claim 1, further comprising:
visualizing a test result of the interface to be tested;
storing test results of the interface to be tested, acquiring a test result query request, and feeding back the test results in response to the test result query request.
7. The basic platform interface test system of the substation control system is characterized by comprising a human-computer interface module, a test item processing module, a message processing judging module and a message receiving and transmitting module;
the human-computer interface module is used for acquiring test request information;
the test item processing module is used for generating structured test data according to the test request information;
the message processing judging module is used for generating a test message according to the structured test data and sending the test message to the interface to be tested through the message receiving and sending module; receiving a feedback message of the interface to be tested in response to the test message through the message receiving and transmitting module, analyzing the feedback message to obtain structured feedback data, and checking the feedback message to obtain a feedback message checking result;
the test item processing module is also used for verifying the structured feedback data according to a preset verification requirement to obtain a structured feedback data verification result; and generating a test result of the interface to be tested according to the test message, the feedback message test result, the structured feedback data and the structured feedback data verification result.
8. The system for testing the basic platform interface of the substation control system according to claim 7, wherein the message transceiver module comprises a first message transceiver unit and a second message transceiver unit which are connected with each other; the second message receiving and transmitting unit is deployed in a safety isolation environment of a basic platform to which the interface to be tested belongs.
9. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor, when executing the computer program, carries out the steps of the substation control system basic platform interface testing method according to any one of claims 1 to 6.
10. A computer readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the steps of the substation control system base platform interface testing method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310354804.0A CN116383061A (en) | 2023-04-04 | 2023-04-04 | Method and related device for testing basic platform interface of substation control system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310354804.0A CN116383061A (en) | 2023-04-04 | 2023-04-04 | Method and related device for testing basic platform interface of substation control system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116383061A true CN116383061A (en) | 2023-07-04 |
Family
ID=86978338
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310354804.0A Pending CN116383061A (en) | 2023-04-04 | 2023-04-04 | Method and related device for testing basic platform interface of substation control system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116383061A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117148018A (en) * | 2023-10-27 | 2023-12-01 | 南方电网数字电网研究院有限公司 | Function test system and method for power distribution module |
-
2023
- 2023-04-04 CN CN202310354804.0A patent/CN116383061A/en active Pending
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117148018A (en) * | 2023-10-27 | 2023-12-01 | 南方电网数字电网研究院有限公司 | Function test system and method for power distribution module |
CN117148018B (en) * | 2023-10-27 | 2024-03-26 | 南方电网数字电网研究院有限公司 | Function test system and method for power distribution module |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109150636B (en) | Intelligent substation auxiliary point-to-point test method and system for full-link information flow | |
CN109379251B (en) | Automatic testing method and system for GOOSE and SV communication of relay protection device process layer | |
CN103529377B (en) | The Auto-Test System of intelligent transformer substation digital protection device and method | |
CN108366067B (en) | System and method for testing consistency of universal service protocol of power system | |
CN103150249B (en) | A kind of method and system of automatic test | |
CN110764753A (en) | Business logic code generation method, device, equipment and storage medium | |
CN108628748B (en) | Automatic test management method and automatic test management system | |
CN106597947A (en) | Substation equipment test method and system, server and tester | |
CN111240973B (en) | Equipment testing method and system based on simulation and readable storage medium | |
CN109684847A (en) | Self-repairing method, device, equipment and the storage medium of script loophole | |
CN106961362A (en) | Automated testing method and mobile cloud test system | |
CN104793076A (en) | Intelligent automatic test system and method | |
US20180307594A1 (en) | System, method and storage device for cim/e model standard compliance test | |
CN104123227A (en) | Method for automatically generating testing cases | |
CN109902017A (en) | A kind of method and terminal based on RobotFramework test Dubbo interface | |
CN111078482A (en) | Communication navigation equipment test system, method, equipment and readable storage medium | |
CN105760296A (en) | Automation testing control method, device and terminal | |
CN114003451B (en) | Interface testing method, device, system and medium | |
CN112380255A (en) | Service processing method, device, equipment and storage medium | |
CN111130922A (en) | Airborne information safety automatic test method and test platform | |
CN113419920B (en) | Real-time monitoring method for joint debugging test process of simulation test system of Internet of things management platform | |
CN112306861A (en) | Unittest and Jenkins tool-based interface automatic testing system and method | |
CN116383061A (en) | Method and related device for testing basic platform interface of substation control system | |
CN109471791A (en) | A kind of demand response communication consistency testing system and method | |
CN115396352A (en) | CMS server-side protocol testing method, system, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |