CN112214403B - Automatic test method, device and system based on protection device model file - Google Patents

Automatic test method, device and system based on protection device model file Download PDF

Info

Publication number
CN112214403B
CN112214403B CN202011018610.6A CN202011018610A CN112214403B CN 112214403 B CN112214403 B CN 112214403B CN 202011018610 A CN202011018610 A CN 202011018610A CN 112214403 B CN112214403 B CN 112214403B
Authority
CN
China
Prior art keywords
protection
test
fixed value
value
protection device
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
Application number
CN202011018610.6A
Other languages
Chinese (zh)
Other versions
CN112214403A (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.)
Xuji Group Co Ltd
XJ Electric Co Ltd
Xuchang XJ Software Technology Co Ltd
Original Assignee
Xuji Group Co Ltd
XJ Electric Co Ltd
Xuchang XJ Software Technology 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 Xuji Group Co Ltd, XJ Electric Co Ltd, Xuchang XJ Software Technology Co Ltd filed Critical Xuji Group Co Ltd
Priority to CN202011018610.6A priority Critical patent/CN112214403B/en
Publication of CN112214403A publication Critical patent/CN112214403A/en
Application granted granted Critical
Publication of CN112214403B publication Critical patent/CN112214403B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Tests Of Electronic Circuits (AREA)

Abstract

The invention relates to an automatic test method, device and system based on protection device model file, because the maximum value and the minimum value of protection model, protection function configuration and protection fixed value can be obtained from the device ICD (IED capability description file) model file, the test case template of conventional test items such as protection fixed value precision test, action time, fixed value validity and the like can be automatically generated offline under the condition of only ICD model file; for a device running on site, acquiring a device parameter fixed value and a protection fixed value through a device on-line reading device configuration file, importing an automatic test case template, and automatically generating a test case. Therefore, the manufacturing period of the test case is greatly shortened, the test efficiency is improved, and errors such as constant value input and the like caused by human intervention factors are reduced.

Description

Automatic test method, device and system based on protection device model file
Technical Field
The invention relates to the field of power system relay protection, in particular to an automatic test method, device and system based on a protection device model file.
Background
The existing automatic test case generation method is that aiming at a to-be-tested protection device, information such as a protection fixed value, a pressing plate and the like is manually input, a tester manually executes a program to generate a test case, and certain universality is lacked, so that the workload of the tester is high, the test efficiency is low, and higher requirements are provided for professional capability of operators.
Along with the release of the standardized design specifications of Q/GDW 1161-2013 line protection and auxiliary devices, the standardized design specifications of Q/GDW1175-2013 transformers, high-voltage shunt reactors and bus protection and auxiliary devices and the relay protection application model files of Q/GDW1396-2013 IEC61850 engineering, the protection of relay protection manufacturers follows the nine unified principles of functional configuration, loop design, terminal row arrangement, interface standard, screen cabinet pressing plate, protection fixed values (report format), panel display lamps, device menus and information specifications, so that similar protection devices of different manufacturers can be tested by adopting the same test cases, the labor intensity of testers is reduced, the working efficiency is greatly improved, and the detection work is more standard.
Disclosure of Invention
Based on the above situation in the prior art, the invention aims to provide an automatic test method, device and system for testing basic functions, field debugging and field problem reproduction of the same kind of protection devices of different manufacturers, and capable of realizing typical test projects such as the same kind of protection functions and fixed value precision of different manufacturers and each protection function under the field operation environment. According to the invention, a protection device ICD model file (IED capability description file) is utilized to automatically generate test cases of conventional test items such as protection constant value precision test, action time, constant value effectiveness and the like in an offline manner; or on-line reading device configuration files, automatically generating test cases, greatly shortening the manufacturing period of the test cases, improving the test efficiency, and reducing errors such as constant value input caused by human intervention factors.
To achieve the above object, according to one aspect of the present invention, there is provided an automatic test method based on a protection device model file, comprising the steps of:
s1, receiving a test task, and determining the type of the protection device according to an ICD model file of the protection device;
s2, selecting test items and formulating a test scheme;
s3, judging whether the device is in an online state or an offline state, if the device is in the offline state, executing the step S4, and if the device is in the online state, jumping to the step S5;
s4, obtaining the maximum value and the minimum value of the protection fixed value of the protection device through the ICD model file, and jumping to the step S6;
s5, acquiring a protection fixed value of the protection device by reading a configuration file of the protection device on line;
s6, downloading a protection fixed value to the tester and reading back verification information;
s7, automatically generating a test case and executing the test case;
s8, generating and storing test results.
Further, the step S4 further includes obtaining a protection model of the protection device.
Further, the step S5 of obtaining the protection fixed value of the protection device includes a system parameter fixed value, a protection fixed value and soft pressing plate information of the protection device.
Further, the test case comprises one or more of a protection fixed value precision test, an action time validity test and a fixed value validity test.
According to a second aspect of the present invention, there is provided an automatic test device based on a protection device model file, including a task receiving module, a test scheme making module, a protection fixed value obtaining module, a protection fixed value downloading module, and a test case generating and executing module; wherein,
the task receiving module is used for receiving a test task and determining the type of the protection device according to the ICD model file of the protection device;
the test scheme making module selects test items and makes a test scheme;
the protection fixed value acquisition module is used for respectively acquiring protection fixed values according to whether the judging device is in an on-line state or an off-line state;
the protection fixed value downloading module downloads the protection fixed value to the tester and reads the verification information back;
the test case generating and executing module automatically generates test cases, executes the test cases and generates and stores test results.
Further, the protection fixed value obtaining module, according to whether the judging device is in an on-line state or an off-line state, respectively obtains the protection fixed value, and includes:
judging whether the device is in an online state or an offline state, and if the device is in the offline state, acquiring the maximum value and the minimum value of the protection fixed value of the protection device through the ICD model file; and if the protection device is in an on-line state, acquiring a protection fixed value of the protection device by reading the configuration file of the protection device on line.
Further, the obtaining, through the ICD model file, the maximum value and the minimum value of the protection fixed value of the protection device further includes obtaining a protection model of the protection device.
Further, the protection fixed value of the protection device is obtained by online reading the configuration file of the protection device, and the protection fixed value comprises a system parameter fixed value, a protection fixed value and soft pressing plate information of the protection device.
Further, the test case comprises one or more of a protection fixed value precision test, an action time validity test and a fixed value validity test.
According to a third aspect of the present invention, there is provided an automatic test system based on a protection device model file, comprising a control host, an interface device, a tester, and a protection device;
the control host analyzes the analog quantity, the switching quantity and the fault parameter information through an interface program and then sends the analog quantity, the switching quantity and the fault parameter information to the interface device through a private protocol;
the interface device analyzes the private protocol and converts the private protocol into information which can be received by the tester, and drives the tester to control the analog quantity, the switching value and the fault parameter information;
the protection device feeds back a test result to the interface device and sends the test result to the control host;
wherein the control host comprises an automatic test device according to the second aspect of the present invention, and performs the automatic test method according to the first aspect of the present invention.
In summary, the present invention provides an automatic test method, device and system based on a protection device model file, which obtains a fixed value and platen information of a protection device based on the model file or configuration file of the device, and automatically generates a test case template of conventional test items such as protection fixed value precision test, action time, fixed value validity, etc. can be automatically generated offline under the condition of only an ICD model file because the maximum value and the minimum value of the protection model, protection function configuration and protection fixed value can be learned from the device ICD (IED capability description file) model file; for a device running on site, acquiring a device parameter fixed value and a protection fixed value through a device on-line reading device configuration file, importing an automatic test case template, and automatically generating a test case. Therefore, the method not only greatly shortens the manufacturing period of the test case and improves the test efficiency, but also reduces errors such as constant value input and the like caused by human intervention factors, is suitable for the same kind of protection of different factories, and has strong universality and high test efficiency.
Drawings
FIG. 1 is a flow chart of an automatic test method based on a protection device model file of the present invention;
FIG. 2 is a block diagram of an automatic test equipment based on a protection equipment model file according to the present invention;
FIG. 3 is a block diagram of an automatic test system based on a protection device model file according to the present invention.
Detailed Description
The objects, technical solutions and advantages of the present invention will become more apparent by the following detailed description of the present invention with reference to the accompanying drawings. It should be understood that the description is only illustrative and is not intended to limit the scope of the invention. In addition, in the following description, descriptions of well-known structures and techniques are omitted so as not to unnecessarily obscure the present invention.
The invention provides a testing method aiming at the basic functions, field debugging and field problem reproduction of similar protection devices of different manufacturers, which can realize typical testing projects such as similar protection functions and fixed value precision of different manufacturers and automatic testing methods, devices and systems of all protection functions in a field operation environment. Automatically generating test cases of conventional test items such as protection constant value precision test, action time, constant value effectiveness and the like offline by using an ICD model file of the protection device; or on-line reading device configuration files, automatically generating test cases, greatly shortening the manufacturing period of the test cases, improving the test efficiency, and reducing errors such as constant value input caused by human intervention factors.
The technical scheme of the invention is described in detail below with reference to the accompanying drawings. According to an embodiment of the present invention, there is provided an automatic test method based on a protection device model file, and fig. 1 is a flowchart of the automatic test method based on the protection device model file of the present invention, as shown in fig. 1, the automatic test method includes the steps of:
s1, receiving a test task, and determining the type of the protection device according to an ICD model file of the protection device.
S2, selecting test items and making a test scheme.
And S3, judging whether the device is in an online state or an offline state, if the device is in the offline state, executing the step S4, and if the device is in the online state, jumping to the step S5.
S4, obtaining the maximum value and the minimum value of the protection fixed value of the protection device through the ICD model file, and jumping to the step S6. The protection model number, the maximum value and the minimum value of the protection fixed value of the device can be obtained through the off-line of the physical equipment nameplate in the ICD model file of the protection device.
S5, obtaining a protection fixed value of the protection device by reading the configuration file of the protection device on line. Specifically, the configuration file of the protection device is read on line to obtain the system parameter fixed value, the protection fixed value and the soft pressing plate information of the protection device.
S6, downloading the protection fixed value to the tester and reading the verification information.
S7, automatically generating test cases and executing the test cases. Wherein the test case comprises one or more of protection fixed value precision test, action time validity test and fixed value validity test
S8, generating and storing test results.
The automatic test template in the automatic method can be compiled by using a small Lua script language, and the Lua script language has the characteristics of small volume, high starting speed and easy expansibility. According to the automatic test method provided by the embodiment, the test case is automatically generated by using the test template editing software, parameter input errors caused by human factors are avoided, the accuracy and the reliability of acquiring device information are ensured, the test efficiency and the field debugging efficiency are greatly improved, and the test period is shortened.
According to a second embodiment of the present invention, there is provided an automatic test equipment based on a protection equipment model file, the automatic test equipment having a block diagram as shown in fig. 2, including: the system comprises a task receiving module, a test scheme making module, a protection fixed value acquisition module, a protection fixed value downloading module and a test case generating and executing module. The modules are connected in sequence, and in particular,
and the task receiving module is used for receiving the test task and determining the type of the protection device according to the ICD model file of the protection device.
The test scheme making module selects test items and makes a test scheme.
And the protection fixed value acquisition module is used for respectively acquiring the protection fixed value according to whether the judgment device is in an on-line state or an off-line state. The protection fixed value is obtained by the following steps: judging whether the device is in an online state or an offline state, and if the device is in the offline state, acquiring the maximum value and the minimum value of the protection fixed value of the protection device through the ICD model file; and if the protection device is in an on-line state, acquiring a protection fixed value of the protection device by reading the configuration file of the protection device on line. And acquiring the maximum value and the minimum value of the protection fixed value of the protection device through the ICD model file, and further acquiring the protection model of the protection device. And acquiring a protection fixed value of the protection device by reading a configuration file of the protection device on line, wherein the protection fixed value comprises a system parameter fixed value, a protection fixed value and soft pressing plate information of the protection device.
And the protection fixed value downloading module downloads the protection fixed value to the tester and reads the verification information back.
The test case generating and executing module automatically generates test cases, executes the test cases and generates and stores test results. The test case comprises one or more of a protection fixed value precision test, an action time validity test and a fixed value validity test.
According to a third embodiment of the present invention, there is provided an automatic test system based on a protection device model file, and fig. 3 is a block diagram of the automatic test system based on the protection device model file of the present invention, as shown in fig. 3, the system includes: the device comprises a control host, an interface device, a tester and a protection device, wherein the control host, the interface device, the tester and the protection device are sequentially connected.
The control host computer loads and executes the automatic test cases and stores the test results. The interface device is used for analyzing the information such as analog quantity, switching value, fault parameters and the like through an interface program and then sending the information to the interface device through a private protocol. The interface device analyzes the private protocol and converts the private protocol into information which can be received by the tester, and drives the tester to control the analog quantity, the switching value and the fault parameter information. And the protection device feeds back the test result to the interface device and sends the test result to the control host. The control host includes an automatic test device according to the second embodiment of the present invention, and executes the automatic test method according to the first embodiment of the present invention.
In summary, the present invention relates to an automatic test method, device and system based on a protection device model file, and because the maximum value and the minimum value of a protection model, a protection function configuration and a protection fixed value can be obtained from an ICD (IED capability description file) model file, a test case template of conventional test items such as a protection fixed value precision test, an action time, a fixed value validity and the like can be automatically generated offline under the condition that only the ICD model file exists; for a device running on site, acquiring a device parameter fixed value and a protection fixed value through a device on-line reading device configuration file, importing an automatic test case template, and automatically generating a test case. Therefore, the manufacturing period of the test case is greatly shortened, the test efficiency is improved, and errors such as constant value input and the like caused by human intervention factors are reduced.
It is to be understood that the above-described embodiments of the present invention are merely illustrative of or explanation of the principles of the present invention and are in no way limiting of the invention. Accordingly, any modification, equivalent replacement, improvement, etc. made without departing from the spirit and scope of the present invention should be included in the scope of the present invention. Furthermore, the appended claims are intended to cover all such changes and modifications that fall within the scope and boundary of the appended claims, or equivalents of such scope and boundary.

