Test case generation method and device, equipment, storage medium and program product

By obtaining the mapping relationship between the degradation indicators of the power distribution terminal and the atomic test template, test cases with strong pertinence and high timeliness are generated, which solves the problems of low pertinence and poor timeliness in the maintenance of power distribution terminals and improves test efficiency.

CN118795248APending Publication Date: 2024-10-18GUANGDONG POWER GRID CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410836738.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

The existing power distribution terminal maintenance methods have problems such as poor pertinence, poor timeliness, and low efficiency, which puts huge pressure on the operation and maintenance department.

Method used

By obtaining the degradation indicators of the power distribution terminal, the target atomic test template is determined based on the mapping relationship between the indicators and the atomic test template, and a highly targeted and timely test case is generated to achieve efficient testing of the power distribution terminal.

Benefits of technology

It achieves targeted testing of power distribution terminals with high timeliness and high efficiency. It improves the pertinence and efficiency of power distribution terminal testing, reduces manual participation, and improves maintenance efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118795248A_ABST
    Figure CN118795248A_ABST
Patent Text Reader

Abstract

The invention discloses a test case generation method and device, equipment, a storage medium and a program product, and the method comprises the steps: obtaining a degradation index of a power distribution terminal, determining a target atomic test template corresponding to the degradation index according to the degradation index and a mapping relation between the index and the atomic test template, and generating a test case according to the target atomic test template. And determining a test case for testing the power distribution terminal. According to the test case generation method, on one hand, the generated test case just covers the degradation index, over-detection and under-detection are avoided, and the pertinence is high; on the other hand, corresponding test cases can be generated in real time according to the degradation indexes, and the timeliness is high; and on the other hand, in the process of generating the test case, the target atomic test template is determined according to the degradation index and the mapping relation between the index and the atomic test template, and then the test case is generated, so that the efficiency of generating the test case is relatively high, the whole process does not need manual participation, and thus the test efficiency of the power distribution terminal is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of power distribution technology, and in particular to a test case generation method, device, equipment, storage medium and program product. Background Art

[0002] With the advancement of science and technology, the distribution automation system has developed rapidly. A large number of distribution terminals have been deployed and put into operation. In order to ensure the reliability of the distribution automation system, the distribution terminals need to be maintained regularly.

[0003] At present, the traditional operation and maintenance method of regular inspection and replacement after failure is used to maintain the distribution terminals. However, this method has problems such as lack of specificity, poor timeliness and low efficiency, which brings huge pressure to the operation and maintenance department. Summary of the invention

[0004] The present invention provides a test case generation method, device, equipment, storage medium and program product to solve the technical problems of poor pertinence, poor timeliness and low efficiency in maintaining power distribution terminals in the related art.

[0005] According to one aspect of the present invention, a test case generation method is provided, comprising:

[0006] Obtaining degradation indicators of power distribution terminals;

[0007] Determining a target atomic test template corresponding to the degradation indicator according to the degradation indicator and a mapping relationship between the indicator and the atomic test template;

[0008] A test case for testing the power distribution terminal is determined according to the target atomic test template.

[0009] According to another aspect of the present invention, there is provided a test case generating device, comprising:

[0010] An acquisition module, used to acquire degradation indicators of power distribution terminals;

[0011] A first determination module, configured to determine a target atomic test template corresponding to the degradation indicator according to the degradation indicator and a mapping relationship between the indicator and the atomic test template;

[0012] The second determination module is used to determine a test case for testing the power distribution terminal according to the target atomic test template.

[0013] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0014] at least one processor; and

[0015] a memory communicatively connected to the at least one processor; wherein,

[0016] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the test case generating method described in any embodiment of the present invention.

[0017] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, wherein the computer program is used to enable a processor to implement the test case generating method described in any embodiment of the present invention when executed.

[0018] According to another aspect of the present invention, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, the test case generating method according to any embodiment of the present invention is implemented.

[0019] The technical solution of the embodiment of the present invention includes: obtaining the degradation index of the distribution terminal, determining the target atomic test template corresponding to the degradation index according to the degradation index and the mapping relationship between the index and the atomic test template, and determining the test case for testing the distribution terminal according to the target atomic test template. The test case generation method, on the one hand, can generate the corresponding test case according to the degradation index, and the generated test case just covers the degradation index, without over-testing or under-testing, and has strong pertinence; on the other hand, it can generate the corresponding test case in real time according to the degradation index, and has strong timeliness; on the other hand, in the process of generating the test case, the target atomic test template is determined according to the degradation index and the mapping relationship between the index and the atomic test template, and then the test case is generated, and the efficiency of generating the test case is high, and the whole process does not require manual participation, thereby improving the efficiency of the distribution terminal test. Therefore, based on the test case generation method provided in this embodiment, it is possible to achieve targeted testing of the distribution terminal, with high timeliness and efficiency.

[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0022] Figure 1It is a schematic diagram of an application scenario of a test case generation method provided by an embodiment of the present invention;

