CN111831561B - Plug-in type test case library system - Google Patents

Plug-in type test case library system Download PDF

Info

Publication number
CN111831561B
CN111831561B CN202010598634.7A CN202010598634A CN111831561B CN 111831561 B CN111831561 B CN 111831561B CN 202010598634 A CN202010598634 A CN 202010598634A CN 111831561 B CN111831561 B CN 111831561B
Authority
CN
China
Prior art keywords
test case
interface
test
module
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010598634.7A
Other languages
Chinese (zh)
Other versions
CN111831561A (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.)
Xuchang Ketop Testing Research Institute Co ltd
Original Assignee
Xuchang Ketop Testing Research Institute Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xuchang Ketop Testing Research Institute Co ltd filed Critical Xuchang Ketop Testing Research Institute Co ltd
Priority to CN202010598634.7A priority Critical patent/CN111831561B/en
Publication of CN111831561A publication Critical patent/CN111831561A/en
Application granted granted Critical
Publication of CN111831561B publication Critical patent/CN111831561B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

A plug-in type test case library system is provided with a command module, a test case name rule library module, a test case management module and a test case editing and generating module, wherein the test case editing and generating module is provided with a public interface library unit, a business interface library unit, a test case editing unit and a test case generating unit. The plug-in type test case library system can be accurately and flexibly combined according to actual test requirements, test editing work is simplified, and complicated operation of manpower in the test process is reduced.

Description