Claims (8)

1. An automatic test method based on a protection device model file is characterized by comprising the following steps:
s1, receiving a test task, and determining the type of the protection device according to an ICD model file of the protection device;
s2, selecting test items and formulating a test scheme;
s3, judging whether the device is in an online state or an offline state, if the device is in the offline state, executing the step S4, and if the device is in the online state, jumping to the step S5;
s4, obtaining the maximum value and the minimum value of the protection fixed value of the protection device through the ICD model file, and jumping to the step S6;
s5, acquiring a protection fixed value of the protection device by reading a configuration file of the protection device on line, wherein the protection fixed value comprises a system parameter fixed value, a protection fixed value and soft pressing plate information of the protection device;
s6, downloading a protection fixed value to the tester and reading back verification information;
s7, automatically generating a test case and executing the test case;
s8, generating and storing test results.
2. The automatic test method according to claim 1, wherein the step S4 further comprises obtaining a protection model of the protection device.
3. The automated test method of claim 1, wherein the test case comprises one or more of a guard-value accuracy test, an action-time validity, a guard-value validity test.
4. The automatic testing device based on the protection device model file is characterized by comprising a task receiving module, a testing scheme making module, a protection fixed value acquisition module, a protection fixed value downloading module and a testing case generating and executing module; wherein,
the task receiving module is used for receiving a test task and determining the type of the protection device according to the ICD model file of the protection device;
the test scheme making module selects test items and makes a test scheme;
the protection fixed value acquisition module is used for respectively acquiring protection fixed values according to whether the judging device is in an on-line state or an off-line state, wherein the protection fixed values comprise system parameter fixed values, protection fixed values and soft pressing plate information of the protecting device;
the protection fixed value downloading module downloads the protection fixed value to the tester and reads the verification information back;
the test case generating and executing module automatically generates test cases, executes the test cases and generates and stores test results.
5. The automatic test equipment according to claim 4, wherein the protection constant value obtaining module obtains the protection constant value according to whether the judging device is in an on-line state or an off-line state, respectively, and includes:
judging whether the device is in an online state or an offline state, and if the device is in the offline state, acquiring the maximum value and the minimum value of the protection fixed value of the protection device through the ICD model file; and if the protection device is in an on-line state, acquiring a protection fixed value of the protection device by reading the configuration file of the protection device on line.
6. The automatic test equipment of claim 5, wherein the obtaining, via the ICD model file, a maximum value and a minimum value of a protection setting value of a protection device further comprises obtaining a protection model of the protection device.
7. The automatic test equipment of claim 6 wherein the test cases include one or more of a guard-value accuracy test, an action time validity, a guard-value validity test.
8. An automatic test system based on a protection device model file is characterized by comprising a control host, an interface device, a tester and a protection device;
the control host analyzes the analog quantity, the switching quantity and the fault parameter information through an interface program and then sends the analog quantity, the switching quantity and the fault parameter information to the interface device through a private protocol;
the interface device analyzes the private protocol and converts the private protocol into information which can be received by the tester, and drives the tester to control the analog quantity, the switching value and the fault parameter information;
the protection device feeds back a test result to the interface device and sends the test result to the control host;
wherein the control host comprises an automatic test equipment according to any one of claims 4-7, performing an automatic test method according to any one of claims 1-3.
CN202011018610.6A 2020-09-24 2020-09-24 Automatic test method, device and system based on protection device model file Active CN112214403B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011018610.6A CN112214403B (en) 2020-09-24 2020-09-24 Automatic test method, device and system based on protection device model file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011018610.6A CN112214403B (en) 2020-09-24 2020-09-24 Automatic test method, device and system based on protection device model file