[0023] Figure 2 is a flow chart of a test case generation method provided by an embodiment of the present invention;

[0024] Figure 3 is a flow chart of another test case generation method provided by an embodiment of the present invention;

[0025] Figure 4 is a structural schematic diagram of a test case generating device provided by an embodiment of the present invention;

[0026] Figure 5 It is a structural schematic diagram of an electronic device for implementing the test case generation method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0027] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the term "comprising" and any variation thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices. The acquisition, storage, use, processing, etc. of data in the embodiments of the present invention all comply with the relevant provisions of national laws and regulations.

[0029] Figure 1 FIG. 1 is a schematic diagram of an application scenario of a test case generation method provided by an embodiment of the present invention. Figure 1As shown, the test case generation method provided in this embodiment can be implemented by a test case generation device 21. The test case generation device 21 can be deployed in a power distribution automation system. The power distribution master station 22 can obtain the status data of the power distribution terminal 23, and determine the target index of the power distribution terminal 23 according to the status data of the power distribution terminal 23. The test case generation device 21 can receive the target index of the power distribution terminal 23 from the power distribution master station 22. In this embodiment, the test case generation device 21 can perform a status evaluation on the target index of the power distribution state 23 according to the target index of the power distribution terminal 23, and generate a test case according to the evaluation result, so as to implement targeted testing of the power distribution terminal according to the test case, with high timeliness and efficiency.

[0030] Further, after generating the test case, the test case generating device 21 can send the test case to the tester 24. The tester 24 tests the power distribution terminal according to the test case. In this implementation, the tester tests the power distribution terminal, which will not affect the function of the power distribution master station and the communication link between the test case generating device 21 and the power distribution master station.

[0031] The test case generation method provided by the embodiment of the present invention is further described in detail below through several specific embodiments.

[0032] Figure 2 1 is a flow chart of a test case generation method provided by an embodiment of the present invention. This embodiment can be applied to the scenario of testing a power distribution terminal. The method can be executed by a test case generation device, and the test case generation device can be implemented in the form of hardware and / or software. The test case generation device can be configured in an electronic device, for example, a computer device. Figure 2 As shown, the method includes the following steps 101 to 103.

[0033] Step 101: Obtain degradation indicators of power distribution terminals.

[0034] The distribution terminal in this embodiment refers to the general term for various remote monitoring and control units installed in the distribution network, which complete functions such as data collection, control and communication, and mainly includes feeder terminals, station terminals, distribution transformer terminals, etc.

[0035] The degradation index in this embodiment refers to an index that does not match the standard index when the power distribution terminal operates normally.

[0036] Optionally, step 101 may be implemented by determining a degradation index according to a target index of a power distribution terminal acquired from a power distribution master station.

[0037] In one implementation, the test case generation device may determine the degradation index of the power distribution terminal based on a preconfigured determination model. Exemplarily, the determination model in this embodiment may be a model obtained according to a machine learning algorithm.

[0038] In another implementation manner, the test case generating device may determine the indicators in the target indicators that are not within the corresponding standard range as degradation indicators according to the standard range corresponding to each indicator.

[0039] Step 102: According to the degradation index and the mapping relationship between the index and the atomic test template, determine the target atomic test template corresponding to the degradation index.

[0040] In this embodiment, by analyzing the functional performance of the power distribution terminal, an atomic test template is pre-constructed, and a mapping relationship between the index and the atomic test template is established. The atomic test template decouples the performance and function of the power distribution terminal, and a fine test of the power distribution terminal can be achieved based on the atomic test template.

[0041] Optionally, the atomic test template in this embodiment includes at least two of the following: AC voltage sampling accuracy test, AC current sampling accuracy test, active power accuracy test, reactive power accuracy test, apparent power accuracy test, power factor accuracy test, frequency accuracy test, three-phase imbalance calculation, harmonic component calculation, zero-sequence voltage and current calculation, frequency influence voltage, frequency influence current, harmonic influence voltage, harmonic influence current, remote signal state correctness test, remote signal anti-shake test, event sequence recording (events order recording, referred to as: SOE) resolution test, remote control execution correctness test, remote control soft pressure plate test, remote on-site test, remote control hard pressure plate test, three-stage protection test, zero-sequence protection test, small current grounding protection test, AC power supply test, backup power supply test, power supply influence quantity test and distribution terminal collection quantity test.

[0042] Each atomic test template is described in detail below. Table 1 shows the template for AC voltage sampling accuracy test.

[0043] Table 1 Template for AC voltage sampling accuracy test

[0044]

[0045]

[0046] Among them, 80%, 100% and 120% of the test object are all compared to the rated voltage. U0 represents the three-phase zero-sequence voltage. When testing based on Table 1, the test voltage is input to the tested distribution terminal in sequence, that is, 80%, 100% and 120% of the rated voltage are input in sequence. When determining the test result of the distribution terminal, the error between the voltage value output by the distribution terminal and the corresponding input test voltage is compared. According to conventional requirements, the voltage accuracy error limit is ±0.5% to be qualified. The voltage accuracy error in this embodiment means that the voltage accuracy error of each phase must be within the range of ±0.5%.

[0047] Table 2 shows the template for the AC current sampling accuracy test.

[0048] Table 2 Template for AC current sampling accuracy test

[0049]

[0050] Among them, 5%, 20% and 120% in the test object are all relative to the rated current. I0 represents the three-phase zero-sequence current. When testing based on Table 2, the test current is input into the tested distribution terminal in sequence, that is, 0%, 5%, ..., 100% and 120% of the rated current are input in sequence. When determining the test result of the distribution terminal, compare the error between the current value output by the distribution terminal and the corresponding input test current. According to conventional requirements, the current accuracy error limit is ±0.5% to be qualified. The current accuracy error in this embodiment means that the current accuracy error of each phase must be within the range of ±0.5%.

[0051] Table 3 shows the template for the active power accuracy test.

[0052] Table 3 Template for active power accuracy test

[0053]

[0054] The power angle in this embodiment refers to the angle between voltage and current. When testing based on Table 3, the corresponding test current and test voltage are sequentially input to the tested distribution terminal according to the power angle. When determining the test result of the distribution terminal, the error between the active power output by the distribution terminal and the corresponding active power standard value is compared. According to conventional requirements, the active power accuracy error limit is ±1.0% to be qualified.

[0055] Table 4 shows the template for reactive power accuracy test.

[0056] Table 4 Template for reactive power accuracy test

[0057]

[0058]

[0059] When testing based on Table 4, the corresponding test current and test voltage are input to the tested distribution terminal in turn according to the power angle. When determining the test result of the distribution terminal, the error between the reactive power output by the distribution terminal and the corresponding reactive power standard value is compared. According to conventional requirements, the reactive power accuracy error limit is ±1.0% to be qualified.

[0060] Table 5 shows the template for the apparent power accuracy test.

[0061] Table 5 Template for apparent power accuracy test

[0062]

[0063] When testing based on Table 5, the corresponding test current and test voltage are input to the tested distribution terminal in turn according to the power angle. When determining the test result of the distribution terminal, compare the error between the apparent power output by the distribution terminal and the corresponding apparent power standard value. According to conventional requirements, the apparent power accuracy error limit is ±1.0% to be qualified.

[0064] Table 6 shows the template for the power factor accuracy test.

[0065] Table 6 Template for power factor accuracy test

[0066]

[0067] When testing based on Table 6, the corresponding test current and test voltage are input to the tested distribution terminal in turn according to the power angle. When determining the test result of the distribution terminal, the error between the power factor output by the distribution terminal and the corresponding power factor standard value is compared. According to conventional requirements, the power factor accuracy error limit is ±0.5% to be qualified.

[0068] Table 7 shows the template for the frequency accuracy test.

[0069] Table 7 Template for frequency accuracy test

[0070]

[0071]

[0072] When testing based on Table 7, the corresponding test current and test voltage are input to the tested distribution terminal in sequence according to the frequency. When determining the test result of the distribution terminal, the error between the frequency output by the distribution terminal and the corresponding test frequency is compared. According to conventional requirements, the frequency accuracy error limit is 0.01 to be qualified.

[0073] Table 8 shows the template for three-phase unbalance calculation.

[0074] Table 8 Template for three-phase unbalance calculation

[0075]

[0076] The x in the telemetry number sent in Table 8 refers to the signal point number, and the three-phase imbalance determined by it is sent to the distribution master station through x. When testing based on Table 8, the corresponding test current and test voltage are input to the tested distribution terminal in accordance with the voltage imbalance and current imbalance. When determining the test result of the distribution terminal, the error of the three-phase imbalance output by the distribution terminal is compared with the corresponding three-phase imbalance standard value. According to conventional requirements, the three-phase imbalance accuracy error limit is 0.5% to be qualified.

[0077] Table 9 shows the template for harmonic component calculation.

[0078] Table 9 Template for calculation of harmonic components

[0079]

[0080]

[0081] a in Table 9 indicates the expression form of the harmonic component output by the distribution terminal, for example, expressed in percentage form or non-percentage form. When testing based on Table 9, the corresponding test current and test voltage are sequentially input to the tested distribution terminal according to the set harmonic percentage and harmonic order. When determining the test result of the distribution terminal, the error of the harmonic component output by the distribution terminal is compared with the corresponding harmonic component standard value.

[0082] Table 10 shows the template for zero-sequence voltage and current calculations.

[0083] Table 10 Template for zero sequence voltage and current calculation

[0084]

[0085]

