CN110824279A - Automatic testing system and method for relay protection device - Google Patents
Automatic testing system and method for relay protection device Download PDFInfo
- Publication number
- CN110824279A CN110824279A CN201911122140.5A CN201911122140A CN110824279A CN 110824279 A CN110824279 A CN 110824279A CN 201911122140 A CN201911122140 A CN 201911122140A CN 110824279 A CN110824279 A CN 110824279A
- Authority
- CN
- China
- Prior art keywords
- test
- tested
- matrix switch
- platform
- execution
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01R—MEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
- G01R31/00—Arrangements for testing electric properties; Arrangements for locating electric faults; Arrangements for electrical testing characterised by what is being tested not provided for elsewhere
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Testing Electric Properties And Detecting Electric Faults (AREA)
Abstract
The embodiment of the invention discloses an automatic testing system and method for a relay protection device. The system comprises: the test management platform receives the product requirements of the device to be tested, determines a target test environment, records a test result and performs statistical analysis on the test result; the test execution platform is in communication connection with the test management platform, calls the test cases and the test scripts and controls the tester and the matrix switch in the target test environment; the matrix switch comprises at least two groups of switches, the output end of the tester is electrically connected with each group of switches in the matrix switch, each group of switches is electrically connected with the device to be tested respectively, and the on-state of at least two groups of switches is adjusted; the normally open contact of the intermediate relay is electrically connected with the current input point of the matrix switch and used for current conversion in the test process of the device to be tested; the tester tests the device to be tested and feeds back a test result. The requirement of high-current testing can be met.
Description
Technical Field
The embodiment of the invention relates to a relay protection technology in a power system, in particular to an automatic test system and method for a relay protection device.
Background
With the rapid development of the power system, the scale of the power grid is increasingly large, the network structure of the power system is more complex, and the improvement of the safe operation level of the power system is particularly important. The relay protection device is an important device related to the safe and stable operation of a power grid, and is a third defense line for the safe and stable operation of the power grid, so that the improvement of the quality of a relay protection product in a power system is particularly important.
At present, relay protection product tests of most domestic manufacturers are single function tests based on a protection principle, the tests are mainly completed by means of professional relay protection testers, and system tests at the level of the device need the whole process participation of testers. In recent two years, only a few manufacturers introduce automatic testing tools, the automatic testing technology is applied to the testing work of relay protection products, the existing automatic testing is semi-automatic testing, and manual intervention is needed for downloading programs, modifying partial parameters, changing lines and the like. In general, automatic test tools are designed such that a tester selects a test task according to a test plan, builds a test environment, and then starts automatic testing.
Because the existing automatic test tools are all carried out aiming at a single device, manual wire replacement operation may exist in the test process, and in the test process, a circuit in the measurement and control tool cannot meet the test requirement of applying large current for a short time.
Disclosure of Invention
The invention provides an automatic testing system and method for a relay protection device, which can meet the requirement of high-current testing.
In a first aspect, an embodiment of the present invention provides an automatic testing system for a relay protection device, where the system includes: the system comprises a test management platform, a test execution platform, a tester and a matrix switch;
the test management platform is used for storing and managing test cases, receiving the product requirements of a device to be tested, and determining the target test environment of the product requirements according to the product requirements;
the test execution platform is in communication connection with the test management platform and is used for calling a test case required by the device to be tested, receiving a test script required by the device to be tested and controlling a tester and a matrix switch in the target test environment to test the device to be tested based on the test case and the test script;
the matrix switch comprises at least two groups of switches, the output end of the tester is electrically connected with each group of switches in the matrix switch, each group of switches is electrically connected with the device to be tested respectively, and the matrix switch adjusts the on states of the at least two groups of switches according to the control of the test execution platform;
the normally open contacts of the intermediate relays are electrically connected with the current input points of the matrix switch and are used for current conversion in the test process of the device to be tested;
the tester tests the device to be tested based on the matrix switch and feeds back a test result to the test management platform;
and the test management platform records the test result, performs statistical analysis on the test result and calculates the test index.
In a second aspect, an embodiment of the present invention further provides an automatic testing method for a relay protection device, where the method includes:
receiving a product requirement of a device to be tested based on a test management platform, and determining a target test environment of the product requirement according to the product requirement;
calling a test case required by the device to be tested based on a test execution platform, receiving a test script required by the device to be tested, and controlling a tester and a matrix switch in the target test environment to test the device to be tested based on the test case and the test script, wherein the matrix switch comprises at least two groups of switches, the output end of the tester is electrically connected with each group of switches in the matrix switch, each group of switches is electrically connected with the device to be tested respectively, and the matrix switch adjusts the on states of the at least two groups of switches according to the test script; the normally open contacts of the intermediate relays are electrically connected with the current input points of the matrix switch and are used for current conversion in the test process of the device to be tested;
testing the device to be tested through the matrix switch based on the tester;
and recording a test result based on the test management platform, performing statistical analysis on the test result, and calculating a test index.
The embodiment of the invention receives the product requirement of the device to be tested through the test management platform, and constructs a test environment according to the received product requirement of the device to be tested; the test execution platform controls the on state of the matrix switch based on the test case and the test script by calling the test case and the test script required by the device to be tested; the matrix switch is provided with an intermediate relay for current conversion in the test process of the device to be tested, so that the passing of large current in the test process is ensured; the tester tests the device to be tested based on the matrix switch, feeds back the test result to the test management platform, and the test management platform performs statistical analysis on the test result and calculates the test index. The effect of meeting the requirement of a high-current test is realized.
Drawings
Fig. 1 is a schematic structural diagram of an automatic testing system of a relay protection device according to a first embodiment of the present invention;
FIG. 2 is a schematic diagram of a matrix switch in accordance with a first embodiment of the present invention;
FIG. 3 is a schematic diagram of switching current channels of a matrix switch according to a first embodiment of the present invention;
fig. 4 is a flowchart of an automatic testing method for a relay protection device according to a second embodiment of the present invention;
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a schematic structural diagram of an automatic testing system of a relay protection device according to an embodiment of the present invention, and as shown in fig. 1, the system includes: a test management platform 11, a test execution platform 12, a tester 13 and a matrix switch 14.
Illustratively, in the automatic test system for the relay protection device, the test management platform 11 determines a target test environment of a received product requirement of the device to be tested according to the product requirement, and the test execution platform calls a test case stored in the test management platform, receives a test script, controls a tester and a matrix switch in the target test environment, and tests the device to be tested.
And the test management platform 11 is used for storing and managing the test cases, receiving the product requirements of the device to be tested, and determining the target test environment of the product requirements according to the product requirements.
Illustratively, when a product requirement of a device to be tested provided by a user is received, a programmer compiles a test case for the received test task, stores the compiled test case in a test management platform, and determines test equipment required by the product requirement according to the received product requirement.
Exemplary, product requirements include, but are not limited to: subject, source, product/module, review and priority. The theme is a received test theme that needs to test the device under test, for example, the theme may be to replace a certain component of the device under test; the source is a test theme for any device to be tested, the source of the test theme can be a national standard for coming out of the platform or a requirement provided by a user, for example, the theme is to replace a certain part of the device to be tested, and the national standard issued by the country at a certain time for the part, namely the national standard to be met by the part; the product/module to which the test subject belongs is a functional module to which a place which needs to be improved belongs, for example, the subject is to replace a certain part of the device to be tested, the part is used for collecting the current amount in the test process, and then the module to which the part belongs is a collecting module; the review condition is that aiming at the received theme and source, the test manager reviews the feasibility of the test task aiming at the theme, for example, the theme is to replace a certain part of the device to be tested, the part is used for collecting the current amount in the test process, according to the national standard, the current to be passed by the part cannot be higher than 10A, but if the current to be passed by the replaced part is 12A after the part is replaced according to the theme, the test task is not executable; the priority is to different subjects in a test task, and the test manager sorts the different subjects according to the importance degree of the evaluation condition of the task, and when testing, the task with the front ranking is tested first.
For example, the target test environment is directed to a test task, which is a test task of a test device required in a test process, for example, the subject is to replace a certain part of the device under test, the part is used for collecting current during the test process, and a tester, a circuit meter and other devices are required during the test process.
In the technical scheme, the advantage of setting the test management platform is that test managers can design the test to be carried out on the device to be tested in advance according to the theme, the source, the affiliated module, the review condition and the priority aiming at the product requirement of the device to be tested in advance according to the received product requirement of the device to be tested, so that the required test equipment of the product requirement is determined, and the test accuracy and the test efficiency are improved. And the test management platform stores the test cases corresponding to the received product requirements of the device to be tested, so that a uniform case library is formed, and test management personnel and test execution personnel can conveniently inquire and maintain through a Web browser.
And the test execution platform 12 is in communication connection with the test management platform 11 and is used for calling a test case required by the device to be tested, receiving a test script required by the device to be tested, and controlling the tester 13 and the matrix switch 14 in the target test environment to test the device to be tested based on the test case and the test script.
Illustratively, the test execution platform calls the test cases stored in the test management platform according to a test case calling instruction input by a user, receives a test script matched with the received product requirement of the device to be tested, wherein the test script can be compiled by programmers according to the product requirement, can also be stored in a test script database, controls a tester and a matrix switch in a target test environment based on the test script, and specifically controls the tester and the matrix switch to be turned off and on, controls the tester and the matrix switch based on the test case, and tests the device to be tested by the test case.
In the technical scheme of the implementation, the advantage of setting the test execution platform is that the test executive personnel can control the tester and the matrix switch based on the test case and the test script by calling the test case and the test script, and test the device to be tested based on the control of the tester and the matrix switch and the test case, so that the automatic control of the tester and the matrix switch is realized, the manual operation is not needed to control the tester and the matrix switch, and the test efficiency is improved.
The matrix switch 14 includes at least two groups of switches, the output end of the tester 13 is electrically connected with each group of switches in the matrix switch 14, each group of switches is electrically connected with the device to be tested, and the matrix switch 14 adjusts the on-state of the at least two groups of switches according to the control of the test execution platform 12.
Illustratively, the matrix switch includes at least two groups of switches for controlling different devices under test, and the matrix switch adjusts the on-state of each group of switches in the matrix switch according to the control of the test script on the tester and the matrix switch in the test execution platform. For example, fig. 2 is a schematic diagram of a matrix switch, and as shown in fig. 2, the matrix switch includes two sets of switches, one set of switches is D1, D3 and D5, and the other set of switches is D2, D4 and D6, the two sets of switches are used for controlling different devices under test, a voltage output terminal of the tester and a voltage input terminal of the device under test are respectively connected to corresponding positions of the matrix switch by wires, and the matrix switch receives a control command generated according to a test script by the test execution platform, where the control command includes connection states of the switches in the matrix switch, and executes the control command to adjust on states of the switches in the matrix switch. For example, when the D1, D3, and D5 switches of the matrix switch are turned on, the three-phase voltage of the tester is connected to the device under test 1 to test the device under test 1, and similarly, when the D2, D4, and D6 switches are turned off, the three-phase voltage of the tester is connected to the device under test 2 to test the device under test 2. It should be noted that fig. 2 is only an exemplary diagram of a matrix switch, and in other embodiments, the matrix switch may include more than two groups of switches, so that more than two devices under test can be tested simultaneously.
In the technical scheme of the implementation, the matrix switch is arranged, because the existing single device to be tested needs a large amount of analog and digital input signals, but the number of channels of the analog and switching values of the single conventional tester is very limited, and a tester needs to test by repeatedly and manually replacing input and output signal lines.
An intermediate relay 140 is arranged in each group of switches of the matrix switch 14, and a normally open contact of the intermediate relay 140 is electrically connected with a current input point of the matrix switch 14 and used for current conversion in the test process of the device to be tested.
Optionally, the matrix switch further includes at least two control switches, and the control switches are respectively electrically connected to the coil corresponding to each group switch in the intermediate relay 140, where when any one of the control switches is turned on according to the control of the test execution platform 12, the coil of the intermediate relay 140 connected to the control switch is powered on, and the group switch corresponding to the powered coil is controlled to be turned on.
Illustratively, each group of switches of the matrix switch is provided with an intermediate relay, the intermediate relays may be electromagnetic relays, each switch in each group of switches in the matrix switch is electrically connected with one intermediate relay, a normally open contact of each intermediate relay is electrically connected with a current input point of each switch in each group of switches in the matrix switch, at least two control switches in the matrix switch are respectively electrically connected with a coil corresponding to each group of switches in the intermediate relays, according to a control instruction sent by the test execution platform 12, when any control switch is switched on, a coil of the intermediate relay connected with the control switch is powered on, and when the coil is powered on, a group of switches corresponding to the powered coil are switched on, so that automatic control of the on state of each group of switches in the matrix switch is realized.
For example, fig. 3 is a schematic diagram of switching current channels of a matrix switch, as shown in fig. 3, the matrix switch further includes at least two control switches K1 and K2, each of a set of switches D1, D3 and D5 in the matrix switch is electrically connected to an intermediate relay, each of another set of switches D2, D4 and D6 in the matrix switch is electrically connected to an intermediate relay, each intermediate relay has a coil J1, J2, J3, J4, J5 and J5 inside, each control switch is electrically connected to a coil corresponding to each set of switches in the intermediate relays, when the control switch K5 is closed, the coils J5, J5 and J5 electrically connected to the control switch K5 are energized, and further normally open contacts Q5, Q5 and Q5 of the intermediate relays including the coils J5, J5 and J5 are electrically connected to the switches D5, D5 and D5 of the matrix switch, and the control switch D5 of the matrix switch, D3 and D5 were closed.
It should be noted that the intermediate relay in the present invention is a high-power intermediate relay, and the normally open contacts electrically connected to each group of switches of the matrix switch of the high-power intermediate relay can test the device to be tested through a large current. Because the capacity of the existing relay is DC220V, 5A, after the electromagnetic intermediate relay is added, the coil working voltage of the electromagnetic relay is DC220V, when the two ends of the coil are connected with the DC220V voltage, the normally open contact on the intermediate relay is closed, and the normally open contact can pass 20A current, so that the relay which originally can only pass 5A current can be realized, and 20A current can be passed at present.
In the technical scheme of the implementation, the intermediate relay is arranged in the matrix switch, so that the purpose of converting the small current in the test process into the large current is realized, the current in the matrix switch can be kept at 20A for a long time in the whole test process, the automatic switching of a current channel is realized, and the requirement of large current test can be met.
The tester 13 tests the device under test based on the matrix switch 14, and feeds back the test result to the test management platform 11.
Illustratively, the tester and the matrix switch are controlled based on the test execution platform, the matrix switch is communicated with the device to be tested and the tester according to the control of the test execution platform, the tester is started and tests the device to be tested based on the control of the test execution platform, and after the test is finished, a test result is fed back to the test management platform.
And the test management platform 11 records the test result, performs statistical analysis on the test result, and calculates the test index.
Illustratively, the test management receives the test result fed back by the tester, records and stores the test result, performs statistical analysis on the test result, and calculates the test index.
Exemplarily, the test indexes are standards corresponding to the test results, optionally, the test indexes may be, but are not limited to, a test case passing rate, a test execution coverage rate, a key risk module, and the like, and the test case passing rate is a proportion of the test cases that have passed in the current use to the total number of the cases in the current use; the test execution coverage rate is the proportion of the used test cases in the total cases according to the received test tasks; the key risk module is used for counting according to the modules of all the failed test cases executed at this time, if the number of the failed test cases of a certain module is large, the module is judged to be the key risk module, developers need to check the codes of the module in a key mode, and need to verify in a key mode when testing in the next round.
On the basis of the embodiment, the system further comprises a version management server, a version construction server, a PC and an SVN server. The version management server is in communication connection with the test management platform 11, and is used for receiving an externally input product requirement of the device to be tested and sending the product requirement to the test management platform 11; the version construction server is in communication connection with the test management platform 11 and is used for constructing codes related to product requirements of the device to be tested into a program version to be tested by software developers and informing the test management platform 11 after the codes are successfully constructed; the PC is in communication connection with the test management platform 11 and the SVN server, according to the determined product requirements, testers develop test cases on the PC through a web browser and store the test cases in the test management platform 11, and aiming at the test cases capable of realizing automatic testing, the testers develop test scripts according to the test cases capable of realizing automatic testing, store the test scripts in the SVN server and send the test cases to the test management platform 11; and the SVN server is used for storing the test script sent by the PC.
Illustratively, a version management server receives product requirements of a device to be tested input from outside, the version management server sends the product requirements of the device to be tested to a test management platform, a tester writes test cases and test scripts corresponding to the product requirements of the device to be tested on a PC according to the received product requirements of the device to be tested, stores the test scripts in an SVN server, stores the test cases in the test management platform, meanwhile, a device developer writes and debugs codes corresponding to the product requirements of the device to be tested according to the product requirements, sends the codes to the SVN server for storage, and a version construction server automatically starts to compile latest codes according to a predetermined version number to construct a version of the program to be tested. The version number is self-defined by a device developer by adopting the combination of numbers and/or letters according to product requirements, and the test execution platform controls a tester and a matrix switch in a test environment according to a test case and a test script so as to test the device to be tested.
In the technical scheme of the implementation, the version management server, the version construction server, the PC and the SVN server are arranged in the system, and the advantage that the system automatically tests the test tasks by dividing the work of each device after receiving the test tasks is achieved, so that the system testing efficiency is improved, and the automatic testing of the system is realized.
On the basis of the above embodiment, the test management platform 11 includes: the device comprises a test requirement management module, a test design management module, a test case management module, a test execution management module and a test result statistical analysis module. The device comprises a test demand management module, a test demand management module and a test demand management module, wherein the test demand management module is used for receiving and storing product demands of a device to be tested; the test design management module is used for determining a target test environment corresponding to the product requirement based on the product requirement; the test case management module is used for managing and maintaining the test cases, associating the test cases with the test scripts and storing the mapping relation between the test cases and the test scripts; the test execution management module is in communication connection with the test execution platform and is used for managing the test version and transmitting the test case and the test script corresponding to the test version to the test execution platform 12; the test result statistical analysis module is in communication connection with the test execution platform 12, and is configured to receive the test result sent by the test execution platform 12, perform statistical analysis based on the test result, and calculate a test index, where the test index includes: test case passing rate, test execution coverage rate and key risk points.
Illustratively, based on the product requirement of the device to be tested received by the test requirement management module, the test design management module constructs a target test environment corresponding to the product requirement of the device to be tested, based on the PC receiving the externally input test case and test script corresponding to the product requirement received by the version management server, the test case management module associates the test case with the test script and stores the mapping relation of the test case and the test script, one of the test cases at least comprises a test script, the test execution management module transmits the test case and the test script corresponding to the test version constructed by the test version construction server to the test execution platform, after the test execution platform tests the device to be tested, and carrying out statistical analysis on the test result by using the test result statistical analysis module, and calculating the test index.
In the technical solution of the above embodiment, the advantage of providing the test requirement management module, the test design management module, the test case management module, the test execution management module, and the test result statistical analysis module is that the test management platform performs labor division management on the received test tasks, thereby improving the efficiency of system test and realizing the automatic test of the system.
Optionally, the test execution platform 12 includes: the system comprises a scheduling execution module, an environment management module and an operation monitoring module. The scheduling execution module is used for determining the execution sequence of the test tasks based on the priority of the test versions and the target test environment, and calling the corresponding test versions according to the execution sequence of the test tasks; the environment management module is in communication connection with the tester 13 and the matrix switch 14 and is used for controlling the tester 13 and the matrix switch 14 in the target test environment based on the target test environment determined by the scheduling execution module and based on the test case and the test script of the test version so as to test the device to be tested; and the operation monitoring module is in communication connection with the test management platform 11, the tester 13 and the matrix switch 14 respectively, and is used for recording data of the matrix switch 14 and test result data in the test process and feeding back the test data to the test management platform 11.
Illustratively, an execution sequence of the test tasks is determined based on the priority of the test versions and a target test environment, the corresponding test versions are called by a scheduling execution module according to the execution sequence of the test tasks, the environment management module controls a tester and a matrix switch in the target test environment based on a test case and a test script of the test versions to test the device to be tested, and in the test process, the operation monitoring module monitors data of the matrix switch and test result data in real time and feeds the test data back to the test management platform for storage.
In the technical scheme of the embodiment, the scheduling execution module, the environment management module and the operation monitoring module are arranged, so that the test execution platform performs automatic testing on received test tasks in a labor division manner, automatic testing is performed from the time when research and development personnel submit test versions, functions of automatic line changing of a conventional device, automatic downloading of a program of a device to be tested, parameter initialization, constant value initialization and the like are realized, the automation of the whole testing process is achieved, and the efficiency of system testing is improved. And the testing process is monitored in real time, the reliability of automatic testing is enhanced, and the accuracy and the reliability of system testing are improved.
Optionally, the operation monitoring module is further configured to monitor an abnormal point when the test execution process is abnormal, and feed back alarm information including the abnormal point to the test management platform 11, where the alarm information is used to prompt the test execution platform 12 to test the device under test again.
Illustratively, when an abnormality occurs in the test process, the operation monitoring module can monitor the abnormal point, form alarm information, send the alarm information to the test management platform, and the test management platform records the abnormal point and sends the abnormal point to the test execution platform according to the received alarm information, so that the test execution platform terminates the test and tests the device to be tested again.
In the technical scheme of the embodiment, the operation monitoring module can monitor the abnormal point and form alarm information, and the set method has the advantages of automatically finding the problems, prompting testers, solving the problems as soon as possible and improving the efficiency and reliability of system testing.
According to the technical scheme, the product requirement of the device to be tested is received through the test management platform, and a test environment is established according to the received product requirement of the device to be tested; the test execution platform controls the on state of the matrix switch based on the test case and the test script by calling the test case and the test script required by the device to be tested; the matrix switch is provided with an intermediate relay for current conversion in the test process of the device to be tested, so that the passing of large current in the test process is ensured; the tester tests the device to be tested based on the matrix switch, feeds back the test result to the test management platform, and the test management platform performs statistical analysis on the test result and calculates the test index. The effect of meeting the requirement of a high-current test is realized.
Example two
Fig. 4 is a flowchart of an automatic testing method for a relay protection device according to a second embodiment of the present invention, where this embodiment is applicable to a situation of testing a relay protection device, and the method may be executed by an automatic testing system for a relay protection device, where the testing system may be implemented by software and/or hardware, and specifically includes the following steps:
s410, receiving a product requirement of a device to be tested based on a test management platform, and determining a target test environment of the product requirement according to the product requirement.
In the technical scheme of the embodiment, the test management platform receives the product requirement of the device to be tested, and determines the target test environment of the product requirement according to the product requirement, so that the advantage of setting is that test cases and test scripts can be developed according to the received product requirement of the device to be tested and aiming at the product requirement of the device to be tested in advance by test managers, and the test environment is set up, so that the test accuracy and the test efficiency are improved. And the test management platform stores the test cases corresponding to the received product requirements of the device to be tested, so that a uniform case library is formed, and test management personnel and test execution personnel can conveniently inquire and maintain through a Web browser.
And S420, calling a test case required by the device to be tested based on a test execution platform, receiving a test script required by the device to be tested, and controlling a tester and a matrix switch in the target test environment to test the device to be tested based on the test case and the test script.
In the technical scheme of the embodiment, the test execution platform calls the test case required by the device to be tested, receives the test script required by the device to be tested, and controls the tester and the matrix switch in the target test environment to test the device to be tested based on the test case and the test script.
Optionally, the method includes calling a test case required by the device to be tested based on a test management platform, receiving a test script required by the device to be tested, and controlling a tester and a matrix switch in the target test environment to test the device to be tested based on the test case and the test script, and includes: determining an execution sequence of the test tasks based on the test execution platform according to the priority of the test version and the target test environment, and calling the corresponding test version according to the execution sequence of the test tasks; controlling a tester and a matrix switch in the target test environment based on the test execution platform according to the determined target test environment and based on the test case and the test script of the test version so as to test the device to be tested; and recording the data of the matrix switch and the test result data in the test process based on the test execution platform.
In the technical solution of the above embodiment, an execution sequence of the test tasks is determined based on the test execution platform according to the priority of the test version and the target test environment, and the corresponding test version is called according to the execution sequence of the test tasks; controlling a tester and a matrix switch in the target test environment based on the test execution platform according to the determined target test environment and based on the test case and the test script of the test version so as to test the device to be tested; based on the test execution platform, the data of the matrix switch and the test result data in the test process are recorded, so that the automatic test is carried out from the beginning of submitting a test version by research personnel, the functions of automatic wire changing of a conventional device, automatic downloading of a program of a device to be tested, parameter initialization, constant value initialization and the like are realized, the automation of the whole test process is achieved, and the efficiency of system test is improved. And the testing process is monitored in real time, the reliability of automatic testing is enhanced, and the accuracy and the reliability of system testing are improved.
Optionally, the matrix switch includes at least two groups of switches, an output end of the tester is electrically connected with each group of switches in the matrix switch, each group of switches is electrically connected with the device to be tested, and the matrix switch adjusts the on states of the at least two groups of switches according to the test script; and an intermediate relay is arranged in each group of switches of the matrix switch, and a normally open contact of the intermediate relay is electrically connected with a current input point of the matrix switch and used for current conversion in the test process of the device to be tested.
And S430, testing the device to be tested through the matrix switch based on the tester.
And S440, recording a test result based on the test management platform, performing statistical analysis on the test result, and calculating a test index.
On the basis of the above embodiment, the method further includes:
based on the product requirement of the device under test that the test management platform receives external input,
receiving an externally input test case and test script according to the received product requirement, constructing a server based on the version, and automatically compiling codes corresponding to the product requirement and constructing a test version;
receiving the test case and the test script corresponding to the test version and input from the outside based on a test management platform, associating the test case with the test script, and storing the mapping relation between the test case and the test script.
On the basis of the above embodiment, the method further includes:
and monitoring abnormal points when the test execution process is abnormal based on the test execution platform to form alarm information containing the abnormal points, wherein the alarm information is used for prompting to test the device to be tested again.
According to the technical scheme of the embodiment, a product requirement of the device to be tested is received, a target test environment of the product requirement is established according to the product requirement, a test case required by the device to be tested is called, a test script required by the device to be tested is received, and a tester and a matrix switch in the target test environment are controlled to test the device to be tested based on the test case and the test script; the tester tests the device to be tested based on the matrix switch; and recording the test result, performing statistical analysis on the test result, and calculating the test index. The effect of meeting the requirement of a high-current test is realized.
It should be noted that, in the embodiment of the automatic testing system for a relay protection device, the units and modules included in the system are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (10)
1. An automatic testing system for a relay protection device, comprising: the system comprises a test management platform, a test execution platform, a tester and a matrix switch;
the test management platform is used for storing and managing test cases, receiving the product requirements of a device to be tested, and determining the target test environment of the product requirements according to the product requirements;
the test execution platform is in communication connection with the test management platform and is used for calling a test case required by the device to be tested, receiving a test script required by the device to be tested and controlling a tester and a matrix switch in the target test environment to test the device to be tested based on the test case and the test script;
the matrix switch comprises at least two groups of switches, the output end of the tester is electrically connected with each group of switches in the matrix switch, each group of switches is electrically connected with the device to be tested respectively, and the matrix switch adjusts the on states of the at least two groups of switches according to the control of the test execution platform;
the normally open contacts of the intermediate relays are electrically connected with the current input points of the matrix switch and are used for current conversion in the test process of the device to be tested;
the tester tests the device to be tested based on the matrix switch and feeds back a test result to the test management platform;
and the test management platform records the test result, performs statistical analysis on the test result and calculates the test index.
2. The method according to claim 1, wherein the matrix switch further comprises at least two control switches, the control switches are respectively electrically connected with the coil corresponding to each group switch in the intermediate relay, and when any one of the control switches is turned on according to the control of the test execution platform, the coil of the intermediate relay connected with the control switch is electrified, and the group switch corresponding to the electrified coil is controlled to be turned on.
3. The system of claim 1, further comprising a version management server, a version build server, a PC, and an SVN server, wherein:
the version management server is in communication connection with the test management platform and is used for receiving an externally input product requirement of the device to be tested and sending the product requirement to the test management platform;
the version construction server is respectively in communication connection with the version management server and the test management platform, and is used for constructing a test version corresponding to the product requirement according to the product requirement received by the version management server and sending the test version to the test management platform;
the PC is in communication connection with the test management platform and the SVN server and is used for receiving the test case and the test script which are input from the outside and correspond to the product requirement received by the version management server, sending the test case to the test management platform and sending the test script to the SVN server;
and the SVN server is used for storing the test script sent by the PC.
4. The system of claim 1, wherein the test management platform comprises: the test system comprises a test demand management module, a test design management module, a test case management module, a test execution management module and a test result statistical analysis module;
the test demand management module is used for receiving and storing the product demand of the device to be tested;
the test design management module determines a target test environment corresponding to the product demand based on the product demand;
the test case management module is used for managing and maintaining a test case, associating the test case with the test script and storing the mapping relation between the test case and the test script;
the test execution management module is in communication connection with the test execution platform and is used for managing a test version and transmitting a test case and a test script corresponding to the test version to the test execution platform;
the test result statistical analysis module is in communication connection with the test execution platform, and is configured to receive the test result sent by the test execution platform, perform statistical analysis based on the test result, and calculate a test index, where the test index includes: the test case passing rate, the test execution coverage rate and the key risk points.
5. The system of claim 1, wherein the test execution platform comprises: the system comprises a scheduling execution module, an environment management module and an operation monitoring module;
the scheduling execution module is used for determining the execution sequence of the test tasks based on the priority of the test versions and the target test environment, and calling the corresponding test versions according to the execution sequence of the test tasks;
the environment management module is in communication connection with the tester and the matrix switch, and is used for controlling the tester and the matrix switch in the target test environment based on the test case and the test script of the test version based on the target test environment determined by the scheduling execution module so as to test the device to be tested;
the operation monitoring module is respectively in communication connection with the test management platform, the tester and the matrix switch, and is used for recording data of the matrix switch and test result data in a test process and feeding back the test data to the test management platform.
6. The system according to claim 5, wherein the operation monitoring module is further configured to monitor an abnormal point when an abnormality occurs in the test execution process, and feed back alarm information including the abnormal point to the test management platform, where the alarm information is used to prompt the test execution platform to perform a new test on the device under test.
7. An automatic testing method for a relay protection device is characterized by comprising the following steps:
receiving a product requirement of a device to be tested based on a test management platform, and determining a target test environment of the product requirement according to the product requirement;
calling a test case required by the device to be tested based on a test execution platform, receiving a test script required by the device to be tested, and controlling a tester and a matrix switch in the target test environment to test the device to be tested based on the test case and the test script, wherein the matrix switch comprises at least two groups of switches, the output end of the tester is electrically connected with each group of switches in the matrix switch, each group of switches is electrically connected with the device to be tested respectively, and the matrix switch adjusts the on states of the at least two groups of switches according to the test script; the normally open contacts of the intermediate relays are electrically connected with the current input points of the matrix switch and are used for current conversion in the test process of the device to be tested;
testing the device to be tested through the matrix switch based on the tester;
and recording a test result based on the test management platform, performing statistical analysis on the test result, and calculating a test index.
8. The method of claim 7, further comprising:
receiving an externally input product requirement of a device to be tested based on a test management platform, and constructing a test version corresponding to the product requirement according to the received product requirement;
receiving the test case and the test script corresponding to the test version and input from the outside based on a test management platform, associating the test case with the test script, and storing the mapping relation between the test case and the test script.
9. The method of claim 7, wherein the invoking a test case required by the device under test based on the test execution platform, receiving a test script required by the device under test, and controlling a tester and a matrix switch in the target test environment to test the device under test based on the test case and the test script comprises:
determining an execution sequence of the test tasks based on the test execution platform according to the priority of the test version and the target test environment, and calling the corresponding test version according to the execution sequence of the test tasks;
controlling a tester and a matrix switch in the target test environment based on the test execution platform according to the determined target test environment and based on the test case and the test script of the test version so as to test the device to be tested;
and recording the data of the matrix switch and the test result data in the test process based on the test execution platform.
10. The method of claim 7, further comprising:
and monitoring abnormal points when the test execution process is abnormal based on the test execution platform to form alarm information containing the abnormal points, wherein the alarm information is used for prompting to test the device to be tested again.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911122140.5A CN110824279A (en) | 2019-11-15 | 2019-11-15 | Automatic testing system and method for relay protection device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911122140.5A CN110824279A (en) | 2019-11-15 | 2019-11-15 | Automatic testing system and method for relay protection device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110824279A true CN110824279A (en) | 2020-02-21 |
Family
ID=69556038
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911122140.5A Pending CN110824279A (en) | 2019-11-15 | 2019-11-15 | Automatic testing system and method for relay protection device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110824279A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111458586A (en) * | 2020-04-16 | 2020-07-28 | 国网湖南省电力有限公司 | Batch synchronous detection method and system for multi-interval in-situ line protection device of intelligent substation |
CN113640611A (en) * | 2021-09-18 | 2021-11-12 | 威胜电气有限公司 | Production automation test system |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102323499A (en) * | 2011-06-15 | 2012-01-18 | 北京四方继保自动化股份有限公司 | Method for automatically testing relay protection equipment |
CN202267716U (en) * | 2011-09-26 | 2012-06-06 | 国电南京自动化股份有限公司 | Test system of CPU plug-in unit used for relay protection measurement and control apparatus |
CN103675529A (en) * | 2013-11-26 | 2014-03-26 | 许继电气股份有限公司 | Feature word based automatic testing method and device for relay protection devices |
CN103809051A (en) * | 2012-11-13 | 2014-05-21 | 上海斐讯数据通信技术有限公司 | Automatic test system and switch matrix and detection method thereof in automatic test system |
CN104101804A (en) * | 2014-07-15 | 2014-10-15 | 国家电网公司 | Relay protection testing and simulation control device |
CN105572515A (en) * | 2016-02-03 | 2016-05-11 | 中广核核电运营有限公司 | Nuclear power station inverter phase comparison card working performance testing system and testing method |
CN105572564A (en) * | 2015-12-17 | 2016-05-11 | 中广核核电运营有限公司 | Nuclear power station nuclear-grade inverter card integrated testing system and method |
CN105699826A (en) * | 2016-04-06 | 2016-06-22 | 中国电子科技集团公司第十三研究所 | Microwave device automatic testing system and method |
CN206990753U (en) * | 2017-06-15 | 2018-02-09 | 武汉市豪迈电力自动化技术有限责任公司 | Relay protection test device based on mobile platform |
CN207020264U (en) * | 2017-08-07 | 2018-02-16 | 许继集团有限公司 | Suitable for the detecting system of protective relaying device |
CN207181540U (en) * | 2017-05-25 | 2018-04-03 | 贵州电网有限责任公司电力科学研究院 | A kind of protective relaying device exports matrix test device |
CN108414849A (en) * | 2018-01-16 | 2018-08-17 | 国网浙江宁波市鄞州区供电有限公司 | Intelligent substation automatization test system and method |
CN209198613U (en) * | 2018-10-17 | 2019-08-02 | 广东中成卫星微电子发展有限公司 | A kind of IC chip electrical characteristic automatic testing equipment |
-
2019
- 2019-11-15 CN CN201911122140.5A patent/CN110824279A/en active Pending
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102323499A (en) * | 2011-06-15 | 2012-01-18 | 北京四方继保自动化股份有限公司 | Method for automatically testing relay protection equipment |
CN202267716U (en) * | 2011-09-26 | 2012-06-06 | 国电南京自动化股份有限公司 | Test system of CPU plug-in unit used for relay protection measurement and control apparatus |
CN103809051A (en) * | 2012-11-13 | 2014-05-21 | 上海斐讯数据通信技术有限公司 | Automatic test system and switch matrix and detection method thereof in automatic test system |
CN103675529A (en) * | 2013-11-26 | 2014-03-26 | 许继电气股份有限公司 | Feature word based automatic testing method and device for relay protection devices |
CN104101804A (en) * | 2014-07-15 | 2014-10-15 | 国家电网公司 | Relay protection testing and simulation control device |
CN105572564A (en) * | 2015-12-17 | 2016-05-11 | 中广核核电运营有限公司 | Nuclear power station nuclear-grade inverter card integrated testing system and method |
CN105572515A (en) * | 2016-02-03 | 2016-05-11 | 中广核核电运营有限公司 | Nuclear power station inverter phase comparison card working performance testing system and testing method |
CN105699826A (en) * | 2016-04-06 | 2016-06-22 | 中国电子科技集团公司第十三研究所 | Microwave device automatic testing system and method |
CN207181540U (en) * | 2017-05-25 | 2018-04-03 | 贵州电网有限责任公司电力科学研究院 | A kind of protective relaying device exports matrix test device |
CN206990753U (en) * | 2017-06-15 | 2018-02-09 | 武汉市豪迈电力自动化技术有限责任公司 | Relay protection test device based on mobile platform |
CN207020264U (en) * | 2017-08-07 | 2018-02-16 | 许继集团有限公司 | Suitable for the detecting system of protective relaying device |
CN108414849A (en) * | 2018-01-16 | 2018-08-17 | 国网浙江宁波市鄞州区供电有限公司 | Intelligent substation automatization test system and method |
CN209198613U (en) * | 2018-10-17 | 2019-08-02 | 广东中成卫星微电子发展有限公司 | A kind of IC chip electrical characteristic automatic testing equipment |
Non-Patent Citations (1)
Title |
---|
张著韬 等: "继电保护装置智能自动化测试系统研究与设计", 《科技创新导报》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111458586A (en) * | 2020-04-16 | 2020-07-28 | 国网湖南省电力有限公司 | Batch synchronous detection method and system for multi-interval in-situ line protection device of intelligent substation |
CN111458586B (en) * | 2020-04-16 | 2022-09-16 | 国网湖南省电力有限公司 | Batch synchronous detection method and system for multi-interval in-situ line protection device of intelligent substation |
CN113640611A (en) * | 2021-09-18 | 2021-11-12 | 威胜电气有限公司 | Production automation test system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103365770B (en) | Mobile terminal software test macro and method for testing software | |
CN111459794A (en) | Communication network testing method, device, computer equipment and storage medium | |
CN107505520B (en) | Scene type intelligent automatic test platform and method | |
CN102323499A (en) | Method for automatically testing relay protection equipment | |
CN108776278B (en) | Topological-associated configuration type relay protection test system and method | |
CN105223897A (en) | A kind of rolling stock electrical control cabinet proving installation and method of testing | |
CN112231228B (en) | Firmware upgrade test method, device, platform, equipment and storage medium | |
CN110824279A (en) | Automatic testing system and method for relay protection device | |
US20170082670A1 (en) | Distributed Test Method Applicable to System-Level Test of Intelligent High Voltage Equipment | |
CN112115044A (en) | Automatic testing method and system for electric power information communication equipment | |
US7253606B2 (en) | Framework that maximizes the usage of testhead resources in in-circuit test system | |
CN117579672A (en) | Radio frequency automatic comprehensive test platform and test method based on python | |
CN113064826A (en) | Automatic test platform of high-voltage SVG product based on RT-LAB | |
CN113778903B (en) | Method and system for generating test case of power distribution terminal and storage medium | |
CN112925705B (en) | Unmanned-duty-based carrier rocket flight software acceptance method and system | |
CN111880134B (en) | Method and device for testing quality abnormity of electronic transformer measurement system | |
CN116737803B (en) | Visual data mining arrangement method based on directed acyclic graph | |
CN113434405A (en) | Method and device for determining test file, storage medium and electronic device | |
CN117858126A (en) | Router Wi-Fi aging test method and device, computer equipment and storage medium | |
US20220268843A1 (en) | Battery analysis apparatus and method | |
CN108983083A (en) | Electric tool switch debugging control program, apparatus and system | |
CN116298574A (en) | On-site self-service acceptance device, system and method for power distribution automation terminal | |
CN110955222B (en) | Test method and test system of engine data recorder | |
CN114826993A (en) | Electric energy meter module simulation test system | |
CN110662242B (en) | Antenna feeder system detection method, network management equipment and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200221 |
|
RJ01 | Rejection of invention patent application after publication |