Publications (2)

Publication Number Publication Date
CN112214403A CN112214403A (en) 2021-01-12
CN112214403B true CN112214403B (en) 2024-04-16

Family

ID=74051048

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011018610.6A Active CN112214403B (en) 2020-09-24 2020-09-24 Automatic test method, device and system based on protection device model file

Country Status (1)

Country Link
CN (1) CN112214403B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107085159A (en) * 2017-06-22 2017-08-22 国网江苏省电力公司电力科学研究院 GOOSE based on CCD files is inputted to an automatic test approach
CN111579982A (en) * 2020-06-17 2020-08-25 南京太司德智能电气有限公司 Relay protection automatic test system and test method thereof

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11327114B2 (en) * 2018-06-15 2022-05-10 State Grid Hebei Electric Power Research Institute Fully-automatic closed-loop detection method and device for intelligent substation

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107085159A (en) * 2017-06-22 2017-08-22 国网江苏省电力公司电力科学研究院 GOOSE based on CCD files is inputted to an automatic test approach
CN111579982A (en) * 2020-06-17 2020-08-25 南京太司德智能电气有限公司 Relay protection automatic test system and test method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种继电保护自动测试方案实现方法;钱浩;邢海青;韩永强;刘星;张莹;;自动化仪表(05);全文 *

Also Published As

Publication number Publication date
CN112214403A (en) 2021-01-12

Similar Documents

Publication Publication Date Title
CN110427314B (en) Method and system for testing information safety reliability of metering automation terminal
CN103163398B (en) Nuclear power station Berea panel reliability detection system and method
CN105629180A (en) Test method, test device and controller
CN106405286B (en) The automatic test approach and system of quality monitoring device of electrical energy
CN107483283B (en) Communication reliability test method and device
CN109298317A (en) A kind of Intelligent test device and its test method of middle low-frequency channel
CN111983990A (en) Automatic testing platform for basic software
CN110543420A (en) Software testing method, system, terminal and storage medium
CN101876935B (en) Debugging program monitoring method and device
CN114238071A (en) DCS software automatic verification system and method based on digital simulation technology
CN112214403B (en) Automatic test method, device and system based on protection device model file
CN117590135A (en) Test method, test device, test terminal device and storage medium
CN108910642A (en) Elevator debugging information processing method, system, readable storage medium storing program for executing and commissioning device
CN103344850A (en) System and method of intelligent substation automatic testing based on test formwork technology
CN116665748A (en) Automatic test equipment for flash memory chip and test method thereof
CN114879647A (en) ECU fault code test system, electronic controller and car
CN113608089B (en) SOA test method, system and device for switching power supply MOS tube and readable storage medium
CN114817070A (en) Server power software parameter debugging method, system, terminal and storage medium
CN114661615A (en) FPGA software testing method and device
CN109406988B (en) Rapid positioning analysis system and method for simulating abnormal overshoot of IC test
CN113704099A (en) Test script generation method and equipment for spacecraft power system evaluation
CN112346920A (en) Integrated circuit test data analysis method and system
CN110688299A (en) Automatic test platform for application software of nuclear power plant
CN112242858B (en) Method and device for testing carrier communication module of electric energy meter
CN110688298A (en) Nuclear power plant man-machine interaction system automatic testing device based on event driving

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