[0086] When testing based on Table 10, the corresponding test current or test voltage is input to the tested distribution terminal in sequence according to the set zero-sequence voltage and zero-sequence current. When determining the test result of the distribution terminal, the error between the zero-sequence voltage output by the distribution terminal and the corresponding zero-sequence voltage standard value is compared, and the error between the zero-sequence current output by the distribution terminal and the corresponding zero-sequence current standard value is compared. According to conventional requirements, the error limit of the zero-sequence voltage calculation accuracy is 0.5% to be qualified, and the error limit of the zero-sequence current calculation accuracy is 0.5% to be qualified.

[0087] Table 11 shows the template of frequency effect voltage.

[0088] Table 11 Template of frequency affecting voltage

[0089]

[0090] When testing based on Table 11, the test voltage is sequentially input to the tested power distribution terminal at a set frequency. When determining the test result of the power distribution terminal, the error between the voltage output by the power distribution terminal and the corresponding voltage standard value is compared.

[0091] Table 12 shows the template of frequency effect on current.

[0092] Table 12 Template of frequency effect on current

[0093]

[0094] When testing based on Table 12, the test current is sequentially input to the tested power distribution terminal at the set frequency. When determining the test result of the power distribution terminal, the error between the current output by the power distribution terminal and the corresponding current standard value is compared.

[0095] Table 13 shows the template of harmonic impact voltage.

[0096] Table 13 Template of harmonic impact voltage

[0097]

[0098]

[0099] When testing based on Table 13, the test voltage is sequentially input to the tested distribution terminal according to the set harmonic percentage, harmonic order and harmonic angle. When determining the test result of the distribution terminal, the error between the voltage output by the distribution terminal and the corresponding voltage standard value is compared.

[0100] Table 14 shows the template of harmonic influence current.

[0101] Table 14 Template of harmonic impact current

[0102]

[0103] When testing based on Table 14, the test current is sequentially input to the tested distribution terminal according to the set harmonic percentage, harmonic order and harmonic angle. When determining the test result of the distribution terminal, the error between the current output by the distribution terminal and the corresponding current standard value is compared.

[0104] Table 15 shows the template for the telesignaling status correctness test.

[0105] Table 15 Template for remote signal status correctness test

[0106]

[0107]

[0108] When testing based on Table 15, input telesignals to the tested distribution terminal in each open channel. When determining the test result of the distribution terminal, determine whether the distribution terminal can send the telesignal to the distribution master station within the waiting SOE timeout period.

[0109] Table 16 shows the template for remote signaling anti-shake test.

[0110] Table 16 Template for remote signal anti-shake test

[0111]

[0112] When testing based on Table 16, in each output channel, input the telesignal to the tested distribution terminal according to the set output pulse width and telesignal anti-shake. When determining the test result of the distribution terminal, determine whether the distribution terminal can send the telesignal to the distribution master station within the waiting SOE timeout period.

[0113] Table 17 shows the template for SOE resolution testing.

[0114] Table 17 Template for SOE resolution test

[0115]

[0116] When testing based on Table 17, input telesignals to the distribution terminal being tested. When determining the test result of the distribution terminal, determine whether the SOE of the distribution terminal is correct during the test.

[0117] Table 18 shows the template for remote control execution correctness testing.

[0118] Table 18 Template for remote execution correctness test

[0119]

[0120] Table 19 shows the template for the remote soft platen test.

[0121] Table 19 Template for remote control soft pressure plate test

[0122]

[0123] Table 20 shows the template for remote local testing.

[0124] Table 20 Template for remote local testing

[0125]

[0126] When testing based on Table 20, during the test, set the transfer switch of the tested distribution terminal to the "remote" or "local" state according to the prompts.

[0127] Table 21 shows the template for the remote control hard plate test.

[0128] Table 21 Template for remote control hard plate test

[0129]

[0130]

[0131] When testing based on Table 21, during the test, set the hard pressure plate of the tested distribution terminal to the "on" or "off" state according to the prompts.

[0132] Table 22 shows the template for the three-stage protection test.

[0133] Table 22 Template for three-stage protection test

[0134]

[0135] Table 23 shows the template for the zero sequence protection test.

[0136] Table 23 Template for zero sequence protection test

[0137]

[0138]

[0139] Table 24 shows the template for the low current ground fault protection test.

[0140] Table 24 Template for small current ground protection test

[0141]

[0142] Table 25 shows the template for AC power supply testing.

[0143] Table 25 Template for AC power supply test

[0144]

[0145] Table 26 shows the template for the backup power supply test.

[0146] Table 26 Template for backup power supply test

[0147]

[0148] Table 27 shows the template for the power supply influence quantity test.

[0149] Table 27 Template for power supply influence quantity test

[0150]

[0151] The power distribution terminal data collection test is used to test the amount of data collected by the power distribution terminal from other sensors when communicating with other sensors.

[0152] Optionally, the indicators of the power distribution terminal in this embodiment include at least two of the following: remaining capacity of the backup power supply, voltage drop ratio of the backup power supply, temperature difference between the central processing unit (CPU) and the ambient temperature, telemetry quality code pass rate, communication packet loss rate, communication disconnection time ratio, remote control accuracy rate and serial port communication bit error rate with the sensor.

[0153] The following is a detailed introduction to each indicator.

[0154] Remaining capacity of backup power supply: refers to the remaining capacity of the backup power supply of the distribution terminal. This value is sent from the distribution terminal to the distribution master station. The test case generation device obtains this indicator from the distribution master station.

[0155] Backup power supply voltage drop ratio: refers to the voltage output by the backup power supply of the distribution terminal, which is sent from the distribution terminal to the distribution master station. The voltage drop ratio refers to the ratio of the voltage value to the drop value of the rated voltage and the rated voltage. It is calculated by the distribution master station. The test case generation device obtains this indicator from the distribution master station.

[0156] CPU temperature and ambient temperature difference: refers to the difference between the CPU temperature and the ambient temperature inside the power distribution terminal when the power distribution terminal is working. The power distribution terminal sends the ambient temperature and CPU temperature respectively, and the temperature difference is calculated by the power distribution master station. The test case generation device obtains this indicator from the power distribution master station.

[0157] Telemetry quality code pass rate: The telemetry data sent by the distribution terminal contains a quality code, which is initialized and recalculated every day. This value is calculated by the distribution master station. The test case generation device obtains this indicator from the distribution master station.

[0158] Communication packet loss rate: refers to the ratio of the difference between the number of communication messages sent by the distribution terminal and the number of communication messages received by the master station to the number of communication messages sent by the terminal. It is initialized and recalculated every day. The communication packet loss rate is calculated by the distribution master station. The test case generation device obtains this indicator from the distribution master station.

[0159] Communication disconnection time ratio: refers to the ratio of the communication disconnection time between the distribution terminal and the master station within a preset time period, for example, within 24 hours. This value is counted and analyzed by the distribution master station. The test case generation device obtains this indicator from the distribution master station.

[0160] Remote control accuracy: refers to the remote control accuracy of the distribution terminal since the last operation or commissioning. This value is calculated by the distribution master station. The test case generation device obtains this indicator from the distribution master station.

[0161] Sensor serial port communication bit error rate: refers to the communication bit error rate when the distribution terminal collects other sensor values ​​through the serial port. It is counted by the distribution terminal and sent to the distribution master station.

[0162] In this embodiment, the mapping relationship between the indicator and the atomic test template can be determined based on empirical data.

[0163] Optionally, the mapping relationship between the indicators and the atomic test templates in this embodiment is used to indicate at least two of the following corresponding relationships: the atomic test template corresponding to the remaining capacity of the backup power supply includes: AC power supply test, backup power supply test and power supply impact test; the atomic test template corresponding to the backup power supply voltage drop ratio includes: backup power supply test and power supply impact test; the atomic test template corresponding to the difference between CPU temperature and ambient temperature includes: three-stage protection test, zero-sequence protection test, small current grounding protection test, three-phase imbalance calculation, harmonic component calculation, zero-sequence voltage and current calculation, frequency impact voltage, frequency impact current, harmonic impact voltage, harmonic impact current, power factor accuracy test and frequency accuracy test; and telemetry The atomic test templates corresponding to the quality code pass rate include: AC voltage sampling accuracy test, AC current sampling accuracy test, active power accuracy test, reactive power accuracy test and apparent power accuracy test; the atomic test templates corresponding to the communication packet loss rate include: remote signal status correctness test, remote signal anti-jitter test and SOE resolution test; the atomic test templates corresponding to the communication drop time ratio include: AC voltage sampling accuracy test and AC current sampling accuracy test; the atomic test templates corresponding to the remote control accuracy rate include: remote control execution correctness test, remote control soft pressure plate test, remote on-site test and remote control hard pressure plate test; the atomic test templates corresponding to the sensor serial port communication bit error rate include: distribution terminal collection quantity test.

[0164] Table 28 shows the mapping relationship between indicators and atomic test templates.

[0165] Table 28 Mapping relationship between indicators and atomic test templates

[0166]

[0167] Step 103: Determine a test case for testing the power distribution terminal according to the target atomic test template.

[0168] In one implementation, after the target atomic test template is determined, test data may be generated based on the target atomic test template, and the test data may be used as a test case for testing the power distribution terminal.

[0169] If there are multiple target atomic test templates, the test data corresponding to the target atomic test templates can be merged in order, and the merged test data can be used as test cases. The sequential merging here can be in any order or in a predefined order.

[0170] Optionally, after generating the test case, the test case generation method provided in this embodiment further includes the following steps: sending the test case to the tester so that the tester tests the power distribution terminal according to the test case. This implementation method can avoid affecting the existing functions of the power distribution master station and implement the testing of the power distribution terminal without affecting the functions of the existing network.

[0171] The test case generation method provided in this embodiment can be seamlessly connected with the distribution terminal status monitoring module in the distribution automation system.

[0172] The test case generation method provided in this embodiment includes: obtaining the degradation index of the distribution terminal, determining the target atomic test template corresponding to the degradation index according to the degradation index and the mapping relationship between the index and the atomic test template, and determining the test case for testing the distribution terminal according to the target atomic test template. The test case generation method, on the one hand, can generate the corresponding test case according to the degradation index, and the generated test case just covers the degradation index, without over-testing or under-testing, and has strong pertinence; on the other hand, it can generate the corresponding test case in real time according to the degradation index, and has strong timeliness; on the other hand, in the process of generating the test case, the target atomic test template is determined according to the degradation index and the mapping relationship between the index and the atomic test template, and then the test case is generated, and the efficiency of generating the test case is high, and the whole process does not require manual participation, thereby improving the test efficiency of the distribution terminal. Therefore, based on the test case generation method provided in this embodiment, it is possible to achieve targeted testing of the distribution terminal, with high timeliness and efficiency.

[0173] Figure 3 is a flow chart of another test case generation method provided by an embodiment of the present invention. Figure 2 Based on the embodiment shown, the process of how to generate a test case is described in detail. The test case in this embodiment includes a target state sequence. Figure 3 As shown, the test case generation method provided in this embodiment includes the following steps 301 to 304.

[0174] Step 301: Obtain degradation indicators of power distribution terminals.

[0175] Step 302: According to the degradation index and the mapping relationship between the index and the atomic test template, determine the target atomic test template corresponding to the degradation index.

[0176] The implementation process and technical principle of step 301 and step 101, and step 302 and step 102 are similar, and will not be repeated here.

[0177] Step 303: Determine the target state sequence model corresponding to the target atomic test template according to the target atomic test template and the mapping relationship between the atomic test template and the state sequence model.

[0178] The state sequence model in this embodiment is used to indicate the organization form or expression form of the test data input into the tested power distribution terminal when the atomic test template is used for testing. The test items of the power distribution terminal are all composed of the state sequence of current or voltage.

[0179] Optionally, in response to the basic function test requirements of the distribution terminal, the present embodiment has the following three state sequence models: a common three-remote control test model, a state sequence test model based on multiple section data, and a state sequence test model based on a fault characteristic waveform.

[0180] Table 29 shows the common three-telemetry test model. Table 30 shows the state sequence test model based on multiple section data. Table 31 shows the state sequence test model based on fault characteristic waveform.

[0181] Table 29 Common three-remote control test model

[0182]

[0183]

[0184] Table 30 State sequence test model based on multiple cross-section data

[0185]

[0186] Table 31 State sequence test model based on fault characteristic waveform

[0187]

[0188] The initial state in this embodiment refers to the waveform at the front end of the fault waveform, such as the first cycle, after FFT is performed, the amplitude and phase are calculated, and the waveform obtained by outputting the calculated amplitude and phase. The end state in this embodiment refers to the waveform at the rear end of the fault waveform, such as the last cycle, after FFT is performed, the amplitude and phase are calculated, and the waveform obtained by outputting the calculated amplitude and phase.

[0189] In this embodiment, a mapping relationship between the atomic test template and the state sequence model is pre-established. For example, the three-phase unbalance calculation corresponds to the ordinary three-remote test model. For another example, the three-stage protection test, the zero-sequence protection test, and the small current grounding protection test correspond to the state sequence test model based on the fault characteristic waveform. For another example, the AC voltage sampling accuracy test, the AC current sampling accuracy test, the active power accuracy test, the reactive power accuracy test, and the apparent power accuracy test correspond to the state sequence test model based on multiple section data.

[0190] Step 304: Generate a target state sequence according to the target atomic test template and the target state sequence model.

[0191] In this embodiment, the target state sequence may be a sequence consisting of voltage and / or current.

[0192] Optionally, after the target state sequence model is determined, an object of the target state sequence model may be established, and the target state sequence may be generated based on the data required in the target atom test template and the object of the target state sequence model.

[0193] Optionally, in a scenario where there are multiple target atomic test templates, the implementation process of step 304 is: for each target atomic test template, generate a target sub-state sequence corresponding to the target atomic test template based on the target atomic test template and the target state sequence model; merge multiple target sub-state sequences to obtain a target state sequence.

[0194] It should be noted that, in the process of merging multiple target sub-state sequences, they may be merged in any order, or in a predefined order, but this embodiment is not limited thereto.

[0195] The target state sequence in this embodiment can be a sequence itself or a target state sequence indication signal. In the latter implementation, after receiving the target state sequence indication signal, the tester can generate a target state sequence based on the target state sequence indication signal and input it into the tested power distribution terminal to test the power distribution terminal.

[0196] The test case generation method provided in this embodiment can determine the target state sequence model corresponding to the target atomic test template according to the target atomic test template and the mapping relationship between the atomic test template and the state sequence model, and generate the target state sequence according to the target atomic test template and the target state sequence model. In this embodiment, since the state sequence model is predefined, the target state sequence generated based on the target atomic test template and the target state sequence model is a standardized sequence, which is convenient for subsequent backtracking of the test process and troubleshooting of the test results, further improving the test efficiency and test effectiveness.

[0197] Figure 4 Schematic diagram of the structure of a test case generation device provided by an embodiment of the present invention. Figure 4 As shown, the test case generating device provided in this embodiment includes the following modules: an acquisition module 41 , a first determination module 42 and a second determination module 43 .

[0198] The acquisition module 41 is used to acquire the degradation index of the power distribution terminal.

[0199] The first determination module 42 is used to determine a target atomic test template corresponding to the degradation indicator according to the degradation indicator and a mapping relationship between the indicator and the atomic test template.

[0200] The second determination module 43 is used to determine a test case for testing the power distribution terminal according to the target atomic test template.

[0201] In one embodiment, the test case includes a target state sequence. The second determination module 43 is specifically used to: determine the target state sequence model corresponding to the target atomic test template according to the target atomic test template and the mapping relationship between the atomic test template and the state sequence model; and generate the target state sequence according to the target atomic test template and the target state sequence model.

[0202] In one embodiment, the number of the target atomic test templates is multiple. In terms of generating the target state sequence according to the target atomic test template and the target state sequence model, the second determination module 43 is specifically used to: for each target atomic test template, generate a target sub-state sequence corresponding to the target atomic test template according to the target atomic test template and the target state sequence model; and merge multiple target sub-state sequences to obtain the target state sequence.

[0203] In one embodiment, the acquisition module 41 is specifically used to: determine the degradation index according to the target index of the distribution terminal obtained from the distribution master station. The device also includes a sending module for sending the test case to the tester so that the tester tests the distribution terminal according to the test case.

[0204] In one embodiment, the atomic test template includes at least two of the following: AC voltage sampling accuracy test, AC current sampling accuracy test, active power accuracy test, reactive power accuracy test, apparent power accuracy test, power factor accuracy test, frequency accuracy test, three-phase imbalance calculation, harmonic component calculation, zero-sequence voltage and current calculation, frequency influence voltage, frequency influence current, harmonic influence voltage, harmonic influence current, remote signal state correctness test, remote signal anti-shake test, SOE resolution test, remote control execution correctness test, remote control soft pressure plate test, remote on-site test, remote control hard pressure plate test, three-stage protection test, zero-sequence protection test, small current grounding protection test, AC power supply test, backup power supply test, power supply influence quantity test and distribution terminal collection quantity test.

[0205] In one embodiment, the indicators include at least two of the following: remaining capacity of the backup power supply, voltage drop ratio of the backup power supply, difference between CPU temperature and ambient temperature, qualified rate of telemetry quality code, communication packet loss rate, communication disconnection time ratio, remote control accuracy rate and bit error rate of serial port communication with the sensor.

[0206] In one embodiment, the mapping relationship between the indicator and the atomic test template is used to indicate at least two of the following corresponding relationships: the atomic test template corresponding to the remaining capacity of the backup power supply includes: AC power supply test, backup power supply test and power supply influence test; the atomic test template corresponding to the backup power supply voltage drop ratio includes: backup power supply test and power supply influence test; the atomic test template corresponding to the CPU temperature and ambient temperature difference includes: three-stage protection test, zero-sequence protection test, small current grounding protection test, three-phase imbalance calculation, harmonic component calculation, zero-sequence voltage and current calculation, frequency influence voltage, frequency influence current, harmonic influence voltage, harmonic influence current, power factor accuracy test and frequency accuracy test; the atomic test template corresponding to the telemetry quality control includes: three-stage protection test, zero-sequence protection test, small current grounding protection test, three-phase imbalance calculation, harmonic component calculation, zero-sequence voltage and current calculation, frequency influence voltage, frequency influence current, harmonic influence voltage, harmonic influence current, power factor accuracy test and frequency accuracy test; The atomic test templates corresponding to the code qualification rate include: AC voltage sampling accuracy test, AC current sampling accuracy test, active power accuracy test, reactive power accuracy test and apparent power accuracy test; the atomic test templates corresponding to the communication packet loss rate include: remote signal state correctness test, remote signal anti-jitter test and SOE resolution test; the atomic test templates corresponding to the communication drop time ratio include: AC voltage sampling accuracy test and AC current sampling accuracy test; the atomic test templates corresponding to the remote control accuracy rate include: remote control execution correctness test, remote control soft pressure plate test, remote on-site test and remote control hard pressure plate test; the atomic test templates corresponding to the sensor serial port communication bit error rate include: distribution terminal collection quantity test.

[0207] The test case generation device provided in the embodiment of the present invention can execute the test case generation method provided in any embodiment of the present invention, and has the functional modules and beneficial effects corresponding to the execution method.

[0208] Figure 5 It is a structural schematic diagram of an electronic device that implements the test case generation method of an embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0209] like Figure 5 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0210] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0211] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a test case generation method.

[0212] In some embodiments, the test case generation method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the test case generation method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to execute the test case generation method in any other appropriate manner (e.g., by means of firmware).

[0213] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0214] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0215] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0216] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0217] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0218] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0219] An embodiment of the present invention further provides a computer program product, including a computer program, which, when executed by a processor, implements the test case generating method provided by any embodiment of the present invention.

[0220] In the process of implementation, the computer program product can be written in one or more programming languages ​​or a combination thereof to perform the computer program code of the present invention, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).

[0221] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0222] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A test case generation method, characterized in that: include: Obtaining degradation indicators of power distribution terminals; Determining a target atomic test template corresponding to the degradation indicator according to the degradation indicator and a mapping relationship between the indicator and the atomic test template; A test case for testing the power distribution terminal is determined according to the target atomic test template.

2. The method according to claim 1, characterized in that The test case includes a target state sequence; The step of determining a test case for testing the power distribution terminal according to the target atomic test template includes: Determine a target state sequence model corresponding to the target atomic test template according to the target atomic test template and a mapping relationship between the atomic test template and the state sequence model; The target state sequence is generated according to the target atomic test template and the target state sequence model.

3. The method according to claim 2, characterized in that The number of the target atomic test templates is multiple; The step of generating the target state sequence according to the target atomic test template and the target state sequence model includes: For each of the target atomic test templates, generating a target sub-state sequence corresponding to the target atomic test template according to the target atomic test template and the target state sequence model; A plurality of the target sub-state sequences are combined to obtain the target state sequence.

4. The method according to claim 1, characterized in that: The obtaining of the degradation index of the power distribution terminal comprises: Determining the degradation index according to the target index of the power distribution terminal obtained from the power distribution master station; The method further comprises: The test case is sent to a tester so that the tester tests the power distribution terminal according to the test case.

5. The method according to any one of claims 1 to 4, characterized in that: The atomic test template includes at least two of the following: AC voltage sampling accuracy test, AC current sampling accuracy test, active power accuracy test, reactive power accuracy test, apparent power accuracy test, power factor accuracy test, frequency accuracy test, three-phase unbalance calculation, harmonic component calculation, zero-sequence voltage and current calculation, frequency influence voltage, frequency influence current, harmonic influence voltage, harmonic influence current, remote signal state correctness test, remote signal anti-shake test, event sequence record SOE resolution test, remote control execution correctness test, remote control soft pressure plate test, remote local test, remote control hard pressure plate test, three-stage protection test, zero-sequence protection test, small current grounding protection test, AC power supply test, backup power supply test, power supply influence quantity test and distribution terminal collection quantity test; The indicators include at least two of the following: remaining capacity of the backup power supply, voltage drop ratio of the backup power supply, temperature difference between the central processing unit CPU and the ambient temperature, telemetry quality code pass rate, communication packet loss rate, communication disconnection time ratio, remote control accuracy rate and serial port communication bit error rate of the sensor.

6. The method according to claim 5, characterized in that The mapping relationship between the indicator and the atomic test template is used to indicate at least two of the following corresponding relationships: The atomic test template corresponding to the remaining capacity of the backup power supply includes: AC power supply test, backup power supply test and power supply influence quantity test; The atomic test template corresponding to the backup power supply voltage drop ratio includes: backup power supply test and power supply influence quantity test; The atomic test template corresponding to the CPU temperature and the ambient temperature difference includes: three-stage protection test, zero-sequence protection test, small current grounding protection test, three-phase unbalance calculation, harmonic component calculation, zero-sequence voltage and current calculation, frequency influence voltage, frequency influence current, harmonic influence voltage, harmonic influence current, power factor accuracy test and frequency accuracy test; The atomic test template corresponding to the telemetry quality code pass rate includes: AC voltage sampling accuracy test, AC current sampling accuracy test, active power accuracy test, reactive power accuracy test and apparent power accuracy test; The atomic test template corresponding to the communication packet loss rate includes: remote signal state correctness test, remote signal anti-shake test and SOE resolution test; The atomic test template corresponding to the communication offline time ratio includes: AC voltage sampling accuracy test and AC current sampling accuracy test; The atomic test templates corresponding to the remote control accuracy include: remote control execution correctness test, remote control soft pressure plate test, remote on-site test and remote control hard pressure plate test; The atomic test template corresponding to the sensor serial port communication bit error rate includes: distribution terminal collection quantity test.

7. A test case generating device, characterized in that: include: An acquisition module, used to acquire degradation indicators of power distribution terminals; A first determination module, configured to determine a target atomic test template corresponding to the degradation indicator according to the degradation indicator and a mapping relationship between the indicator and the atomic test template; The second determination module is used to determine a test case for testing the power distribution terminal according to the target atomic test template.

8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the test case generating method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the computer program is used to enable a processor to implement the test case generation method according to any one of claims 1 to 6 when executed.

10. A computer program product, characterized in that The invention comprises a computer program, which implements the test case generating method according to any one of claims 1 to 6 when being executed by a processor.