CN113778903A - Method and system for generating test case of power distribution terminal and storage medium - Google Patents

Method and system for generating test case of power distribution terminal and storage medium Download PDF

Info

Publication number
CN113778903A
CN113778903A CN202111322981.8A CN202111322981A CN113778903A CN 113778903 A CN113778903 A CN 113778903A CN 202111322981 A CN202111322981 A CN 202111322981A CN 113778903 A CN113778903 A CN 113778903A
Authority
CN
China
Prior art keywords
test
type
constructed
content
test case
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.)
Granted
Application number
CN202111322981.8A
Other languages
Chinese (zh)
Other versions
CN113778903B (en
Inventor
史常凯
尹惠
盛万兴
宋晓辉
关石磊
陈洁
雷浩亮
符金伟
吴燕
白雪峰
古凌云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Electric Power Research Institute Co Ltd CEPRI
Original Assignee
China Electric Power Research Institute Co Ltd CEPRI
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Electric Power Research Institute Co Ltd CEPRI filed Critical China Electric Power Research Institute Co Ltd CEPRI
Priority to CN202111322981.8A priority Critical patent/CN113778903B/en
Publication of CN113778903A publication Critical patent/CN113778903A/en
Application granted granted Critical
Publication of CN113778903B publication Critical patent/CN113778903B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Supply And Distribution Of Alternating Current (AREA)

Abstract

The invention provides a method, a system and a storage medium for generating a test case of a power distribution terminal, wherein the method comprises the following steps: selecting a test case from a pre-constructed test scheme based on the type and the test content of the obtained tested object; the test scheme is formed by constructing all related test cases according to the type and the test content of a test object; the test scheme is constructed in a tree form according to test items, test items and test cases based on the types and detection types of test objects. The invention constructs the test scheme in the form of tree according to the type and the detection type of the test object and the test items, the test items and the test cases, has more applicable objects, has wide coverage of the test cases, can quickly determine the test cases from the test scheme according to the type and the test content of the tested object, and is convenient and quick.

Description

Method and system for generating test case of power distribution terminal and storage medium
Technical Field
The invention relates to the technical field of power distribution terminal test detection, in particular to a method and a system for generating a power distribution terminal test case and a storage medium.
Background
The power distribution terminal is used as an important function realization carrier for power distribution network state monitoring and intelligent decision control, and because the existing equipment manufacturers are numerous, the strengthening of the test and quality supervision of the power distribution terminal equipment is particularly important in order to better ensure that the quality of the power distribution terminal equipment before network access and operation meets the requirements. The traditional power distribution terminal test mainly adopts distributed manual test, so that the workload is large, and the detection efficiency is low. With the research and development and application of the power distribution terminal detection platform, aiming at the detection work of different technical indexes, corresponding test cases are edited and configured, and the detection platform is used for loading and executing, so that the tasks of test signal application and monitoring, terminal information acquisition and access, calculation analysis, test result judgment and the like are completed, and the automation of the test process is realized. Therefore, for the automatic test of the power distribution terminal, it is very important to develop and design a test case related to the automatic test.
The method is mainly characterized in that test cases are solidified and deployed in a test software system, are developed based on a proprietary protocol, are oriented to a customized hardware platform, only support differential selection and maintenance of test contents and test parameters, and can only depend on the test software system for secondary development when new scenes such as technical standard change, user demand change or test method improvement are met.
In the prior art, mainly, a power distribution terminal automatic test system and a method are provided, an automatic test system architecture and a functional module are designed, an automatic test method for a power distribution terminal is provided, and content composition and a configuration method of a test case are explained, namely, a test case and tested terminal task association selection method is summarized, as shown in fig. 1 below, a corresponding test method is basically provided for the power distribution terminal function and performance detection requirements.
(1) The test cases are few in applicable objects, the system and the method provided by the prior art are only applicable to detection objects of the traditional power distribution terminal, and the detection requirements of a novel platform area intelligent fusion terminal, a primary and secondary fusion complete set terminal and a primary and secondary fusion standard terminal cannot be met.
(2) The coverage range of the test case is narrow, the test method provided by the prior art mainly solves the problem of automatic detection of the functions and the performances of the traditional power distribution terminal, and basically does not relate to an automatic test method for test items such as a wave recording function, a wave recording performance, fault detection and processing, local feeder automation, power supply loading and the like of the terminal.
(3) The test case has high coupling degree and is suitable for the arrangement of a special detection system, the prior art is based on a customized power distribution terminal detection system, and the test case cannot be compatible with other terminal detection systems. Meanwhile, because the corresponding test case is developed according to the determined detection standard, judgment basis, detection flow and method, the parameter configuration and internal composition of the test case are relatively solidified, and flexible compiling and upgrading updating by a user are not supported. In addition, subsequent standard revisions, product upgrades, and requirement changes require custom development by the detection system provider.
Disclosure of Invention
In order to solve the problems of few applicable objects, narrow coverage range of test cases, high difficulty in secondary maintenance, management, updating and upgrading of test cases and the like of the conventional power distribution terminal test case, the invention provides a method for generating the power distribution terminal test case, which comprises the following steps:
obtaining the type and the test content of a tested object;
selecting a test case from a pre-constructed test scheme based on the type of the tested object and the test content;
the test scheme is formed by constructing all related test cases according to the type and the test content of the tested object;
the test scheme is constructed in a tree form according to test items, test items and test cases based on the type and the detection type of the tested object.
Preferably, the construction of the test protocol comprises:
generating a test case by combining a pre-constructed instruction set of the tested device, an instruction set of the controlled device and an instruction set of the detection flow based on the type and the test content of the tested object;
using a test case set formed by all test cases belonging to the same type of tested object and a certain subclass of technical indexes as a test item;
all the test items belonging to the same type of tested object and the same technical index are used as a test item;
using all test items belonging to the same type of tested object and the same detection type as a test scheme;
wherein the device under test instruction set is constructed based on a power distribution terminal communication protocol;
the controlled device instruction set is constructed based on communication interface content;
the detection flow instruction set is constructed based on the detection flow requirements of the power distribution terminal.
Preferably, the generating a test case based on the type and the test content of the tested object by combining a pre-constructed instruction set of the tested device, an instruction set of the controlled device, and an instruction set of the detection flow includes:
determining a service demand instruction from a pre-constructed instruction set of the tested equipment according to the test content, and selecting a state quantity signal from a pre-constructed instruction set of the controlled equipment;
determining a detection flow instruction from a pre-constructed detection flow instruction set according to the detection flow requirement of the test content;
and arranging and combining the service requirement instruction and the state quantity signal into a test case by the detection flow instruction.
Preferably, after the detecting flow instruction combines the service requirement instruction and the state quantity signal arrangement into the test case, the method further includes:
after the service demand instruction and the state quantity signal in the test case are transmitted to a tested object, the response condition and the execution result of the tested object are obtained;
calculating errors based on the response condition and the execution result of the measured object, and verifying the response consistency;
selecting a comprehensive judgment instruction from a pre-constructed comprehensive judgment instruction set according to the standard requirement corresponding to the test content;
and judging whether the error and the response consistency meet criterion conditions or not by the comprehensive judgment instruction, wherein if the error and the response consistency meet the criterion conditions, the test case is qualified, and otherwise, the test case is unqualified.
Preferably, the state quantity signal comprises an analog quantity signal, a switch opening and a switch closing;
the service requirement instruction comprises: remote control signals, 101/104 recall, read recording directory and file commands.
Preferably, selecting a test case from a pre-constructed test scheme based on the type and the test content of the tested object includes:
selecting a test item from the test scheme according to the type of the tested object and the aspect of the technical index in the test content;
selecting a test item from the test item according to the subclass to which the technical index in the test content belongs;
selecting a test case from the test items according to the power distribution terminal communication protocol, the communication interface content and the power distribution terminal detection flow requirement in the test content;
the test content comprises a power distribution terminal communication protocol, communication interface content, technical indexes and power distribution terminal detection flow requirements.
Preferably, the method further comprises the following steps: and storing the conclusion whether the test case is qualified or not, and recovering the initial states of the tested terminal and the controlled equipment.
Preferably, the test content includes a test type;
the test types include: the method comprises one or more of type test, delivery test, network entry special test, delivery inspection and consignment test.
Based on the same inventive concept, the invention also provides a system for generating the test case of the power distribution terminal, which comprises the following steps: an application layer;
the application layer is used for acquiring the type and the test content of the tested object and selecting a test case from a pre-constructed test scheme based on the type and the test content of the tested object;
the test scheme is constructed in a tree form according to test items, test items and test cases based on the type and the detection type of the tested object.
Preferably, the application layer includes: the test case assembly module is used for assembling the test cases;
the test case management module is used for firstly acquiring the type and the test content of the tested object, generating a test case by combining a pre-constructed tested device instruction set, a pre-constructed controlled device instruction set and a pre-constructed detection process instruction set based on the type and the test content of the tested object, then taking all test cases belonging to the tested object of the same type and the technical indexes of the same subclass as a test item, then taking all test items belonging to the technical indexes of the same aspect as a test item, and finally taking all test items belonging to the tested object of the same type and the same detection type as a test scheme;
the test case assembly module: the method is used for arranging and assembling all test cases of the tested objects of the same type under the same monitoring type in a tree structure according to the sequence of the test scheme, the test item and the test case.
Preferably, the application layer further comprises: a test case design module;
the test case design module is used for determining a service demand instruction from a pre-constructed tested equipment instruction set according to the test content and selecting a state quantity signal from a pre-constructed controlled equipment instruction set; determining a detection flow instruction from a pre-constructed detection flow instruction set according to the detection flow requirement of the test content; and finally, arranging and combining the service requirement instruction and the state quantity signal into a test case by the detection flow instruction.
Preferably, the test case design module is further configured to send the service requirement instruction and the state quantity signal in the test case to a tested object, and then obtain a response condition and an execution result of the tested object;
calculating errors based on the response condition and the execution result of the measured object, and verifying the response consistency; selecting a comprehensive judgment instruction from a pre-constructed comprehensive judgment instruction set according to the standard requirement corresponding to the test content;
and judging whether the error and the response consistency meet criterion conditions or not by the comprehensive judgment instruction, wherein if the error and the response consistency meet the criterion conditions, the test case is qualified, and otherwise, the test case is unqualified.
In still another aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed, implements the method for generating the power distribution terminal test case described above.
Compared with the prior art, the invention has the beneficial effects that:
the invention provides a method for generating a test case of a power distribution terminal, which comprises the following steps: selecting a test case from a pre-constructed test scheme based on the type and the test content of the obtained tested object; the test scheme is formed by constructing all related test cases according to the type and the test content of the tested object; the test scheme is constructed in a tree form according to test items, test items and test cases based on the type and the detection type of the tested object. The invention constructs the test scheme in the form of tree according to the type and the detection type of the tested object and the test items, the test items and the test cases, has more applicable objects, has wide coverage of the test cases, can quickly determine the test cases from the test scheme according to the type and the test content of the tested object, and is convenient and quick.
Drawings
FIG. 1 is a flow chart of a method for selecting task association between a test case and a tested terminal in the prior art;
FIG. 2 is a flow chart of a method for generating a test case of a power distribution terminal according to the present invention;
FIG. 3 is a flowchart of the power distribution terminal test scheme set up and export of the present invention;
FIG. 4 is a block diagram of a test case set corresponding to the test scheme of the present invention;
FIG. 5 is a flow chart of a power distribution terminal test case generation of the present invention;
fig. 6 is a block diagram of a power distribution terminal communication test case design system framework according to the present invention.
Detailed Description
The invention aims to solve the problems of few applicable objects, narrow test case coverage, high difficulty in secondary maintenance management and updating and upgrading of test cases and the like of the conventional power distribution terminal test cases, can realize free arrangement of internal steps of the test cases and flexible adjustment of parameters, can combine and sort, pack and build and export the test cases, can uniformly maintain and manage internal and external interfaces, and is suitable for power distribution terminal detection requirements under different application scenes.
Example 1:
the invention discloses a method for generating a test case of a power distribution terminal, which comprises the following steps of:
s1: obtaining the type and the test content of a tested object;
s2: selecting a test case from a pre-constructed test scheme based on the type and the test content of the tested object;
the test scheme is constructed in a tree form according to test items, test items and test cases based on the type and the detection type of the tested object.
The construction of the test protocol, as shown in FIG. 3, includes:
generating a test case by combining a pre-constructed instruction set of the tested device, an instruction set of the controlled device and an instruction set of a detection flow based on the type and the test content of the tested object;
using a test case set formed by all test cases belonging to the same type of tested object and a certain subclass of technical indexes as a test item;
all the test items belonging to the same type of tested object and the same technical index are used as a test item;
using all test items belonging to the same type of tested object and the same detection type as a test scheme;
the instruction set of the tested equipment is constructed based on a power distribution terminal communication protocol;
the controlled device instruction set is constructed based on the communication interface content;
the detection flow instruction set is constructed based on the detection flow requirements of the power distribution terminal.
The specific content of the test scheme construction is as follows:
the test case suite is composed of a tree structure, and is sequentially composed of a test scheme, a test item and a test case four-layer architecture from top to bottom, as shown in fig. 4, wherein:
the test scheme is specifically a test case set corresponding to all test contents under a certain type of power distribution terminal and a certain detection type;
the test items are used as hierarchical composition units under the test scheme, and specifically are test case sets of technical index test contents of certain aspects of certain types of power distribution terminals, such as function tests, performance tests, wave recording function tests, wave recording performance tests and the like;
the test items are used as the hierarchical composition units under the test items, and are specifically a test case set of a certain subclass of technical index test contents of a certain type of power distribution terminal, such as a remote measurement function, a remote signaling function and a remote control function of a function test subordinate.
After the detection flow instruction is used for arranging and combining the service requirement instruction and the test signal into a test case, the method further comprises the following steps:
after the service demand instruction and the state quantity signal in the test case are transmitted to a tested object, the response condition and the execution result of the tested object are obtained;
calculating errors based on the response condition and the execution result of the measured object, and verifying the response consistency;
selecting a comprehensive judgment instruction from a pre-constructed comprehensive judgment instruction set according to the standard requirement corresponding to the test content;
and judging whether the error and the response consistency meet criterion conditions or not by the comprehensive judgment instruction, wherein if the error and the response consistency meet the criterion conditions, the test case is qualified, and otherwise, the test case is unqualified.
The type and the test content of the tested object select a test case from a pre-constructed test scheme, and the method comprises the following steps:
selecting a test item from the test scheme according to the type of the tested object and the aspect of the technical index in the test content;
selecting a test item from the test item according to the subclass to which the technical index in the test content belongs;
selecting a test case from the test items according to the power distribution terminal communication protocol, the communication interface content and the power distribution terminal detection flow requirement in the test content;
the test content comprises a power distribution terminal communication protocol, communication interface content and power distribution terminal detection flow requirements.
A flowchart of a method for generating a power distribution terminal test case is shown in fig. 5, and includes:
generating a testing step and a component instruction set;
establishing a communication link and completing an initialization process;
controlling to output a test signal, self-checking whether the test signal meets the expectation or sending a control instruction to a power distribution terminal;
collecting and receiving a response result of the power distribution terminal, and checking whether the test is passed;
and returning to the initial state before the test and disconnecting the communication link. The specific contents are as follows:
step 1: generating a test step, and establishing an instruction set; according to the content of the power distribution terminal communication protocol (101, 104, 645, 698.45), generating test steps for realizing the power distribution terminal service application, and constructing a tested device instruction set, wherein the test steps comprise but are not limited to terminal communication terminal acquisition, telemetry data, remote signaling state, file directory reading, total call and other functional test steps. Therefore, the test case generated by the invention can meet the detection items of basic functions, electrical performance, wave recording function and performance, protection, remote signaling anti-shake, feeder automation, power loading, power voltage fluctuation and the like of the power distribution terminal, and solves the problem of small coverage of the existing test case.
According to the content of the communication interface between the main control platform and the industrial control host, generating a test step for realizing the function execution of the hardware equipment subordinate to the industrial control host, and establishing a controlled equipment instruction set, wherein the test step comprises but is not limited to system configuration calling, steady state quantity simulation output, state sequence output, waveform playback output, standard table reading, variable power supply output setting and the like.
According to the requirement of the power distribution terminal detection process, generating a test step for automatically controlling the test process, and establishing a detection process instruction set, including but not limited to time delay, steady state recording comparison, manual confirmation, comparison data, error calculation, condition execution, repeated circulation and the like.
And generating a judgment step according to the standard specification requirements of the power distribution terminal, and establishing a combined judgment instruction set, wherein the combined judgment instruction set comprises but is not limited to error limit judgment, remote signaling state judgment, file format and content judgment and the like.
Step 2: and (4) completing a communication link and an initialization process of the main control platform and the industrial control host, and the main control platform and the power distribution terminal link by utilizing the generated test steps.
And step 3: according to the test content of the power distribution terminal, relevant test steps are selected from various instruction sets, test parameters in the steps are configured, and control output and consistency self-checking comparison of test signals are achieved, namely whether the actual output value of the test signals is consistent with the expected value or not is judged. The test signals include analog quantity signals such as voltage and current injected into the tested terminal through a controlled device instruction set, state quantity signals such as switching-off and switching-on, and service requirement instructions issued to the power distribution terminal by the tested device instruction set, such as commands of remote control, 101/104 calling, reading of recording directories and files of the tested terminal.
And 4, step 4: extracting test data of the response result, and performing comparative analysis; the tested terminal can make a response result after receiving the test signal every time, the response result of the tested terminal and the execution result of the test signal are collected, and the work of key information extraction, error calculation, comparative analysis and the like is automatically completed.
And 5: judging whether the test result is qualified or not; and selecting corresponding instructions from the comprehensive evaluation instruction set as criterion conditions according to standard requirements corresponding to the test contents, and verifying whether the test results meet the requirements.
Step 6: and recovering the initial states of the tested terminal and the controlled equipment and disconnecting the communication link of the tested terminal and the controlled equipment.
Example 2:
the invention based on the same inventive concept also provides a generating system of the test case of the power distribution terminal, which comprises the following steps: an application layer;
the application layer is used for acquiring the type and the test content of the tested object and selecting a test case from a pre-constructed test scheme based on the type and the test content of the tested object;
the test scheme is constructed in a tree form according to test items, test items and test cases based on the type and the detection type of the tested object.
The application layer comprises: the test case assembly module is used for assembling the test cases;
the test case management module is used for firstly acquiring the type and the test content of the tested object, generating a test case by combining a pre-constructed tested device instruction set, a pre-constructed controlled device instruction set and a pre-constructed detection process instruction set based on the type and the test content of the tested object, then taking all test cases belonging to the tested object of the same type and the technical indexes of the same subclass as a test item, then taking all test items belonging to the technical indexes of the same aspect as a test item, and finally taking the tested object of the same type and all test items under the same detection type as a test scheme;
the test case assembly module: the method is used for arranging and assembling all test cases of the tested objects of the same type under the same monitoring type in a tree structure according to the sequence of the test scheme, the test item and the test case.
The application layer further comprises: a test case design module;
the test case design module is used for determining a service demand instruction from a pre-constructed tested equipment instruction set according to the test content and selecting a state quantity signal from a pre-constructed controlled equipment instruction set; determining a detection flow instruction from a pre-constructed detection flow instruction set according to the detection flow requirement of the test content; and finally, arranging and combining the service requirement instruction and the state quantity signal into a test case by a detection flow instruction.
The test case design module is also used for sending the service requirement instruction and the state quantity signal in the test case to the tested object to obtain the response condition and the execution result of the tested object;
calculating errors based on the response condition and the execution result of the tested object, and verifying the response consistency; selecting a comprehensive evaluation instruction from a pre-constructed comprehensive evaluation instruction set according to a standard requirement corresponding to the test content;
and judging whether the error and the response consistency meet the criterion condition or not by the comprehensive judgment instruction, wherein if the error and the response consistency meet the criterion condition, the test case is qualified, and otherwise, the test case is unqualified.
The following describes a detailed description of a power distribution terminal test case generation system, as shown in fig. 6:
the power distribution terminal test case generation system mainly adopts a modularized and hierarchical architecture design, and comprises an interface layer and a support layer besides an application layer. The interface layer comprises a power distribution terminal testing interface, a testing software interface and a controlled equipment (detection platform hardware equipment) control interface. The power distribution terminal test interface is used for interacting with the tested power distribution terminal through communication protocol information such as 101+, 104 and 104+, and is convenient for test software to obtain the current response state of the tested power distribution terminal; the test software interface is used for loading test software and identifying test case information; the controlled equipment control interface is used for performing information interaction between the test software and the industrial control host of the controlled equipment in an XML protocol format standard, transmitting a file in an FTP protocol, controlling the controlled equipment to execute a test command issued by the test software, and feeding back the execution condition of the test command, wherein the controlled equipment comprises but is not limited to a standard source, a standard table, a wave recorder, an electronic load, a state quantity simulator, a synchronous clock instrument and a switching device.
The support layer is mainly used for obtaining a test step of a minimum composition unit of a test case, and the test case is an ordered set formed by arranging and combining a plurality of test steps according to a preset test flow and is used for realizing detection and verification of a specific technical index of the power distribution terminal. The test cases are classified according to the functions of the test steps in the test cases, and a controlled equipment instruction set, a tested terminal instruction set, a flow control instruction set and a combined judgment instruction set can be formed. The controlled equipment instruction set executes the output, recording and measurement reporting of analog electrical quantity signals, the output and receiving of state quantity signals and the test control commands of electronic loads, synchronous clock instruments and switching devices by using the content of a controlled equipment control interface protocol. The tested terminal instruction set utilizes the power distribution terminal test interface, the test software can realize information interaction with the tested power distribution terminal, and the interaction information mainly comprises control type, acquisition type, configuration type, active uploading type service information, initialization, link maintenance and other non-message type services. The flow control instruction set is used for controlling the execution flow of the test case, storing and analyzing the test data and the response information and calculating errors, and comprises but is not limited to instructions of time delay, manual confirmation, condition circulation, comparison data, waveform comparison and the like. And the judgment condition instruction set is used for setting certain judgment conditions and automatically judging whether the test is qualified or not for the test result.
The application layer mainly includes a test case management module, a test case design module, a test case assembly module, a test case export module, an instruction set management module, a database management module, an interface protocol management module, and a personnel authority management module (not necessary), and the respective functions are summarized below.
1) The test case management module: the system is used for managing the creation, deletion, modification, remarking, copying and the like of a test case and a test case set based on the acquired type and test content of a tested object, and mainly comprises the management of the contents of name, internal composition structure sequencing, test step parameter configuration and the like of four levels of the test case, a test item and a test scheme;
2) a test case design module: the test case is used for loading the test steps, designating corresponding sequencing and configuring parameter configuration of the test steps, and generating a test case for verifying a certain technical index of the power distribution terminal;
3) the test case assembly module: the test case set is used for arranging and assembling a single test case in a tree combination mode, and a test case set is formed according to the subordinate relation of test contents;
4) the test case export module: the test case set is compressed by a file to form a packed export;
5) the command set management module: the method is used for carrying out operations of creating, deleting, changing instruction names and the like on four types of instruction sets of controlled equipment, a tested terminal, process control and judging conditions.
6) A database management module: the method is used for storing and managing the data information of the power distribution terminal, the instruction set and the test case.
7) An interface protocol management module: the method is used for carrying out unified management on interface protocol contents, realizing that the detection platform supports loading and analyzing of test case set contents, and the controlled equipment and the tested terminal can interact with normal information of the detection platform, and mainly comprises information maintenance management such as format of a communication protocol, function code type, point table and parameters.
8) The personnel authority management module: the method is used for uniformly managing the personnel roles and the permissions owned by the personnel roles, and mainly comprises the steps of adding and deleting personnel, modifying the personnel names and login passwords, adding and deleting the personnel roles, modifying the role names and managing the role permissions.
The invention is based on the design concepts of software and hardware detection platform decoupling and test software and test case deconstruction, can support the user-defined flexible arrangement and updating and upgrading of the test case in the test process, solves the defects of high coupling degree of the existing case and the test software and the need of professional operation and maintenance, and promotes the control and upgrading cost of the test case.
The generated test case is suitable for a station terminal, a feeder terminal, an intelligent distribution transformer terminal, a primary and secondary fusion complete set terminal, a novel platform area fusion terminal and a primary and secondary fusion standard terminal, covers the existing full-type automatic terminal equipment of the 10kV power distribution secondary side, and solves the problem that the existing test case is few in applicable objects through an electromagnetic mutual inductor or a novel electronic sensor and acquisition modes such as in-situ digitization of the electromagnetic mutual inductor or the novel electronic sensor.
Based on the same inventive concept, in yet another embodiment of the present invention, the present invention further provides a storage medium, specifically a computer-readable storage medium (Memory), which is a Memory device in a computer device and is used for storing programs and data. It is understood that the computer readable storage medium herein can include both built-in storage media in the computer device and, of course, extended storage media supported by the computer device. The computer-readable storage medium provides a storage space storing an operating system of the terminal. Also, one or more instructions, which may be one or more computer programs (including program code), are stored in the memory space and are adapted to be loaded and executed by the processor. It should be noted that the computer-readable storage medium may be a high-speed RAM memory, or may be a non-volatile memory (non-volatile memory), such as at least one disk memory. One or more instructions stored in the computer-readable storage medium may be loaded and executed by the processor to implement the corresponding steps of the method for generating a power distribution terminal test case in the foregoing embodiments.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The present invention is not limited to the above embodiments, and any modifications, equivalent substitutions, improvements, etc. within the spirit and principle of the present invention are included in the scope of the claims of the present invention.

