CN103077113B - A kind of Microcomputer Protection test autocontrol method - Google Patents

A kind of Microcomputer Protection test autocontrol method Download PDF

Info

Publication number
CN103077113B
CN103077113B CN201210509496.6A CN201210509496A CN103077113B CN 103077113 B CN103077113 B CN 103077113B CN 201210509496 A CN201210509496 A CN 201210509496A CN 103077113 B CN103077113 B CN 103077113B
Authority
CN
China
Prior art keywords
test
task node
linker
node
control flow
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.)
Expired - Fee Related
Application number
CN201210509496.6A
Other languages
Chinese (zh)
Other versions
CN103077113A (en
Inventor
林虎
葛大维
赵武智
熊自怀
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHENZHEN KINGSINE ELECTRIC AUTOMATION CO Ltd
Anshun Power Supply Bureau of Guizhou Power Grid Co Ltd
Electric Power Dispatch Control Center of Guizhou Power Grid Co Ltd
Original Assignee
SHENZHEN KINGSINE ELECTRIC AUTOMATION CO Ltd
Anshun Power Supply Bureau of Guizhou Power Grid Co Ltd
Electric Power Dispatch Control Center of Guizhou Power Grid Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by SHENZHEN KINGSINE ELECTRIC AUTOMATION CO Ltd, Anshun Power Supply Bureau of Guizhou Power Grid Co Ltd, Electric Power Dispatch Control Center of Guizhou Power Grid Co Ltd filed Critical SHENZHEN KINGSINE ELECTRIC AUTOMATION CO Ltd
Priority to CN201210509496.6A priority Critical patent/CN103077113B/en
Publication of CN103077113A publication Critical patent/CN103077113A/en
Application granted granted Critical
Publication of CN103077113B publication Critical patent/CN103077113B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The present invention relates to a kind of Microcomputer Protection test autocontrol method, comprise the steps: S1, build test controller; S2, add test assignment to test controller, wherein each test assignment at least one linker of comprising task node and associating with this task node, described linker points to the task node of another test assignment; S3, by test controller based on described test assignment, adopt the mode of successively mating automatically to generate testing and control flow process; S4, verify described testing and control flow process; S5, the effective testing and control flow performing test of foundation verification.Microcomputer Protection test autocontrol method of the present invention adopts a set of perfect automatic control embodiment and dedicated processes algorithm specification intermodule interface; unify the control and management of different test assignment, test process in Microcomputer Protection Auto-Test System, and there is feature that is efficient, flexible, high scalability.

Description

A kind of Microcomputer Protection test autocontrol method
Technical field
The present invention relates to industrial automatic control, more particularly, relate to a kind of Microcomputer Protection test autocontrol method.
Background technology
Relay protection ensures the key of safe operation of power system, and its technical difficulty is high, workload large, is an important basic technology job.Along with the continuous expansion of computer technology application in electric system, the application of the smart machines such as various Microcomputer Protection, aut.eq., monitoring instrument gets more and more, and for ensureing these equipment energy safe and stable operations, periodic detection is absolutely necessary work.
Current relay testing system needs special test module and the algorithm matched and flow process for protective device that is dissimilar and different operating mode.When carrying out test job, must switch at disparate modules, interprocedual, due to the professional of test job itself and complicacy, and there is no the guidance of standard procedure, cause test job confusing, greatly reduce the quality of test job.Therefore, be badly in need of a kind of unified process and different test assignments is coupled together, form a set of automated test control system.
In addition, electrical network scale is in continuous expansion, and electric network composition becomes increasingly complex, and the relay protection scheme corresponded is also more complicated, and this proposes very high requirement to the quality of tester.Along with the development of computer technology, exploitation relay protection automatic test software, to important in inhibitings such as relay protection on-the-job training, crash analysis, course of action logical simulations, can need service better for actual production.
Summary of the invention
The technical problem to be solved in the present invention is; for can not unify for different test assignment, process in the protection Auto-Test System of prior art to control/problem automatically performing flow process can not be formed; there is provided a kind of Microcomputer Protection to test autocontrol method, realize the control and management that Microcomputer Protection is tested automatically.
The technical solution adopted for the present invention to solve the technical problems is: propose a kind of Microcomputer Protection test autocontrol method, comprise the steps:
S1, structure test controller;
S2, add test assignment to test controller, wherein each test assignment at least one linker of comprising task node and associating with this task node, described linker points to the task node of another test assignment;
S3, by test controller based on described test assignment, adopt the mode of successively mating automatically to generate testing and control flow process;
S4, verify described testing and control flow process;
S5, the effective testing and control flow performing test of foundation verification.
In Microcomputer Protection test autocontrol method of the present invention, described step S2 adds test assignment to test controller and comprises further:
S21, by test controller allocating task resource, the test assignment chained list created;
S22, interpolation task node are in described test assignment chained list;
S23, establishment linker object;
S24, specify at least one linker for described task node.
In Microcomputer Protection test autocontrol method of the present invention; described linker comprises import linker and egress links device; the task node only with import linker is start node; the task node only with egress links device is end node, is cycle task during egress links device sensing previous task node.
In Microcomputer Protection of the present invention test autocontrol method, described step S3 adopts the mode of successively mating automatically to generate testing and control flow process to comprise further:
The validity of S31, inspection task node and linker;
S32, judge whether current task node is last task node, if perform step S36, otherwise perform step S33;
S33, matching task node;
Whether S34, the current link device judging this task node are last linker, if return step S32, otherwise perform step S35;
S35, coupling linker, then return step S34;
The connectedness of the testing and control flow process that S36, inspection generate.
Microcomputer Protection test autocontrol method of the present invention adopts a set of perfect automatic control embodiment and dedicated processes algorithm specification intermodule interface; unify the control and management of different test assignment, test process in Microcomputer Protection Auto-Test System, and there is feature that is efficient, flexible, high scalability.
Accompanying drawing explanation
Below in conjunction with drawings and Examples, the invention will be further described, in accompanying drawing:
Fig. 1 is the process flow diagram of the Microcomputer Protection test autocontrol method of one embodiment of the invention;
Fig. 2 is the process flow diagram of the specific embodiment of step 120 in Fig. 1;
Fig. 3 is the process flow diagram of the specific embodiment of step 130 in Fig. 1;
Fig. 4 is the schematic diagram of test assignment chained list according to an embodiment of the invention.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Fig. 1 shows the process flow diagram of Microcomputer Protection test autocontrol method 100 according to an embodiment of the invention.As described in Figure 1, this Microcomputer Protection test autocontrol method 100 comprises the steps:
Step 110, builds test controller, and carry out necessary initial work, such as check network, basic parameter configuration etc., exact p-value environmental work is normal.
Step 120, adds test assignment to test controller.These test assignments can dynamically be added, and the test masterplate file also described by script adds (such as adopting XML file form).At least one linker that each test assignment comprises task node and associates with this task node, also, test assignment is expressed by task node and linker.Wherein, task node describes concrete test assignment details, and each task node at least should associate a linker.Linker points to the task node of another test assignment, is used to specify the direction attribute of testing process.Such as, linker can point to next task node, also can point to previous task node.When linker points to previous task node, form cycle task, the end of circulation is decided by the condition judgment of this task node.Specifically come institute, the kind of linker comprises egress links device and import linker two type.If task node only has egress links device, then this task node is start node; If task node only has import linker, then this task node is end node.A start node can only be there is in a test controller.
Step 130, after test assignment has been added, by test controller based on added test assignment, adopts the mode of successively mating automatically to generate testing and control flow process.Test controller calls Auto-matching algorithm, by two-layer circulation coupling, ground floor is task node, one deck recycle coupling linker under every one deck task node, first task node is made to mate linker, secondly each task node is together in series according to the directivity (namely exporting corresponding import) of linker, and formation testing and control flow process (i.e. test assignment chained list, as shown in Figure 4).
Step 140, the validity of the testing and control flow process that verification generates.
Step 150, according to the effective testing and control flow performing test of verification.
In a specific embodiment, as shown in Figure 2, above-mentioned steps 120 comprises further to test controller interpolation test assignment:
Step 121, by test controller allocating task resource, the test assignment chained list created.
Step 122, adds task node in described test assignment chained list.
Step 123, creates linker object.
Step 124, for described task node specifies at least one linker, definition tasks carrying direction.
In a specific embodiment, as shown in Figure 3, above-mentioned steps 130 adopts the mode of successively mating automatically to generate testing and control flow process to comprise further:
Step 131, checks the validity of task node and linker.At least start node and end node should be had in a task controller.
Step 132, judges whether current task node is last task node, if perform step 133, otherwise performs step 136.
When determining in step 132 that current task node is not last task node, perform step 133, matching task node.
Then in step 134, judge whether the current link device of this task node is last linker, if return step 132, otherwise perform step 135;
When determining in step 134 that current link device is not last linker, perform step 135, coupling linker, then returns step 134.
When determining current task node in step 132 for last task node, perform step 136, check the connectedness started between end node, whether exact p-value control flow is effective.
The present invention is by above Auto-matching process, and first make task node mate linker, secondly each task node is together in series according to the directivity (namely exporting corresponding import) of linker, just forms testing and control flow process (test assignment chained list).The key code of above Auto-matching algorithm is as follows:
Fig. 4 shows the schematic diagram of test assignment chained list according to an embodiment of the invention.As shown in Figure 4, n test assignment node is with the addition of in test controller, task node 1 is start node, task node 2 is pointed to by linker after task node 1 is complete, task node 3 is arrived through several tasks after task node 2, the outlet of this task node 3 comprises two linkers, thus task node 3 has the ability judging direction, according to actual conditions, the outlet of task node 3 can point to the entrance of task node 2, a test loop is formed to task node 3 whole piece path from task node 2, only when the conditions are met, task node n is arrived by task node 3, terminate whole testing process.
In addition, the type of task node, except Basic function testing, also may be defined as the special duties such as condition detection, time wait, realizes the special circumstances such as loop test, enhance the dirigibility of scheme, extendability with auxiliary.
According in the present invention's specific embodiment, according to functional requirement and principle of design, carry out higher level of abstraction to the common features of test controller, task node, linker, abstraction interface can represent different specific implementations, reaches the versatility of design and low coupling objectives.The physical interface of test controller, task node, linker is defined as follows:
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (2)

1. a Microcomputer Protection test autocontrol method, is characterized in that, comprise the steps:
S1, structure test controller;
S2, add test assignment to test controller, wherein each test assignment at least one linker of comprising task node and associating with this task node, described linker points to the task node of another test assignment;
S3, by test controller based on described test assignment, adopt the mode of successively mating automatically to generate testing and control flow process;
S4, verify described testing and control flow process;
S5, the effective testing and control flow performing test of foundation verification;
Wherein, described step S2 comprises further to test controller interpolation test assignment:
S21, by test controller allocating task resource, the test assignment chained list created;
S22, interpolation task node are in described test assignment chained list;
S23, establishment linker object;
S24, specify at least one linker for described task node;
Wherein, described step S3 adopts the mode of successively mating automatically to generate testing and control flow process to comprise further:
The validity of S31, inspection task node and linker;
S32, judge whether current task node is last task node, if perform step S36, otherwise perform step S33;
S33, matching task node;
Whether S34, the current link device judging this task node are last linker, if return step S32, otherwise perform step S35;
S35, coupling linker, then return step S34;
The connectedness of the testing and control flow process that S36, inspection generate.
2. Microcomputer Protection test autocontrol method according to claim 1; it is characterized in that; described linker comprises import linker and egress links device; the task node only with import linker is start node; the task node only with egress links device is end node, is cycle task during egress links device sensing previous task node.
CN201210509496.6A 2012-11-30 2012-11-30 A kind of Microcomputer Protection test autocontrol method Expired - Fee Related CN103077113B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210509496.6A CN103077113B (en) 2012-11-30 2012-11-30 A kind of Microcomputer Protection test autocontrol method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210509496.6A CN103077113B (en) 2012-11-30 2012-11-30 A kind of Microcomputer Protection test autocontrol method

Publications (2)

Publication Number Publication Date
CN103077113A CN103077113A (en) 2013-05-01
CN103077113B true CN103077113B (en) 2016-01-20

Family

ID=48153646

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210509496.6A Expired - Fee Related CN103077113B (en) 2012-11-30 2012-11-30 A kind of Microcomputer Protection test autocontrol method

Country Status (1)

Country Link
CN (1) CN103077113B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101718841A (en) * 2009-12-02 2010-06-02 江苏方天电力技术有限公司 Automatic checking system and method of relaying protection device
CN101776734A (en) * 2010-01-15 2010-07-14 江苏方天电力技术有限公司 Description method of automatic inspection of relay protection device
CN102760059A (en) * 2012-05-15 2012-10-31 江苏省电力公司 Automatic generating method for standardized test scripts of relay protection device of electrical system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101718841A (en) * 2009-12-02 2010-06-02 江苏方天电力技术有限公司 Automatic checking system and method of relaying protection device
CN101776734A (en) * 2010-01-15 2010-07-14 江苏方天电力技术有限公司 Description method of automatic inspection of relay protection device
CN102760059A (en) * 2012-05-15 2012-10-31 江苏省电力公司 Automatic generating method for standardized test scripts of relay protection device of electrical system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《基于测试模板的继电保护装置自动测试技术研究与实现》;郑新才;《电力系统保护与控制》;20100616;第38卷(第12期);参见摘要,第70-72页,图1,图2 *

Also Published As

Publication number Publication date
CN103077113A (en) 2013-05-01

Similar Documents

Publication Publication Date Title
JP6307140B2 (en) System and method for safety critical software automatic requirement based test case generation
CN105302716B (en) Test method, device under the development mode of interflow
KR102393944B1 (en) Flexible assembly system for multi-product production and method of reconstructing a production line
CN104914845B (en) A kind of car body controller fault testing method and system based on industrial personal computer
CN104765692A (en) Method and equipment for automatically testing software
CN104520818A (en) Performance tests in a continuous deployment pipeline
CN107220539B (en) Demand-based IMA security verification analysis method
CN104484248A (en) Diagnosis method and device for electrifying fault of computer motherboard
CN105135615A (en) Debugging method and device of air conditioner
CN107018523A (en) WIFI module testing method and device
CN103180746A (en) Method for verifying electrical connection between generator and inverter using handheld device
CN102707712B (en) Electronic equipment fault diagnosis method and system
CN104486169A (en) Reusable automatic detection and random verification system and method
CN102928732B (en) Line diagnosis instrument and line diagnosis method
CN103941240A (en) Radar system communication extension detection device and detection methods
CN109165170A (en) A kind of method and system automating request for test
CN111083017A (en) Air conditioner distribution network testing method, air conditioner distribution network testing terminal and readable storage medium
CN112653738A (en) Internet of things network debugging system and method
CN104298222A (en) Super capacitor management system hardware-in-loop test system and test method
CN102968371A (en) Method and device for testing JAVA API unit component
CN103278731B (en) A kind of method for diagnosing faults based on secondary loop information and system
Jhunjhunwala et al. A design pattern for monitoring adapter connections in IEC 61499
CN102902852A (en) Automatic generation system and automatic generation method of electronic control unit (ECU) diagnosis software model of automobile
CN102841843B (en) Compatible determination methods and device
CN109857626A (en) Method for testing pressure and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160120

Termination date: 20161130