Plug-in type test case library system
Technical Field
The invention relates to the technical field of telecommunication test, in particular to a plug-in type test case library system.
Background
The IEC 61850 protocol is widely applied to the field of substation automation and is a bridge for data transmission among process layer equipment, spacer layer equipment and station control layers. Power industry Standard DL/T860.10-2018 Power Automation communication network and System part 10: consistency testing specifies detailed test cases, the test case library is a very important part of the test tool, and the comprehensiveness and integrity of the test contents are directly affected.
At present, the realization of the test case library in the IEC 61850 test tool is mainly realized by a method of combining message combination with script editing.
The prior method has the defects that: 1) The development difficulty is high, the requirements on the developers are high, and public information cannot be reused; 2) The test case library has large editing workload and is easy to make mistakes; 3) The test cases cannot be flexibly combined according to the test requirements.
Accordingly, it is desirable to provide a plug-in test case library system that overcomes the deficiencies of the prior art.
Disclosure of Invention
The invention aims to avoid the defects of the prior art and provide a plug-in type test case library system, which can be accurately and flexibly combined according to actual test requirements, simplify test editing work and reduce manual use cost.
The above object of the present invention is achieved by the following means.
The plug-in type test case library system is provided with a command module, a test case name rule library module, a test case management module and a test case editing generation module, wherein the command module is respectively connected with the test case name rule library module and the test case management module, and the test case management module is respectively connected with the test case name rule library module and the test case editing generation module;
the command module is used for sending a test command containing a specified test case instruction to the test case management module and sending a test case name of a corresponding test case to the test case management module by calling the test case name of the corresponding test case from the test case name rule base module;
the test case management module retrieves the case rule of the corresponding test case from the test case name rule base module according to the test command and sends the test case name to the test case editing and generating module;
the test case editing and generating module retrieves the corresponding test case data type interface and interface function according to the case rule and the test case name, and generates the test case according to the retrieved test case data type interface and interface function through the corresponding function logic rule.
The test case editing and generating module is provided with a business interface library unit, a test case editing unit and a test case generating unit, wherein the business interface library unit, the test case generating unit and the test case management module are respectively connected with the test case editing unit, and the test case editing unit is connected with the test case generating unit;
the test case editing and generating module is also provided with a public interface library unit, wherein the public interface library unit is connected with the test case editing unit and is used for providing a required conversion interface of the test case. The test case editing unit is used for retrieving the required conversion interface from the common interface library unit according to the case rule and the test case name and sending the retrieved required conversion interface to the case generating unit.
The test case management module sends the case rules and the test case names to the test case editing unit respectively,
the public interface library unit is used for providing a required conversion interface of the test case;
the business interface library unit is used for providing interfaces required by cases;
the test case editing unit is used for retrieving at least one of a required conversion interface or a required interface from the public interface library unit and the service interface library unit according to the case rule and the test case name, and sending the retrieved required interface, the required conversion interface, the case rule and the test case name to the case generating unit;
the case generation unit generates a test case with a case name according to the test case name, the case rule, the required interface and the required conversion interface.
The required conversion interface comprises a data type conversion interface, a data model references a format conversion interface and an error code conversion interface.
The above-mentioned required interfaces include Application association interface, server & Logical Device & Logical Node & Data interface, data Set interface, data Set Definition interface, subsystem interface, setting Group Selection interface, setting Group Definition interface, unbuffered Reporting interface, buffered Reporting interface, logging interface, GOOSE interface, GSSE interface, control interface and Files interface.
The test case library is also provided, and is connected with a test case generation unit, the test case generation unit sends the test cases to the test case library, and the test case library stores the test cases and is used for subsequent calling.
The test case generation unit is connected with the test case name rule base module, and the test case generation unit sends the test case to the test case name rule base module, and the test case name rule base module corresponds to the test command according to the test case, shields the case rule extracted from the test command and the test case name.
The plug-in type test case library system is provided with a command module, a test case name rule library module, a test case management module and a test case editing generation module, wherein the command module is respectively connected with the test case name rule library module and the test case management module, and the test case editing unit is respectively connected with the test case generation unit and the test case name rule library module; the command module is used for sending a test command containing a specified test case instruction to the test case management module and calling the test case name of the corresponding test case from the test case name rule base module to the test case management module; the test case management module retrieves the case rule corresponding to the test case from the test case name rule base module according to the test command and sends the test case name to the test case editing and generating module; the test case editing and generating module invokes corresponding test case data type interfaces and interface functions according to the case rules and the test case names, and generates test cases according to the invoked test case data type interfaces and interface functions through the corresponding function logic rules. The plug-in type test case library system can be accurately and flexibly combined according to actual test requirements, test editing work is simplified, and manual use cost is reduced.
Drawings
The invention is further illustrated by the accompanying drawings, which are not to be construed as limiting the invention in any way.
Fig. 1 is a schematic structural view of embodiment 1 of the present invention.
Fig. 2 is a schematic structural view of embodiment 2 of the present invention.
In fig. 1 to 2, comprising:
a command module 100, a test case name rule base module 200, and a test case management module 300;
a test case editing generation module 400, a common interface library unit 401, a business interface library unit 402, a test case editing unit 403, and a test case generation unit 404;
the test case library 500.
Detailed Description
The invention will be further described with reference to the following examples.
Example 1.
As shown in fig. 1, a plug-in type test case library system is provided with a command module 100, a test case name rule library module 200, a test case management module 300 and a test case editing generation module 400, wherein the command module 100 is respectively connected with the test case name rule library module 200 and the test case management module 300, and the test case management module 300 is respectively connected with the test case name rule library module 200 and the test case editing generation module 400;
the command module 100 is configured to send a test command including a command specifying a test case to the test case management module 300 and to call a test case name of a corresponding test case from the test case name rule base module 200 to the test case management module 300;
the test case management module 300 retrieves the case rule corresponding to the test case from the test case name rule base module 200 according to the test command and sends the test case name to the test case editing generation module 400;
the test case editing and generating module 400 retrieves corresponding test case data type interfaces and interface functions according to the case rules and the test case names, and generates test cases according to the retrieved test case data type interfaces and interface functions through the corresponding function logic rules.
Specifically, the test case editing generation module 400 is provided with a service interface library unit 402, a test case editing unit 403 and a test case generation unit 404, where the service interface library unit 402, the test case generation unit 404 and the test case management module 300 are respectively connected to the test case editing unit 403, and the test case editing unit 403 is connected to the test case generation unit 404;
the test case editing generation module 400 is further provided with a common interface library unit 401, the common interface library unit 401 is connected to the test case editing unit 403, the common interface library unit 401 is used for providing a required conversion interface of the test case, and the test case editing unit 403 is used for retrieving the conversion interface from the common interface library unit 401 according to the case rule and the test case name and sending the retrieved required conversion interface to the case generation unit.
The test case management module 300 sends the case rules and test case names to the test case edit unit 403,
the common interface library unit 401 is used for providing a required conversion interface of the test case, and the required conversion interface is required to retrieve the test case according to the actual test requirement when the required conversion interface is used in the actual test.
The service interface library unit 402 is used for providing interfaces required by cases;
the test case editing unit 403 is configured to retrieve at least one of a required conversion interface or a required interface from the common interface library unit 401 and the service interface library unit 402 according to the case rule and the test case name, and send the retrieved required interface, required conversion interface, case rule and test case name to the case generating unit;
the case generation unit generates a test case with a case name according to the test case name, the case rule, the required interface and the required conversion interface.
The required conversion interface comprises a data type conversion interface, a data model references a format conversion interface and an error code conversion interface. The data model refers to the format conversion interface, and the error code conversion interface respectively and correspondingly comprises corresponding interface functions.
The above-mentioned required interfaces include Application association interface, server & Logical Device & Logical Node & Data interface, data Set interface, data Set Definition interface, subsystem interface, setting Group Selection interface, setting Group Definition interface, unbuffered Reporting interface, buffered Reporting interface, logging interface, GOOSE interface, GSSE interface, control interface and Files interface. Wherein the desired interfaces each comprise a function of the desired interface. It should be noted that a function corresponding to the required interface is built in the required interface. For example, application association interface functions are built in the Application association interface, server & Logical Device & Logical Node & Data interface is built in the Server & Logical Device & Logical Node & Data interface, data Set interface functions are built in the Data Set interface, data Set Definition interface functions … … Control interface is built in the Data Set Definition interface, control interface functions are built in the Files interface, and Files interface functions are built in the Files interface.
It should be noted that, according to the case rules of the test cases in the test case name rule base module 200, the required conversion interface in the common interface base unit 401 and the required interface in the service interface base unit 402 are described in terms of DL/T860.10-2018 power automation communication network and system part 10: all test cases and their corresponding rules, which are defined in consistency tests, related to the device, and support extensions. As is common knowledge to those of ordinary skill in the art, the specific structural details are not described in detail.
The plug-in type test case library system is provided with a command module, a test case name rule library module, a test case management module and a test case editing generation module, wherein the test case editing generation module is provided with a public interface library unit, a business interface library unit, a test case editing unit and a test case generation unit; the case generation unit generates a test case with a case name according to the test case name, the case rule, the required interface and the required conversion interface. The plug-in type test case library system can be accurately and flexibly combined according to actual test requirements, test editing work is simplified, and complicated operation of manpower in the test process is reduced.
Example 2.
A plug-in type test case library system, which is otherwise identical to embodiment 1, except that a test case library 500 is further provided, the test case library 500 is connected to the test case generation unit 404, the test case generation unit 404 sends test cases to the test case library 500, and the test case library 500 stores the test cases for subsequent recall.
The test case generation unit 404 is connected to the test case name rule base module 200, and the test case generation unit 404 sends the test case to the test case name rule base module 200, and the test case name rule base module 200 corresponds to the test command according to the test case, masks the case rule extracted from the test command, and makes the test case name.
The used test cases can be collected and sorted through the test case library, and the new test cases can be invoked for the follow-up. Meanwhile, the test case library is connected with the test case name rule library module, used test cases can be shielded at the first time when the test command module sends out a test command, and the test cases are displayed for testing through the test case library.
Example 3.
A plug-in test case library system having the same structure as any one of embodiments 1 and 2, except that the edit instruction retrieves the unshielded test case name SrvN1 from the test case name rule library module 200 and sends it to the test case management module 300;
after receiving the edit command of SrvN1, the test case management module 300 retrieves the test case SrvN1 (including rule) from the test case name rule base module 200, and sends the test case SrvN1 to the test case editing unit 403;
after receiving the test case SrvN1 and the rule, the test case edit unit 403 retrieves the Data type conversion interface and the error code conversion interface function from the common interface library unit 401, the Server & logic Device & logic Node & Data interface in the service interface library unit 402, the getlogic Device direct function, the GetLogicalNodeDirectory (DATA) function, the getdatadirect function, the GetDataDefinition function, the GetDataValues function, the GetAllDataValues function, the SetDataValues function.
The test case editing unit 403 sends the called interface and function to the test case generating unit 404, the test case generating unit 404 calls and executes the corresponding function according to the SrvN1 rule, in the executing process, checks whether the data type conversion interface and the error code conversion interface function need to be called according to the program need, if so, calls the corresponding function, generates the test case, and is named SrvN1;
the test case generation unit 404 sends the test case SrvN1 to the test case library 500, and the test case library 500 performs archiving management on the received test cases for other module calls;
the test case generation unit 404 sends the test case SrvN1 to the test case name and rule base, which masks SrvN1 from being invoked by the test case management module 300.
Finally, it should be noted that the above embodiments are only for illustrating the technical solution of the present invention and not for limiting the scope of the present invention, and although the present invention has been described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions can be made to the technical solution of the present invention without departing from the spirit and scope of the technical solution of the present invention.

Claims (7)

1. A plug-in test case library system, characterized by: the system comprises a command module, a test case name rule base module, a test case management module and a test case editing generation module, wherein the command module is respectively connected with the test case name rule base module and the test case management module, and the test case management module is respectively connected with the test case name rule base module and the test case editing generation module;
the command module is used for sending a test command containing a specified test case instruction to the test case management module and calling a test case name of a corresponding test case from the test case name rule base module to the test case management module;
the test case management module retrieves case rules corresponding to the test cases from the test case name rule base module according to the test command and sends the test case names to the test case editing and generating module;
the test case editing and generating module invokes corresponding test case data type interfaces and interface functions according to the case rules and the test case names, and generates test cases according to the invoked test case data type interfaces and interface functions through corresponding function logic rules.
2. The plug-in test case library system of claim 1, wherein: the test case editing and generating module is provided with a service interface library unit, a test case editing unit and a test case generating unit, wherein the service interface library unit, the test case generating unit and the test case management module are respectively connected with the test case editing unit, and the test case editing unit is connected with the test case generating unit;
the test case management module sends the case rules and test case names to the test case editing unit respectively,
the business interface library unit is used for providing interfaces required by cases;
the test case editing unit is used for retrieving at least one of a required conversion interface or a required interface from the public interface library unit and the service interface library unit according to the case rule and the test case name, and sending the retrieved required interface, the required conversion interface, the case rule and the test case name to the case generating unit;
the case generation unit generates a test case with a case name according to the test case name, the case rule, the required interface and the required conversion interface.
3. The plug-in test case library system of claim 2, wherein:
the test case edit generating module is further provided with a common interface library unit, which is connected with the test case edit unit,
the common interface library unit is used for providing a required conversion interface of the test cases.
4. The plug-in test case library system of claim 3, wherein: the required conversion interface comprises a data type conversion interface, a data model reference format conversion interface and an error code conversion interface.
5. The plug-in test case library system of claim 4, wherein: the required interfaces include Application association interface, server & Logical Device & Logical Node & Data interface, data Set interface, data Set Definition interface, subsystem interface, setting Group Selection interface, setting Group Definition interface, unbuffered Reporting interface, buffered Reporting interface, logging interface, GOOSE interface, GSSE interface, control interface and Files interface.
6. The plug-in test case library system of claim 5, wherein: the test case generation unit sends the test cases to the test case library, and the test case library stores the test cases and is used for subsequent calling.
7. The plug-in test case library system of claim 6, wherein: the test case generation unit is connected with the test case name rule base module, and sends the test case to the test case name rule base module, and the test case name rule base module corresponds to the test command according to the test case, shields the case rule extracted from the test command and the test case name.
CN202010598634.7A 2020-06-28 2020-06-28 Plug-in type test case library system Active CN111831561B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010598634.7A CN111831561B (en) 2020-06-28 2020-06-28 Plug-in type test case library system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010598634.7A CN111831561B (en) 2020-06-28 2020-06-28 Plug-in type test case library system

Publications (2)

Publication Number Publication Date
CN111831561A CN111831561A (en) 2020-10-27
CN111831561B true CN111831561B (en) 2024-01-12

Family

ID=72899438

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010598634.7A Active CN111831561B (en) 2020-06-28 2020-06-28 Plug-in type test case library system

Country Status (1)

Country Link
CN (1) CN111831561B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1601483A (en) * 2004-10-22 2005-03-30 中国工商银行 Automation software testing system based on script explanatory tool
CN105138621A (en) * 2015-08-14 2015-12-09 浪潮电子信息产业股份有限公司 Configuration optimization system and method for Sybase ASE database
WO2019165691A1 (en) * 2018-02-28 2019-09-06 平安科技(深圳)有限公司 Method, apparatus and device for automatically generating test case, and readable storage medium
CN111159049A (en) * 2019-12-31 2020-05-15 中国银行股份有限公司 Automatic interface testing method and system
CN111177005A (en) * 2019-12-31 2020-05-19 中国银行股份有限公司 Service application testing method, device, server and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1601483A (en) * 2004-10-22 2005-03-30 中国工商银行 Automation software testing system based on script explanatory tool
CN105138621A (en) * 2015-08-14 2015-12-09 浪潮电子信息产业股份有限公司 Configuration optimization system and method for Sybase ASE database
WO2019165691A1 (en) * 2018-02-28 2019-09-06 平安科技(深圳)有限公司 Method, apparatus and device for automatically generating test case, and readable storage medium
CN111159049A (en) * 2019-12-31 2020-05-15 中国银行股份有限公司 Automatic interface testing method and system
CN111177005A (en) * 2019-12-31 2020-05-19 中国银行股份有限公司 Service application testing method, device, server and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
一种跨业务场景的测试案例组构建方法;张丹阳;郑荣廷;;中国金融电脑(第09期);全文 *

Also Published As

Publication number Publication date
CN111831561A (en) 2020-10-27

Similar Documents

Publication Publication Date Title
CN108366067B (en) System and method for testing consistency of universal service protocol of power system
CN104123227A (en) Method for automatically generating testing cases
CN101882107A (en) Method and device for automatically testing WEB (World Wide Web) application
CN104483842A (en) Regulation and control integrated automatic master station comparison method
CN102306122A (en) Automated testing method and equipment
CN105515189A (en) Integrated intelligent gateway machine configuration method based on unified modeling of transformer station
CN113612654A (en) Vehicle-mounted gateway function testing method based on database
CN108984725A (en) A kind of inter-network lock method of data synchronization
CN111881044B (en) Automatic test case matching system according to configuration files
CN113419920A (en) Real-time monitoring method for joint debugging test process of simulation test system of Internet of things management platform
CN112115044A (en) Automatic testing method and system for electric power information communication equipment
CN103913672A (en) Satellite low-frequency interface automatic testing system
CN111831561B (en) Plug-in type test case library system
CN105933396B (en) A kind of each canalization interface of collaboration realizes the method and system of long flow
CN116383061A (en) Method and related device for testing basic platform interface of substation control system
CN116599864A (en) Communication test system, method, equipment and storage medium for automatic interface generation and use case modular development
CN113281594B (en) System and method for realizing remote intelligent automatic test for relay protection
CN110445752A (en) A kind of implementation method for supporting a variety of CAN devices and flexibly parse all kinds of CAN messages
CN101217332A (en) Alarming test method and test control platform of synchronous digital system device
CN103647760A (en) Manufacturing message specification (MMS) communication platform of intelligent substation digital protection device and access method of manufacturing message specification (MMS) communication platform
CN114123482A (en) Main plant station information joint debugging decoupling method
CN114218105A (en) UI automatic regression testing system based on configuration application mode
CN112256261A (en) Monitoring script visual configuration method based on power grid collaborative service scene
CN113884790A (en) Automatic test platform of intelligent substation on-site protection device and construction method thereof
KR20010027192A (en) Method for processing message from communication system in pilot terminal

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 461000 No. 17, Shangde Road, Xuchang City, Henan Province

Applicant after: XUCHANG KETOP TESTING RESEARCH INSTITUTE CO.,LTD.

Address before: 461000 Intersection of Weiwu Avenue and Shangde Road, Xuchang City, Henan Province

Applicant before: XUCHANG KETOP TESTING RESEARCH INSTITUTE CO.,LTD.

GR01 Patent grant
GR01 Patent grant