Claims (13)

1. A method for generating a test case of a power distribution terminal is characterized by comprising the following steps:
obtaining the type and the test content of a tested object;
selecting a test case from a pre-constructed test scheme based on the type of the tested object and the test content;
the test scheme is formed by constructing all related test cases according to the type and the test content of the tested object;
the test scheme is constructed in a tree form according to test items, test items and test cases based on the type and the detection type of the tested object.
2. The method of claim 1, wherein the constructing of the test protocol comprises:
generating a test case by combining a pre-constructed instruction set of the tested device, an instruction set of the controlled device and an instruction set of the detection flow based on the type and the test content of the tested object;
using a test case set formed by all test cases belonging to the same type of tested object and a certain subclass of technical indexes as a test item;
all the test items belonging to the same type of tested object and the same technical index are used as a test item;
using all test items belonging to the same type of tested object and the same detection type as a test scheme;
wherein the device under test instruction set is constructed based on a power distribution terminal communication protocol;
the controlled device instruction set is constructed based on communication interface content;
the detection flow instruction set is constructed based on the detection flow requirements of the power distribution terminal.
3. The method of claim 2, wherein generating the test case based on the type and the test content of the tested object by combining a pre-constructed instruction set of the tested device, an instruction set of the controlled device, and an instruction set of the test flow comprises:
determining a service demand instruction from a pre-constructed instruction set of the tested equipment according to the test content, and selecting a state quantity signal from a pre-constructed instruction set of the controlled equipment;
determining a detection flow instruction from a pre-constructed detection flow instruction set according to the detection flow requirement of the test content;
and arranging and combining the service requirement instruction and the state quantity signal into a test case by the detection flow instruction.
4. The method of claim 3, after combining by the detection flow instructions the service requirement instructions and state quantity signalizations into test cases, further comprising:
after the service demand instruction and the state quantity signal in the test case are transmitted to a tested object, the response condition and the execution result of the tested object are obtained;
calculating errors based on the response condition and the execution result of the measured object, and verifying the response consistency;
selecting a comprehensive judgment instruction from a pre-constructed comprehensive judgment instruction set according to the standard requirement corresponding to the test content;
and judging whether the error and the response consistency meet criterion conditions or not by the comprehensive judgment instruction, wherein if the error and the response consistency meet the criterion conditions, the test case is qualified, and otherwise, the test case is unqualified.
5. The method of claim 3, wherein the state quantity signals comprise analog quantity signals, switch opening, switch closing;
the service requirement instruction comprises: remote control signals, 101/104 recall, read recording directory and file commands.
6. The method of claim 2, wherein selecting test cases from a pre-built test plan based on the type and test content of the measurand comprises:
selecting a test item from the test scheme according to the type of the tested object and the aspect of the technical index in the test content;
selecting a test item from the test item according to the subclass to which the technical index in the test content belongs;
selecting a test case from the test items according to the power distribution terminal communication protocol, the communication interface content and the power distribution terminal detection flow requirement in the test content;
the test content comprises a power distribution terminal communication protocol, communication interface content, technical indexes and power distribution terminal detection flow requirements.
7. The method of claim 4, further comprising: and storing the conclusion whether the test case is qualified or not, and recovering the initial states of the tested terminal and the controlled equipment.
8. The method of claim 1, wherein the test content comprises a test type;
the test types include: the method comprises one or more of type test, delivery test, network entry special test, delivery inspection and consignment test.
9. A system for generating a test case of a power distribution terminal is characterized by comprising: an application layer;
the application layer is used for acquiring the type and the test content of the tested object and selecting a test case from a pre-constructed test scheme according to the type and the test content of the tested object;
the test scheme is constructed in a tree form according to test items, test items and test cases based on the type and the detection type of the tested object.
10. The system of claim 9, wherein the application layer comprises: the test case assembly module is used for assembling the test cases;
the test case management module is used for firstly acquiring the type and the test content of a tested object, generating a test case by combining a pre-constructed tested device instruction set, a pre-constructed controlled device instruction set and a pre-constructed detection process instruction set based on the type and the test content of the tested object, then taking all test cases belonging to the tested object of the same type and the technical indexes of the same subclass as a test item, then taking all test items belonging to the technical indexes of the same aspect as a test item, and finally taking all test items belonging to the tested object of the same type and the detection type as a test scheme;
the test case assembly module: the method is used for arranging and assembling all test cases of the tested objects of the same type under the same monitoring type in a tree structure according to the sequence of the test scheme, the test item and the test case.
11. The system of claim 10, wherein the application layer further comprises: a test case design module;
the test case design module is used for determining a service demand instruction from a pre-constructed tested equipment instruction set according to the test content and selecting a state quantity signal from a pre-constructed controlled equipment instruction set; determining a detection flow instruction from a pre-constructed detection flow instruction set according to the detection flow requirement of the test content; and finally, arranging and combining the service requirement instruction and the state quantity signal into a test case by the detection flow instruction.
12. The system of claim 11, wherein the test case design module is further configured to obtain a response condition and an execution result of a tested object after issuing the service requirement instruction and the state quantity signal in the test case to the tested object;
calculating errors based on the response condition and the execution result of the measured object, and verifying the response consistency; selecting a comprehensive judgment instruction from a pre-constructed comprehensive judgment instruction set according to the standard requirement corresponding to the test content;
and judging whether the error and the response consistency meet criterion conditions or not by the comprehensive judgment instruction, wherein if the error and the response consistency meet the criterion conditions, the test case is qualified, and otherwise, the test case is unqualified.
13. A computer-readable storage medium having stored thereon a computer program which, when executed, implements a method of generating power distribution terminal test cases as claimed in any one of claims 1 to 8.
CN202111322981.8A 2021-11-10 2021-11-10 Method and system for generating test case of power distribution terminal and storage medium Active CN113778903B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111322981.8A CN113778903B (en) 2021-11-10 2021-11-10 Method and system for generating test case of power distribution terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111322981.8A CN113778903B (en) 2021-11-10 2021-11-10 Method and system for generating test case of power distribution terminal and storage medium

Publications (2)

Publication Number Publication Date
CN113778903A true CN113778903A (en) 2021-12-10
CN113778903B CN113778903B (en) 2022-04-05

Family

ID=78956970

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111322981.8A Active CN113778903B (en) 2021-11-10 2021-11-10 Method and system for generating test case of power distribution terminal and storage medium

Country Status (1)

Country Link
CN (1) CN113778903B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114812695A (en) * 2022-06-27 2022-07-29 芯耀辉科技有限公司 Product testing method and device, computer equipment and storage medium
CN115361325A (en) * 2022-08-24 2022-11-18 深圳供电局有限公司 System, method, medium and terminal for testing network performance of intelligent power distribution terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104569688A (en) * 2015-01-22 2015-04-29 国家电网公司 Automatic testing system and method for power distribution terminal
US20170082670A1 (en) * 2015-09-22 2017-03-23 Xj Group Corporation Distributed Test Method Applicable to System-Level Test of Intelligent High Voltage Equipment
CN109992497A (en) * 2017-12-29 2019-07-09 中国电力科学研究院有限公司 A kind of distribution power automation terminal standard testing use-case updates the method and system of publication
CN110308358A (en) * 2018-03-20 2019-10-08 中国电力科学研究院有限公司 A kind of distribution power automation terminal test method and device
CN112904099A (en) * 2019-11-19 2021-06-04 中国电力科学研究院有限公司 Automatic parallel testing method and system for power distribution terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104569688A (en) * 2015-01-22 2015-04-29 国家电网公司 Automatic testing system and method for power distribution terminal
US20170082670A1 (en) * 2015-09-22 2017-03-23 Xj Group Corporation Distributed Test Method Applicable to System-Level Test of Intelligent High Voltage Equipment
CN109992497A (en) * 2017-12-29 2019-07-09 中国电力科学研究院有限公司 A kind of distribution power automation terminal standard testing use-case updates the method and system of publication
CN110308358A (en) * 2018-03-20 2019-10-08 中国电力科学研究院有限公司 A kind of distribution power automation terminal test method and device
CN112904099A (en) * 2019-11-19 2021-06-04 中国电力科学研究院有限公司 Automatic parallel testing method and system for power distribution terminal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘海涛 等: "配电自动化终端设备一体化检测平台的构建与应用", 《内蒙古电力技术》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114812695A (en) * 2022-06-27 2022-07-29 芯耀辉科技有限公司 Product testing method and device, computer equipment and storage medium
CN114812695B (en) * 2022-06-27 2022-10-28 芯耀辉科技有限公司 Product testing method and device, computer equipment and storage medium
CN115361325A (en) * 2022-08-24 2022-11-18 深圳供电局有限公司 System, method, medium and terminal for testing network performance of intelligent power distribution terminal

Also Published As

Publication number Publication date
CN113778903B (en) 2022-04-05

Similar Documents

Publication Publication Date Title
CN113778903B (en) Method and system for generating test case of power distribution terminal and storage medium
CN102005818B (en) Method for detecting consistency of SCD (System Configuration Document) and IED (Intelligent Electronic Device) model on line
CN202533519U (en) Fully automatic closed loop test system of protective relaying device
CN108334370B (en) Software automatic incremental updating and upgrading method of distributed test system
CN100498606C (en) System for operating an installation by editing graphic objects
CN112180897B (en) Relay protection/measurement and control device automatic test system and method based on universal test template
CN107505520B (en) Scene type intelligent automatic test platform and method
CN110427314A (en) A kind of metering automation end message security reliability test method and system
CN111224845A (en) Equipment automatic testing system and method based on Internet of things cloud
CN106405294B (en) Portable power distribution product transmission calibrator and implementation test method thereof
CN109816349A (en) A kind of test verification management platform
CN113064826B (en) Automatic test platform of high-voltage SVG product based on RT-LAB
CN112583119A (en) Low-voltage intelligent platform area simulation platform system based on intelligent fusion terminal
CN114518584A (en) Automatic test system for satellite performance in batches
CN107247827B (en) Virtual terminal model modeling and automatic wiring method based on machine learning
CN113705026B (en) Digital modeling and intelligent detection system for power secondary equipment
CN114238081A (en) Method and system suitable for small satellite batch test
CN106291329A (en) A kind of have the automatic test system detecting and joining the distant function of a terminal three
CN103344850A (en) System and method of intelligent substation automatic testing based on test formwork technology
CN115794624A (en) Closed-loop testing method and system for single automation device of intelligent substation
CN116383061A (en) Method and related device for testing basic platform interface of substation control system
CN112181726B (en) Redundant backup measurement and control and four-unified measurement and control consistency verification test system and method
CN114123482A (en) Main plant station information joint debugging decoupling method
CN113704099A (en) Test script generation method and equipment for spacecraft power system evaluation
CN113884790A (en) Automatic test platform of intelligent substation on-site protection device and construction method thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant