CN110198222B - Plug-and-play test method and test master station for power distribution automation terminal - Google Patents
Plug-and-play test method and test master station for power distribution automation terminal Download PDFInfo
- Publication number
- CN110198222B CN110198222B CN201810162012.2A CN201810162012A CN110198222B CN 110198222 B CN110198222 B CN 110198222B CN 201810162012 A CN201810162012 A CN 201810162012A CN 110198222 B CN110198222 B CN 110198222B
- Authority
- CN
- China
- Prior art keywords
- test
- terminal
- registration
- tested
- tested terminal
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0806—Configuration setting for initial configuration or provisioning, e.g. plug-and-play
- H04L41/0809—Plug-and-play configuration
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/14—Network analysis or design
- H04L41/145—Network analysis or design involving simulating, designing, planning or modelling of a network
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
-
- 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
- Y04S40/00—Systems for electrical power generation, transmission, distribution or end-user application management characterised by the use of communication or information technologies, or communication or information technology specific aspects supporting them
- Y04S40/20—Information technology specific aspects, e.g. CAD, simulation, modelling, system security
Abstract
A plug and play test method and a test master station of a power distribution automation terminal comprise the following steps: based on the registration message and the configuration file of the tested terminal, the test master station tests the tested terminal under each application scene; when the tested terminal passes the test in each application scene, the tested terminal meets the plug and play requirement; the application scene comprises: newly installed terminal scene, changed terminal scene, terminal configuration updating scene, and communication link reestablishment scene between terminal and test master station. The method simulates different operation and maintenance scenes and application conditions in actual application, detects the uniformity and robustness of plug and play mechanisms of the power distribution automation terminals of different manufacturers, ensures that the power distribution automation terminals of different manufacturers can be quickly accessed into a power distribution automation master station under various application scenes and field engineering conditions, meets the plug and play requirements, reduces the field installation and debugging and later operation and maintenance workload of the terminals, and improves the power distribution automation application level and the construction operation and maintenance efficiency.
Description
Technical Field
The application relates to the field of power distribution automation, in particular to a plug and play test method and a test master station of a power distribution automation terminal.
Background
The existing power distribution automation system adopts a plug-and-play technology to solve the problems of automatic access, engineering configuration and remote maintenance of a large-scale power distribution terminal, the plug-and-play comprises two core links of terminal automatic registration and master station configuration, a registration method and a configuration strategy are flexibly adjusted according to application scenes, and meanwhile, the system needs to be matched with a management and operation and maintenance mechanism of the power distribution automation master station side to cope with various abnormal conditions such as version abnormality, registration failure, restarting failure of the power distribution terminal and the like.
Therefore, the plug-and-play function can be realized by searching and solving the problem that the power distribution automation terminals of different manufacturers are accessed to the master station, so that the power distribution master station/terminals of different manufacturers can realize automatic registration and automatic configuration of the power distribution master station under various application scenes, and the problem which is urgent to be solved by the technicians in the field is solved.
The application comprises the following steps:
in order to solve the defects in the prior art, the application provides a plug and play test method and a test master station of a power distribution automation terminal.
A plug and play testing method of a power distribution automation terminal, the method comprising:
based on the registration message and the configuration file of the tested terminal, the test master station tests the tested terminal under each application scene;
when the tested terminal passes the test in each application scene, the tested terminal meets the plug and play requirement;
the application scene comprises: newly installed terminal scene, changed terminal scene, terminal configuration updating scene, and communication link reestablishment scene between terminal and test master station.
Preferably, the test master station performs at least one of the following tests on the tested terminal under each application scenario:
registration mechanism testing, configuration mechanism testing, and restarting registration testing.
Preferably, the registration mechanism test includes:
when the tested terminal is electrified or a link is restarted, the test master station establishes TCP connection with the tested terminal and then receives a registration message sent by the tested terminal;
the test master station judges whether the message of the registration message meets the preset standard requirement;
when meeting the requirement of a preset standard, the testing master station judges the integrity and correctness of the content of each field of the registration message according to the history record;
when the integrity and the correctness are met, the test master station replies a response message of the tested terminal, and meanwhile, whether the tested terminal closes the registration link is detected;
if the tested terminal automatically closes the registration link, the tested terminal is tested through a registration mechanism; otherwise, the tested terminal does not pass the registration mechanism test; or alternatively, the first and second heat exchangers may be,
the configuration mechanism test comprises:
the test master station sends a command for acquiring the configuration file to the tested terminal, and when the response of the tested terminal is received, the test master station performs error checking and version checking and consistency checking on the configuration file;
when the error checking verification, the version verification and the consistency verification pass, if the configuration file needs to be configured and updated, a new CID file is generated after the configuration file is updated;
the test master station sends a configuration file setting command to the tested terminal, and when the correct response of the tested terminal is received and the tested terminal is reset and restarted, the tested terminal is tested through a configuration mechanism; otherwise, the configuration mechanism test is not passed; or alternatively, the first and second heat exchangers may be,
the restart registration test includes:
resetting and restarting the tested terminal or disconnecting and reconnecting the link, and after the test master station establishes TCP connection with the tested terminal, receiving and analyzing a registration message sent by the tested terminal;
the test master station checks whether the parsed registration message format meets the preset standard requirement;
when the format field contents and the configuration file version of the registration message are matched, checking whether the format field contents and the configuration file version of the registration message are updated correctly;
and when the terminal is updated correctly, the tested terminal passes the restarting registration test, otherwise, the tested terminal fails the test restarting registration test.
Preferably, the testing of the tested terminal in the new installation terminal scene includes:
the test master station executes the registration mechanism test of the tested terminal based on the registration message of the tested terminal;
the test master station executes the configuration mechanism test of the tested terminal based on the configuration file of the tested terminal;
and the test master station executes the restarting mechanism test of the tested terminal according to the results of the registration mechanism test and the configuration mechanism test.
Preferably, the testing the tested terminal in the terminal replacement scene includes:
the test master station executes the registration mechanism test of the tested terminal based on the registration message of the tested terminal;
the test master station executes the configuration mechanism test of the tested terminal based on the configuration file of the tested terminal;
and the test master station executes the restarting mechanism test of the tested terminal according to the results of the registration mechanism test and the configuration mechanism test.
Preferably, the testing the tested terminal in the terminal configuration updating scene includes:
the test master station executes the configuration mechanism test of the tested terminal based on the configuration file of the tested terminal;
and the test master station executes the restart mechanism test of the tested terminal according to the configuration mechanism test result.
Preferably, the testing of the tested terminal in the communication link reestablishment scene of the terminal and the testing master station includes:
the test master station executes the registration mechanism test of the tested terminal based on the registration message of the tested terminal.
Preferably, the method comprises the steps of,
the new installation terminal scene is a new installation scene which simulates the tested terminal without any record;
the replacement terminal scene is a scene simulating at least one registered terminal replacement history record;
the terminal configuration updating scene simulates at least one plug-and-play successful history record of the tested terminal, and updates a terminal configuration file in the normal communication process of the tested master station and the tested terminal;
the communication link reconstruction scene between the tested terminal and the test master station comprises the following steps: and simulating the communication link faults of the tested terminal and the test master station, so that the communication link reestablishment scene is realized.
A power distribution automation terminal plug and play test master station comprising:
the test module is used for testing the tested terminal under each application scene based on the registration and configuration file of the tested terminal by the test master station; wherein, the application scene includes: newly installing a terminal scene, replacing the terminal scene, configuring and updating the terminal scene, and reconstructing a communication link between the terminal and the test master station;
and the judging module is used for judging whether the tested terminal meets the plug and play requirements according to the test condition of the tested terminal in each application scene.
Preferably, the test module includes:
the new installation terminal test unit is used for simulating the test of the tested terminal without any record so that the terminal is executed for the tested terminal in the new installation scene;
the terminal replacement testing unit is used for simulating the test executed by the tested terminal under the scene of the replacement history of at least one registered terminal;
the terminal configuration updating unit is used for simulating at least one plug-and-play success history record of the tested terminal, and when the tested master station and the tested terminal normally communicate, the tested terminal executes the test when updating the terminal configuration file;
and the link reestablishing unit is used for simulating the communication link faults of the tested terminal and the testing master station, so that the tested terminal executes the test under the scene of communication link reestablishment.
Preferably, the new installation terminal test unit includes:
a registration mechanism testing subunit, configured to execute a registration mechanism test of the tested terminal based on the registration message of the tested terminal;
a configuration mechanism testing subunit, configured to execute a configuration mechanism test of the tested terminal based on the configuration file of the tested terminal;
and the restarting registration test subunit is used for executing the restarting registration test of the tested terminal according to the results of the registration mechanism test and the configuration mechanism test.
Preferably, the replacement terminal test unit includes:
a registration mechanism testing subunit, configured to execute a registration mechanism test of the tested terminal based on the registration message of the tested terminal;
a configuration mechanism testing subunit, configured to execute a configuration mechanism test of the tested terminal based on the configuration file of the tested terminal;
and the restarting registration test subunit is used for executing the restarting registration test of the tested terminal according to the results of the registration mechanism test and the configuration mechanism test.
Preferably, the terminal configuration updating unit includes:
a configuration mechanism testing subunit, configured to execute a configuration mechanism test of the tested terminal based on the configuration file of the tested terminal;
and the restarting registration test subunit is used for executing the restarting registration test of the tested terminal according to the results of the registration mechanism test and the configuration mechanism test.
Preferably, the link reestablishing unit includes:
and the registration mechanism testing subunit is used for executing the registration mechanism test of the tested terminal based on the registration message of the tested terminal.
Compared with the closest prior art, the application has the following beneficial effects:
according to the plug and play testing method and system for the power distribution automation terminal, the tested terminals under all application scenes are tested by the testing master station based on the registration message and the configuration file of the tested terminals, the tested terminals passing the test are selected, and the power distribution master station/terminals of different manufacturers can be ensured to realize automatic registration and automatic configuration of the power distribution master station under all application scenes;
the application provides a plug-and-play mechanism testing method for a power distribution automation terminal, which solves the problem of the network access consistency of the current large-scale power distribution automation terminal, reduces the workload of terminal field installation and debugging and later operation and maintenance, and improves the power distribution automation application level and the construction operation and maintenance efficiency.
Description of the drawings:
FIG. 1 is a flow chart of a plug and play test method for a power distribution automation terminal of the present application;
FIG. 2 is a flow chart of a plug and play test embodiment of the power distribution automation terminal of the present application;
fig. 3 is a flow chart of a plug and play registration service, configuration service and restart registration service test of the power distribution automation terminal of the present application.
The specific embodiment is as follows:
the application is described in further detail below with reference to the accompanying drawings. For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Example 1:
the application provides a plug and play test method of a power distribution automation terminal, which is shown in fig. 1:
step 1: based on the registration message and the configuration file of the tested terminal, the test master station tests the tested terminal under each application scene; the application scene comprises: newly installing a terminal scene, replacing the terminal scene, configuring and updating the terminal scene, and reconstructing a communication link between the terminal and the test master station;
step 2: and when the tested terminal passes the test under each application scene, the tested terminal meets the plug and play requirement.
Wherein step 1: based on the registration message and the configuration file of the tested terminal, the test master station tests the tested terminal under each application scene; the application scene comprises: newly installing a terminal scene, replacing the terminal scene, configuring and updating the terminal scene, and reconstructing a communication link between the terminal and the test master station;
the tested terminal under each application scene executes at least one of the following tests:
registration mechanism testing, configuration mechanism testing and restarting registration testing;
registration mechanism testing, comprising:
when the tested terminal is electrified or a link is restarted, the test master station establishes TCP connection with the tested terminal and then receives a registration message sent by the tested terminal;
the test master station judges whether the message of the registration message meets the preset standard requirement;
when meeting the requirement of a preset standard, the testing master station judges the integrity and correctness of the content of each field of the registration message according to the history record;
when the integrity and the correctness are met, the test master station replies a response message of the tested terminal, and meanwhile, whether the tested terminal automatically closes the registration link is detected;
if the test steps are met, the tested terminal is tested through a registration mechanism; otherwise, the tested terminal does not pass the registration mechanism test; or alternatively, the first and second heat exchangers may be,
configuration mechanism testing, comprising:
the test master station sends a command for reading the configuration file to the tested terminal, and when the configuration file of the tested terminal is received, the test master station performs error checking and version checking and consistency checking on the configuration file;
when the error checking verification, the version verification and the consistency verification pass, if the configuration file needs to be configured and updated, a new CID file is generated after the configuration file is updated;
when the version verification fails, the document version verification and the process tracing are required to be carried out again, and after the document version is established, the distribution automation system master station carries out configuration mechanism test again;
when the error checking or consistency checking is not passed, returning to the modified file content, and then, re-performing the configuration mechanism test by the power distribution automation system master station;
the test master station sends a configuration file setting command to the tested terminal, and when the test master station receives the correct response of the tested terminal and the tested terminal completes registration after reset and restarting, the tested terminal passes the configuration mechanism test, otherwise, the tested terminal does not pass the configuration mechanism test; or alternatively, the first and second heat exchangers may be,
restarting the registration test, comprising:
resetting and restarting the tested terminal or disconnecting and reconnecting the link, and after the test master station establishes TCP connection with the tested terminal, receiving and analyzing a registration message sent by the tested terminal;
the test master station checks whether the format of the parsed registration message meets the preset standard requirement;
when the format field contents and the configuration file version of the registration message are matched, checking whether the format field contents and the configuration file version of the registration message are updated correctly;
and when the terminal is updated correctly, the tested terminal passes the restarting registration test, otherwise, the tested terminal does not pass the restarting registration test.
Testing the tested terminal in the new installation terminal scene comprises the following steps:
the test master station executes the registration mechanism test of the tested terminal based on the registration message of the tested terminal;
the test master station executes the configuration mechanism test of the tested terminal based on the configuration file of the tested terminal;
and the test master station executes the restarting registration test of the tested terminal according to the results of the registration mechanism test and the configuration mechanism test.
Testing the tested terminal in the terminal replacement scene comprises the following steps:
the test master station executes the registration mechanism test of the tested terminal based on the registration message of the tested terminal;
the test master station executes the configuration mechanism test of the tested terminal based on the configuration file of the tested terminal;
and the test master station executes the restarting registration test of the tested terminal according to the results of the registration mechanism test and the configuration mechanism test.
Testing the tested terminal under the terminal configuration updating scene comprises the following steps:
the test master station executes the configuration mechanism test of the tested terminal based on the configuration file of the tested terminal;
and the test master station executes the restarting registration test of the tested terminal according to the result of the configuration mechanism test.
Testing the tested terminal under the communication link reestablishment scene of the terminal and the testing master station comprises the following steps:
the test master station executes the registration mechanism test of the tested terminal based on the registration message of the tested terminal.
The new installation scene is a new installation scene which simulates the tested terminal without any record;
the replacement terminal scene is a scene simulating the replacement history of at least one registered terminal;
the terminal configuration updating scene is used for simulating at least one plug-and-play successful history record of the tested terminal, and updating a terminal configuration file in the normal communication process of the tested master station and the tested terminal;
the communication link reestablishment scene between the tested terminal and the test master station comprises the following steps: and simulating the communication link faults of the tested terminal and the test master station, so that the communication link reestablishment scene is realized.
Example 2:
fig. 2 is a specific flowchart of a plug-and-play function test of the power distribution automation terminal according to the present application, which specifically includes:
the plug-and-play consistency test method for the power distribution automation terminal relates to registration and configuration process test of the terminal in a 4-class application scene of newly adding, replacing, configuration updating and restarting a communication link in the installation and operation and maintenance links. The test content comprises: (1) newly added terminal registration service test; (2) newly-added terminal configuration service test; (3) restarting the registration service test by the terminal; (4) terminal link reestablishment registration service test; and (5) configuring an update flow test at the operation terminal.
Note that: DUT-terminal under test; ICD-terminal function description file; CID-terminal configuration file; PICS, protocol realization consistency description file; PIXIT, protocol implementation auxiliary information description file; MICS, model implementation compliance profiles.
Testing the tested device based on a preset consistency test rule;
(1) The tested terminal DUT provides test samples for the test master station, the product specification, the PICS, PIXIT, MICS model and the communication correlation specification document, and the test master station performs static consistency detection.
(2) The test master station performs the consistency test of the DUT model, reads the ICD file of the terminal, analyzes the ICD file and compares the ICD file with the selected model mode specification XSD file layer by layer according to the file structure, and if the comparison meets the requirements of the model mode specification file, the test is passed, otherwise, the error is reported, and the test is not passed.
(3) The test master station performs file service communication test, and tests the processes of the DUT file directory reading service, the file reading service and the file writing service. Simulating abnormal conditions such as abnormal test links, path errors, parameter errors, transmission terminals and the like, testing the fault tolerance of the DUT file service, passing the test of the DUT file communication service, and executing a preset test service based on test contents corresponding to each application scene in the installation and operation and maintenance links.
(4) The test master station sets test case configuration parameters according to test contents, including but not limited to data point table configuration template setting, terminal IP, gateway information setting, model mode specification XSD file selection, registration scenes, and test case setting.
(5) The consistency test of the plug and play mechanism of the tested terminal sequentially executes the forward test case according to the set scene, and the specific test scene and the execution process under the application condition are as follows:
1) Plug and play test of new installation terminal: the registration mechanism test, the configuration mechanism test, and the restart registration test are sequentially performed.
2) And testing a plug-and-play mechanism of the replacement terminal, setting testing conditions, and simulating at least one registration terminal replacement history record. The registration mechanism test, the configuration mechanism test, and the restart registration test are sequentially performed.
3) The terminal configuration updates the plug and play test under the network access condition again, sets the test condition, and the registration terminal simulates the successful history record of at least one DUT plug and play mechanism.
4) Plug and play test under communication link reestablishment conditions: registration mechanism testing is performed.
The plug and play mechanism test flow chart of the power distribution automation terminal of the present application as shown in fig. 3:
registration mechanism test: when the DUT is powered on or a link is restarted, TCP connection is automatically established with the test master station, a registration message is sent, and the registration master station detects and checks the content of the automatic registration message and judges whether the message format meets the standard requirement; checking the content of each format field of the automatic registration message, and judging the integrity and correctness of the registration message according to the history record; after verification, replying a DUT response message, and detecting whether the DUT automatically closes a registration link;
configuration mechanism test: the test master station calls ICD file or CID file command, and the DUT responds to the GetFile service correctly; the test master station performs CRC (error checking) check (version check) and consistency check on the ICD file, automatically configures the ICD file after the ICD file passes, and initiates a SetFile service to wait for automatic reset and restarting of the DUT;
restarting the registration test: restarting the DUT, establishing a TCP link, sending a registration message to a test master station, analyzing message information by the test master station, detecting and checking the content of the automatic registration message, and judging whether the message format meets the standard requirement; and checking whether the CID and ICD file versions of the contents of each format field of the automatic registration message are updated correctly. And if the verification result is correct, completing the test, otherwise, generating errors in the process, interrupting the test, and failing the test.
Example 3
Taking the configuration update scenario of the power distribution automation terminal mentioned in embodiment 2 as an example, the present application will be described:
(1) And the terminal manufacturer applies for testing and submits a tested terminal sample DUT, a product specification and a model/communication consistency realization specification file, and the testing master station preliminarily checks whether the tested terminal functions, models and communication meet the testing requirements according to the specification document, checks the consistency of terminal ID, manufacturer codes and terminal model codes, checks a terminal registration port and knows the terminal software and hardware information.
(2) The test master station performs terminal pre-configuration, and configures terminal IP, gateway and master station IP address; establishing test engineering, configuring a test scene, setting terminal configuration updating network access test conditions, selecting test cases, simulating a successful history record of a plug and play mechanism of a terminal DUT by a test master station, configuring and generating CID files for standby, and selecting XSD files.
(3) And the tested terminal performs the model consistency test, adopts an SCL Check tool to perform consistency Check on ICD and CID files according to the XSD files, terminates the test flow if the model Check fails, and enters the next link if the Check succeeds.
(4) The tested terminal performs file service consistency test, performs forward and reverse use case test for the file directory reading service, the file reading service and the file writing service class 3 service, terminates the test flow if the file communication service test fails, and enters the next link if the test passes.
(5) When the tested terminal normally operates, the master station downloads the CID file, the terminal is electrified to restart sending the registration message, the test master station analyzes the message, and performs correctness and integrity check on the message containing information, the test is correct, the terminal to be tested normally operates, the master station reads the CID configuration file of the terminal, performs CRC check on the ICD and CID files, the version check is performed, if the check fails, whether the terminal has a recall mechanism is checked, and if the check fails after the recall is performed for the maximum limit, the test flow is terminated. After the verification is successful, the configuration service is started, the CID configuration file is updated, the CID file is regenerated, the master station initiates the SetFile service, and the DUT is waited for automatic reset and restarting.
(6) If the DUT cannot be restarted, the TCP connection cannot be actively established after the restart, and the registration message cannot be actively sent, the plug and play test fails. If the DUT is restarted, the test master station receives the registration message of the tested terminal, the test master station analyzes the message information, detects and checks the content of the automatic registration message, and judges whether the message format meets the standard requirement; it is checked whether the CID file version is correctly updated for each format field content of the automatic registration message. And if the verification result is correct, the test is completed successfully, otherwise, errors occur in the process, the test is interrupted and the test is failed.
Example 4
The application also provides a plug and play test master station of the power distribution automation terminal, which comprises:
the test module is used for testing the tested terminal under each application scene based on the registration message and the configuration file of the tested terminal; wherein, the application scene includes: newly installing a terminal scene, replacing the terminal scene, configuring and updating the terminal scene, and reconstructing a communication link between the terminal and the test master station;
and the judging module is used for judging whether the tested terminal meets the plug and play requirements according to the test condition of the tested terminal in each application scene.
The test module comprises:
the new installation terminal test unit is used for simulating the test of the tested terminal without any record so that the terminal is executed for the tested terminal in the new installation scene;
the terminal replacement testing unit is used for simulating the test executed by the tested terminal under the scene of the replacement history of at least one registered terminal;
the terminal configuration updating unit is used for simulating at least one plug-and-play success history record of the tested terminal, and when the tested master station and the tested terminal normally communicate, the tested terminal executes the test when updating the terminal configuration file;
and the link reestablishing unit is used for simulating the communication link faults of the tested terminal and the testing master station, so that the tested terminal executes the test under the scene of communication link reestablishment.
The new installation terminal test unit includes:
a registration mechanism testing subunit, configured to execute a registration mechanism test of the tested terminal based on the registration message of the tested terminal;
a configuration mechanism testing subunit, configured to execute a configuration mechanism test of the tested terminal based on the configuration file of the tested terminal;
and the restarting registration test subunit is used for executing the restarting registration test of the tested terminal according to the results of the registration mechanism test and the configuration mechanism test.
The replacement terminal test unit includes:
a registration mechanism testing subunit, configured to execute a registration mechanism test of the tested terminal based on the registration message of the tested terminal;
a configuration mechanism testing subunit, configured to execute a configuration mechanism test of the tested terminal based on the configuration file of the tested terminal;
and the restarting registration test subunit is used for executing the restarting registration test of the tested terminal according to the results of the registration mechanism test and the configuration mechanism test.
The terminal configuration updating unit includes:
a configuration mechanism testing subunit, configured to execute a configuration mechanism test of the tested terminal based on the configuration file of the tested terminal;
and the restarting registration test subunit is used for executing the restarting registration test of the tested terminal according to the results of the registration mechanism test and the configuration mechanism test.
The link reestablishing unit includes:
and the registration mechanism testing subunit is used for executing the registration mechanism test of the tested terminal based on the registration message of the tested terminal.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application 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 application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. 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.
The foregoing is illustrative of the present application and is not to be construed as limiting thereof, but rather as providing for the use of additional embodiments and advantages of all such modifications, equivalents, improvements and similar to the present application are intended to be included within the scope of the present application as defined by the appended claims.
Claims (2)
1. A plug and play testing method for a power distribution automation terminal, the method comprising:
based on the registration message and the configuration file of the tested terminal, the test master station tests the tested terminal under each application scene;
when the tested terminal passes the test in each application scene, the tested terminal meets the plug and play requirement;
the application scene comprises: newly installing a terminal scene, replacing the terminal scene, configuring and updating the terminal scene, and reconstructing a communication link between the terminal and the test master station;
the test master station performs at least one of the following tests on the tested terminal under each application scene:
registration mechanism testing, configuration mechanism testing and restarting registration testing;
the registration mechanism test includes:
when the tested terminal is electrified or a link is restarted, the test master station establishes TCP connection with the tested terminal and then receives a registration message sent by the tested terminal;
the test master station judges whether the message of the registration message meets the preset standard requirement;
when meeting the requirement of a preset standard, the testing master station judges the integrity and correctness of the content of each field of the registration message according to the history record;
when the integrity and the correctness are met, the test master station replies a response message of the tested terminal, and meanwhile, whether the tested terminal closes the registration link is detected;
if the registration mechanism testing step is met, the tested terminal tests through the registration mechanism; otherwise, the tested terminal does not pass the registration mechanism test;
the configuration mechanism test comprises:
the test master station sends a command for acquiring the configuration file to the tested terminal, and when the configuration file of the tested terminal is received, the test master station performs error checking and version checking and consistency checking on the configuration file;
when the error checking verification, the version verification and the consistency verification pass, if the configuration file needs to be configured and updated, a new CID terminal configuration file is generated after updating;
the test master station sends a command for reading the configuration file to the tested terminal, and when the correct response of the tested terminal is received and the tested terminal is reset and restarted, the tested terminal is tested through a configuration mechanism; otherwise, the configuration mechanism test is not passed;
the restart registration test includes:
resetting and restarting the tested terminal or disconnecting and reconnecting the link, and after the test master station establishes TCP connection with the tested terminal, receiving and analyzing a registration message sent by the tested terminal;
the test master station checks whether the parsed registration message format meets the preset standard requirement;
when the format field contents and the configuration file version of the registration message are matched, checking whether the format field contents and the configuration file version of the registration message are updated correctly;
when the terminal to be tested is updated correctly, the terminal to be tested passes the restarting registration test, otherwise, the terminal to be tested fails the test restarting registration test;
testing the tested terminal in the new installation terminal scene comprises the following steps:
the test master station executes the registration mechanism test of the tested terminal based on the registration message of the tested terminal;
the test master station executes the configuration mechanism test of the tested terminal based on the configuration file of the tested terminal;
the test master station executes a restarting mechanism test of the tested terminal according to the results of the registration mechanism test and the configuration mechanism test;
testing the tested terminal in the terminal replacement scene comprises the following steps:
the test master station executes the registration mechanism test of the tested terminal based on the registration message of the tested terminal;
the test master station executes the configuration mechanism test of the tested terminal based on the configuration file of the tested terminal;
the test master station executes a restarting mechanism test of the tested terminal according to the results of the registration mechanism test and the configuration mechanism test;
testing the tested terminal under the terminal configuration updating scene comprises the following steps:
the test master station executes the configuration mechanism test of the tested terminal based on the configuration file of the tested terminal;
the test master station executes a restarting mechanism test of the tested terminal according to the configuration mechanism test result;
testing the tested terminal under the communication link reestablishment scene of the terminal and the testing master station comprises the following steps:
the test master station executes the registration mechanism test of the tested terminal based on the registration message of the tested terminal;
the new installation terminal scene is a new installation scene which simulates the tested terminal without any record;
the replacement terminal scene is a scene simulating at least one registered terminal replacement history record;
the terminal configuration updating scene simulates at least one plug-and-play successful history record of the tested terminal, and updates a terminal configuration file in the normal communication process of the tested master station and the tested terminal;
the communication link reconstruction scene between the tested terminal and the test master station comprises the following steps: and simulating the communication link faults of the tested terminal and the test master station, so that the communication link reestablishment scene is realized.
2. A power distribution automation terminal plug and play test master station, comprising: a test module and a judgment module;
the test module is used for testing the tested terminal under each application scene based on the registration and configuration files of the tested terminal; wherein, the application scene includes: newly installing a terminal scene, replacing the terminal scene, configuring and updating the terminal scene, and reconstructing a communication link between the terminal and the test master station;
the judging module is used for judging whether the tested terminal meets the plug-and-play requirement according to the test condition of the tested terminal in each application scene;
the test module comprises a newly installed terminal test unit, a terminal test replacement unit, a terminal configuration updating unit and a link reestablishing unit;
the new installation terminal test unit is used for simulating the test of the tested terminal without any record so that the terminal is executed for the tested terminal in the new installation scene;
the terminal replacement testing unit is used for simulating the test executed by the tested terminal under the scene of at least one registered terminal replacement history record;
the terminal configuration updating unit is used for simulating at least one plug-and-play success history record of the tested terminal, and when the tested master station is in normal communication with the tested terminal, the tested terminal executes a test when updating the terminal configuration file;
the link reestablishing unit is used for simulating the communication link faults of the tested terminal and the testing master station, so that the tested terminal executes the test under the scene of communication link reestablishment;
the new installation terminal test unit includes: a registration mechanism test subunit, a configuration mechanism test subunit, and a restart registration test subunit;
the registration mechanism testing subunit is used for executing the registration mechanism test of the tested terminal based on the registration message of the tested terminal;
the configuration mechanism testing subunit is used for executing the configuration mechanism test of the tested terminal based on the configuration file of the tested terminal;
the restarting registration test subunit is used for executing the restarting registration test of the tested terminal according to the results of the registration mechanism test and the configuration mechanism test;
the replacement terminal test unit includes: a registration mechanism test subunit, a configuration mechanism test subunit, and a restart registration test subunit;
the registration mechanism testing subunit is used for executing the registration mechanism test of the tested terminal based on the registration message of the tested terminal;
the configuration mechanism testing subunit is used for executing the configuration mechanism test of the tested terminal based on the configuration file of the tested terminal;
the restarting registration test subunit is used for executing the restarting registration test of the tested terminal according to the results of the registration mechanism test and the configuration mechanism test;
the terminal configuration updating unit includes: a configuration mechanism test subunit and a restart registration test subunit;
the configuration mechanism testing subunit is used for executing the configuration mechanism test of the tested terminal based on the configuration file of the tested terminal;
the restarting registration test subunit is used for executing the restarting registration test of the tested terminal according to the results of the registration mechanism test and the configuration mechanism test;
the link reestablishing unit includes: a registration mechanism test subunit;
the registration mechanism testing subunit is used for executing the registration mechanism test of the tested terminal based on the registration message of the tested terminal;
the registration mechanism test includes:
when the tested terminal is electrified or a link is restarted, the test master station establishes TCP connection with the tested terminal and then receives a registration message sent by the tested terminal;
the test master station judges whether the message of the registration message meets the preset standard requirement;
when meeting the requirement of a preset standard, the testing master station judges the integrity and correctness of the content of each field of the registration message according to the history record;
when the integrity and the correctness are met, the test master station replies a response message of the tested terminal, and meanwhile, whether the tested terminal closes the registration link is detected;
if the registration mechanism testing step is met, the tested terminal tests through the registration mechanism; otherwise, the tested terminal does not pass the registration mechanism test;
the configuration mechanism test comprises:
the test master station sends a command for acquiring the configuration file to the tested terminal, and when the configuration file of the tested terminal is received, the test master station performs error checking and version checking and consistency checking on the configuration file;
when the error checking verification, the version verification and the consistency verification pass, if the configuration file needs to be configured and updated, a new CID terminal configuration file is generated after updating;
the test master station sends a command for reading the configuration file to the tested terminal, and when the correct response of the tested terminal is received and the tested terminal is reset and restarted, the tested terminal is tested through a configuration mechanism; otherwise, the configuration mechanism test is not passed;
the restart registration test includes:
resetting and restarting the tested terminal or disconnecting and reconnecting the link, and after the test master station establishes TCP connection with the tested terminal, receiving and analyzing a registration message sent by the tested terminal;
the test master station checks whether the parsed registration message format meets the preset standard requirement;
when the format field contents and the configuration file version of the registration message are matched, checking whether the format field contents and the configuration file version of the registration message are updated correctly;
and when the terminal is updated correctly, the tested terminal passes the restarting registration test, otherwise, the tested terminal fails the test restarting registration test.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810162012.2A CN110198222B (en) | 2018-02-27 | 2018-02-27 | Plug-and-play test method and test master station for power distribution automation terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810162012.2A CN110198222B (en) | 2018-02-27 | 2018-02-27 | Plug-and-play test method and test master station for power distribution automation terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110198222A CN110198222A (en) | 2019-09-03 |
CN110198222B true CN110198222B (en) | 2023-08-22 |
Family
ID=67750779
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810162012.2A Active CN110198222B (en) | 2018-02-27 | 2018-02-27 | Plug-and-play test method and test master station for power distribution automation terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110198222B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111525698B (en) * | 2020-05-20 | 2022-06-17 | 国电南瑞科技股份有限公司 | Automatic data access method, device and system for low-voltage distribution network |
CN112054931A (en) * | 2020-09-09 | 2020-12-08 | 海南电网有限责任公司 | Master station access method suitable for modeling distribution network terminal source end |
CN112562299A (en) * | 2020-11-30 | 2021-03-26 | 广东电网有限责任公司 | Distribution network automation terminal distributed test method |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7020573B2 (en) * | 2004-01-12 | 2006-03-28 | Microsoft Corporation | Enhanced testing for compliance with universal plug and play protocols |
CN103326465B (en) * | 2013-05-17 | 2015-09-09 | 国家电网公司 | A kind of power distribution network terminal cut-in method based on IEC61850 standard |
CN103888291A (en) * | 2014-02-24 | 2014-06-25 | 北京科东电力控制系统有限责任公司 | Power distribution terminal plug-and-play communication method based on IEC 61850 standard |
CN105677556B (en) * | 2014-11-19 | 2019-07-12 | 国家电网公司 | A kind of dispatching automation main station system method for testing software and its platform |
CN107359617B (en) * | 2017-08-08 | 2023-09-26 | 国网江苏省电力公司盐城供电公司 | Active power distribution network source-network-load coordination control system comprising micro-grid group |
-
2018
- 2018-02-27 CN CN201810162012.2A patent/CN110198222B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN110198222A (en) | 2019-09-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113206763B (en) | Simulation test system and method suitable for Internet of things management platform | |
CN110198222B (en) | Plug-and-play test method and test master station for power distribution automation terminal | |
CN108459951B (en) | Test method and device | |
CN112241360A (en) | Test case generation method, device, equipment and storage medium | |
CN110941520B (en) | Hardware function test system and method based on two-out-of-two safety control unit | |
CN110063042A (en) | A kind of response method and its terminal of database failure | |
CN113259996A (en) | IOT wireless debugging method and equipment | |
CN110990289B (en) | Method and device for automatically submitting bug, electronic equipment and storage medium | |
CN112311627B (en) | Universal power protocol testing method and system based on protocol description file in XML format | |
CN112817883A (en) | Method, device and system for adapting interface platform and computer readable storage medium | |
CN101267645B (en) | Automatic test method and system for service flow software development of W base station | |
CN110297753A (en) | A kind of method and system for verifying software version | |
CN109885420B (en) | PCIe link fault analysis method, BMC and storage medium | |
CN110198249B (en) | Power distribution automation system testing method and system | |
CN113986263A (en) | Code automation test method, device, electronic equipment and storage medium | |
CN113468061A (en) | Automatic testing method and device based on recording and playback and electronic equipment | |
CN111082984A (en) | Method and device for simulating login of network equipment to carry out command line interaction | |
CN111581081A (en) | Automatic test system and method | |
CN112114868B (en) | Real-time control device for task of working vehicle and protocol adaptation method thereof | |
WO2023032116A1 (en) | Script identification device, script identification method, and script identification system | |
CN114328260A (en) | Automatic testing method and system | |
CN113568795A (en) | Method, device, equipment and storage medium for testing staticized service | |
CN116303065A (en) | Firewall upgrading automatic test system, device and method and computer storage medium | |
CN117908918A (en) | Equipment firmware upgrading method and system based on Ethernet transmission | |
CN113835942A (en) | Server fault diagnosis method and device |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |