CN105760299A - Full-automatic script test method based on intelligent substation - Google Patents

Full-automatic script test method based on intelligent substation Download PDF

Info

Publication number
CN105760299A
CN105760299A CN201610091636.0A CN201610091636A CN105760299A CN 105760299 A CN105760299 A CN 105760299A CN 201610091636 A CN201610091636 A CN 201610091636A CN 105760299 A CN105760299 A CN 105760299A
Authority
CN
China
Prior art keywords
test
devices
data
testing
full
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610091636.0A
Other languages
Chinese (zh)
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.)
Electric Power Research Institute of Yunnan Power System Ltd
Original Assignee
Electric Power Research Institute of Yunnan Power System 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 Electric Power Research Institute of Yunnan Power System Ltd filed Critical Electric Power Research Institute of Yunnan Power System Ltd
Priority to CN201610091636.0A priority Critical patent/CN105760299A/en
Publication of CN105760299A publication Critical patent/CN105760299A/en
Pending legal-status Critical Current

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/3688Test management for test execution, e.g. scheduling of test suites
    • 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/3692Test management for test results analysis

Abstract

The invention provides a full-automatic script test method based on an intelligent substation.The method includes the following steps that in-access devices to be tested are detected, and test data matched with the devices to be tested is acquired; test scripts, matched with the devices to be tested, in a database are selected, and test cases are generated; field data in the test cases corresponding to the test data is updated, and control instructions are generated; test results which are sent by the devices to be tested and generated after execution according to the control instructions are received; the accuracy of testing the devices to be tested is judged according to the test results.The test data and functions can be dynamically changed through the automatic test scripts, the test results can be compared, it is not needed to reedit the whole test design, and the test scripts used last time can be accurately modified in time and updated into a state conforming to a test of this time when a tested system is changed.Thus, testing efficiency can be improved, and the problems that the test development cycle is long, the method is complex, and the requirement for the programming ability of personnel is high are solved.

Description

A kind of based on the full-automatic script method of testing of intelligent substation
Technical field
The present invention relates to power system automation technology field, particularly relate to a kind of based on the full-automatic script method of testing of intelligent substation.
Background technology
Intelligent substation is to adopt advanced, reliable, integrated and environmental protection smart machine; it is standardized as basic demand with information digitalization of entirely standing, communications platform networking, information sharing; it is automatically performed the basic functions such as information gathering, measurement, control, protection, metering and detection; meanwhile, possess support electrical network to automatically control in real time, Intelligent adjustment, on-line analysis decision-making and the Premium Features such as collaborative interactive transformer station.
The correctness of intelligent transformer substation information and integrity not only directly influence the realization degree of intelligent substation, simultaneously the running status of intelligent substation also places one's entire reliance upon the integrated treatment to acquired information, therefore how to ensure in time, accurately, intactly obtain enough substation operation information, and these information are carried out quick integrated treatment, hold and predict the running status of intelligent substation in real time, various abnormal conditions are carried out early warning, take measures trouble-saving generation in time, thus the operation of transformer station is assessed by actual operating state according to transformer station continuously, it is to ensure that the urgent needs of intelligent substation engineering construction and operation maintenance.
But, when system under test (SUT) business produces variation, amendment test design load is finally reached the standard grade test, and the time leaving tester for is often very short, and corresponding test implementation development cost is also higher, very difficult completes in time at the appointed time.
Summary of the invention
The embodiment of the present invention provide a kind of based on the full-automatic script method of testing of intelligent substation, to solve in intelligent substation test implementation of the prior art design content amendment complexity, cost problems high, inefficient such as tested parameter, configuration, schemes.
In order to solve above-mentioned technical problem, the embodiment of the invention discloses following technical scheme:
A kind of based on the full-automatic script method of testing of intelligent substation, comprise the following steps: the Devices to test that detection accesses, and the test data that acquisition and described Devices to test match;Select the test script matched with described Devices to test in data base, and generate the test case including described test script;Updating the field data in the described test case corresponding with described test data the control instruction that generation and described Devices to test match, described control instruction is used for testing described Devices to test;Receive the test result performed according to described control instruction that described Devices to test sends;According to described test result, it is judged that the accuracy that described Devices to test is tested.
Preferably, the test data that described acquisition and described Devices to test match, including: extract the identification code of described Devices to test;Obtain described Devices to test according to described identification code and need the test-types of test;Obtain the test data matched in data base with described test-types.
Preferably, the identification code of described Devices to test is extracted;Obtain described Devices to test according to described identification code and need the test-types of test;Obtain the multiple test scripts matched in data base with described test-types.
Preferably, described generation includes the test case of described test script, including: obtain the test sequence of the multiple test scripts matched with described Devices to test;According to described test sequence, the compiling of multiple test scripts is generated described test case.
Preferably, the field data in the described test case that described renewal is corresponding with described test data, including: extract field corresponding with described test data in described test data use-case;It is described test data by the variable update in described field.
Preferably, the accuracy that described Devices to test is tested by described judgement, including: whether contrast described test result consistent with predicting the outcome of prestoring;When described test result with prestore when predicting the outcome consistent, it is judged that to the test of described Devices to test accurately.
From above technical scheme, the method of testing based on intelligent substation full-automation script formulation that the embodiment of the present invention provides, pass through automatic test script, can dynamically change test data and function, and contrast test result, whole test design need not be updated, when there is variation in system under test (SUT), can promptly and accurately amendment last time test script, it is updated to the state of compound this time test, such that it is able to raising testing efficiency, solve test development cycle length, method complexity and personnel's program capability and require the problems such as high.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, the accompanying drawing used required in embodiment or description of the prior art will be briefly described below, apparently, for those of ordinary skills, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
A kind of schematic flow sheet based on the full-automatic script method of testing of intelligent substation that Fig. 1 provides for the embodiment of the present invention.
Detailed description of the invention
In order to make those skilled in the art be more fully understood that the technical scheme in the present invention, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under not making creative work premise, all should belong to the scope of protection of the invention.
Referring to Fig. 1, for a kind of schematic flow sheet based on the full-automatic script method of testing of intelligent substation that the embodiment of the present invention provides.
As it is shown in figure 1, the one that the embodiment of the present invention provides is based on the full-automatic script method of testing of intelligent substation, comprise the following steps:
Step S1, the Devices to test that detection accesses, and the test data that acquisition and Devices to test match;Wherein obtain the testing data matched with Devices to test, include again:
Step S101, extracts the identification code of the Devices to test accessed, such as unit type or specification of equipment etc, identification equipment;
Step S102, obtaining Devices to test according to identification code needs the test-types of test, according to each class Devices to test, has its corresponding type to be measured, the identification code according to Devices to test in data base, can automatically extract the test-types of its required test;
Step S103, obtains the test data matched in data base with test-types, according to test equipment and test-types, selects test data corresponding thereto, including parameter, variable etc. from data base.
Step S2, selects the test script matched with Devices to test in data base, and generates the test case including test script;Wherein:
In step S2, select the test script matched with Devices to test in data base, include again:
Step S211, extracts the identification code of the Devices to test accessed, such as unit type or specification of equipment etc, identification equipment;
Step S212, obtaining Devices to test according to identification code needs the test-types of test, according to each class Devices to test, has its corresponding type to be measured, the identification code according to Devices to test in data base, can automatically extract the test-types of its required test;
Step S213, obtain the multiple test scripts matched in data base with test-types, according to test equipment and test-types, multiple test scripts corresponding thereto are selected from data base, wherein test script is a series of instructions of a fc-specific test FC, these instructions can be automated testing tool perform, the test-types of each test equipment all can be built by multiple test scripts.
In step S2, generate the test case including test script, include again:
Step S221, obtains the test sequence of the multiple test scripts matched with Devices to test, the test-types according to test equipment, it is judged that and the order of the required test of multiple test scripts obtained;
Step S222, according to test sequence, the compiling of multiple test scripts being generated test case, according to the test sequence obtained, multiple test scripts are compiled restructuring, multiple test scripts are compiled as a whole set of test case, and test case is for generating for Devices to test.
Step S3, updates the field data in the test case corresponding with test data the control instruction that generation and Devices to test match, and control instruction is used for testing Devices to test;Wherein, the field data in the new test case corresponding with test data, include again:
Step S301, extracts field corresponding with test data in test case, test case is resolved, and identifies wherein corresponding with test data field, as comprised the program of test data (parameter, variable) etc.;
Step S302, is test data by the variable update in field, is the parameter matched with Devices to test by the variable update in the field corresponding with test data.
Changing the test case after parameter and be the test program for Devices to test, namely generate the control instruction matched with Devices to test, control instruction is used for testing Devices to test, and system sends corresponding control instruction to Devices to test, and device under test is tested.
Step S4, receive the test result performed according to control instruction that Devices to test sends, Devices to test is tested according to control instruction, it is completed generation test result, test result can be test packet or other forms, and test result is sent to system, system receives the test result performed according to control instruction that test equipment sends.
Step S5, according to test result, it is judged that the accuracy of device under test test, including:
Step S501, whether contrast test result is consistent with predicting the outcome of prestoring, the test result that test system docking receives is analyzed checking, and compare with the test result prestored before, it is judged that whether the test result that the test case that test system automatically generates tests out is consistent with the test result prestored;
Step S502, when described test result is consistent with the test result prestored in advance, judge that the test of device under test is accurate, when result out measured by the test case device under test that test system automatically generates is consistent with the test result prestored in advance, system judges that the test of device under test is accurate, and test completes;And when result out measured by the test case device under test that test system automatically generates and the test result that prestores in advance are inconsistent, system judges that the test of device under test is inaccurate, then need its test script and test data etc. are adjusted accordingly, and re-start test.
From above technical scheme, the method of testing based on intelligent substation full-automation script formulation that the embodiment of the present invention provides, pass through automatic test script, can dynamically change test data and function, and contrast test result, whole test design need not be updated, when there is variation in system under test (SUT), can promptly and accurately amendment last time test script, it is updated to the state of compound this time test, such that it is able to raising testing efficiency, solve test development cycle length, method complexity and personnel's program capability and require the problems such as high.
It should be noted that, in this article, the such as relational terms of " first " and " second " or the like is used merely to separate an entity or operation with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " includes ", " comprising " or its any other variant are intended to comprising of nonexcludability, so that include the process of a series of key element, method, article or equipment not only include those key elements, but also include other key elements being not expressly set out, or also include the key element intrinsic for this process, method, article or equipment.When there is no more restriction, statement " including ... " key element limited, it is not excluded that there is also other identical element in including the process of described key element, method, article or equipment.
The above is only the specific embodiment of the present invention, makes to skilled artisans appreciate that or realize the present invention.The multiple amendment of these embodiments be will be apparent to one skilled in the art, and generic principles defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention is not intended to be limited to the embodiments shown herein, and is to fit to the widest scope consistent with principles disclosed herein and features of novelty.

Claims (6)

1. one kind based on the full-automatic script method of testing of intelligent substation, it is characterised in that comprise the following steps:
The Devices to test that detection accesses, and the test data that acquisition and described Devices to test match;
Select the test script matched with described Devices to test in data base, and generate the test case including described test script;
Updating the field data in the described test case corresponding with described test data the control instruction that generation and described Devices to test match, described control instruction is used for testing described Devices to test;
Receive the test result performed according to described control instruction that described Devices to test sends;
According to described test result, it is judged that the accuracy that described Devices to test is tested.
2. according to claim 1 based on the full-automatic script method of testing of intelligent substation, it is characterised in that the test data that described acquisition and described Devices to test match, including:
Extract the identification code of described Devices to test;
Obtain described Devices to test according to described identification code and need the test-types of test;
Obtain the test data matched in data base with described test-types.
3. according to claim 1 based on the full-automatic script method of testing of intelligent substation, it is characterised in that the test script matched with described Devices to test in described selection data base, including:
Extract the identification code of described Devices to test;
Obtain described Devices to test according to described identification code and need the test-types of test;
Obtain the multiple test scripts matched in data base with described test-types.
4. according to claim 3 based on the full-automatic script method of testing of intelligent substation, it is characterised in that described generation includes the test case of described test script, including:
Obtain the test sequence of the multiple test scripts matched with described Devices to test;
According to described test sequence, the compiling of multiple test scripts is generated described test case.
5. according to claim 1 based on the full-automatic script method of testing of intelligent substation, it is characterised in that the field data in the described test case that described renewal is corresponding with described test data, including:
Extract field corresponding with described test data in described test case;
It is described test data by the variable update in described field.
6. according to claim 1 based on the full-automatic script method of testing of intelligent substation, it is characterised in that the accuracy that described Devices to test is tested by described judgement, including:
Whether contrast described test result consistent with predicting the outcome of prestoring;
When described test result with prestore when predicting the outcome consistent, it is judged that the test of described Devices to test is accurate.
CN201610091636.0A 2016-02-18 2016-02-18 Full-automatic script test method based on intelligent substation Pending CN105760299A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610091636.0A CN105760299A (en) 2016-02-18 2016-02-18 Full-automatic script test method based on intelligent substation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610091636.0A CN105760299A (en) 2016-02-18 2016-02-18 Full-automatic script test method based on intelligent substation

Publications (1)

Publication Number Publication Date
CN105760299A true CN105760299A (en) 2016-07-13

Family

ID=56330144

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610091636.0A Pending CN105760299A (en) 2016-02-18 2016-02-18 Full-automatic script test method based on intelligent substation

Country Status (1)

Country Link
CN (1) CN105760299A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107844411A (en) * 2016-09-18 2018-03-27 阿里巴巴集团控股有限公司 A kind of method of testing and relevant apparatus
CN108804271A (en) * 2018-06-28 2018-11-13 北京潘达互娱科技有限公司 Interface tolerating measure method and device
CN109507488A (en) * 2019-01-21 2019-03-22 武汉裕量信息科技有限公司 Electromagnetism interference free performance test macro
CN109783287A (en) * 2018-12-28 2019-05-21 北京五维星宇科技有限公司 Test instruction generation method, system, terminal and medium based on configuration file
CN110850324A (en) * 2018-07-24 2020-02-28 雅达电子国际有限公司 Automated test system and method for power supply units
CN111159050A (en) * 2019-12-30 2020-05-15 深圳Tcl新技术有限公司 Intelligent lock testing method and device and computer readable storage medium
CN111309586A (en) * 2018-12-12 2020-06-19 迈普通信技术股份有限公司 Command testing method, device and storage medium thereof
CN112260892A (en) * 2020-10-14 2021-01-22 国网山东省电力公司临朐县供电公司 Management method, system, terminal and storage medium for power distribution system scheduling node
CN112711526A (en) * 2019-10-25 2021-04-27 腾讯科技(深圳)有限公司 UI test method, device, equipment and storage medium
CN112994989A (en) * 2021-05-20 2021-06-18 北京智芯微电子科技有限公司 Evaluation method, device and system for internet of things terminal and storage medium
CN113315774A (en) * 2021-05-31 2021-08-27 浙江正泰仪器仪表有限责任公司 Instrument testing method and instrument testing device
CN114116507A (en) * 2021-12-02 2022-03-01 安徽继远检验检测技术有限公司 Source code detection system and method based on Devops endogenous security

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1851665A (en) * 2005-11-07 2006-10-25 华为技术有限公司 Method for completing product automation test utilizing test kit
CN101187894A (en) * 2006-11-15 2008-05-28 中兴通讯股份有限公司 Automatic test method based on key word drive and its test system
CN101241467A (en) * 2008-03-05 2008-08-13 罗笑南 Automatized white box test system and method facing to WEB application
CN104536891A (en) * 2014-12-26 2015-04-22 小米科技有限责任公司 Method and device for testing system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1851665A (en) * 2005-11-07 2006-10-25 华为技术有限公司 Method for completing product automation test utilizing test kit
CN101187894A (en) * 2006-11-15 2008-05-28 中兴通讯股份有限公司 Automatic test method based on key word drive and its test system
CN101241467A (en) * 2008-03-05 2008-08-13 罗笑南 Automatized white box test system and method facing to WEB application
CN104536891A (en) * 2014-12-26 2015-04-22 小米科技有限责任公司 Method and device for testing system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
葛亮: "智能变电站在线监测系统测试平台的设计与实现", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107844411A (en) * 2016-09-18 2018-03-27 阿里巴巴集团控股有限公司 A kind of method of testing and relevant apparatus
CN108804271A (en) * 2018-06-28 2018-11-13 北京潘达互娱科技有限公司 Interface tolerating measure method and device
CN110850324A (en) * 2018-07-24 2020-02-28 雅达电子国际有限公司 Automated test system and method for power supply units
CN111309586A (en) * 2018-12-12 2020-06-19 迈普通信技术股份有限公司 Command testing method, device and storage medium thereof
CN109783287A (en) * 2018-12-28 2019-05-21 北京五维星宇科技有限公司 Test instruction generation method, system, terminal and medium based on configuration file
CN109783287B (en) * 2018-12-28 2022-09-13 北京五维星宇科技有限公司 Test instruction generation method, system, terminal and medium based on configuration file
CN109507488A (en) * 2019-01-21 2019-03-22 武汉裕量信息科技有限公司 Electromagnetism interference free performance test macro
CN112711526A (en) * 2019-10-25 2021-04-27 腾讯科技(深圳)有限公司 UI test method, device, equipment and storage medium
CN111159050A (en) * 2019-12-30 2020-05-15 深圳Tcl新技术有限公司 Intelligent lock testing method and device and computer readable storage medium
CN112260892A (en) * 2020-10-14 2021-01-22 国网山东省电力公司临朐县供电公司 Management method, system, terminal and storage medium for power distribution system scheduling node
CN112994989A (en) * 2021-05-20 2021-06-18 北京智芯微电子科技有限公司 Evaluation method, device and system for internet of things terminal and storage medium
CN112994989B (en) * 2021-05-20 2021-08-06 北京智芯微电子科技有限公司 Evaluation method, device and system for internet of things terminal and storage medium
CN113315774A (en) * 2021-05-31 2021-08-27 浙江正泰仪器仪表有限责任公司 Instrument testing method and instrument testing device
CN114116507A (en) * 2021-12-02 2022-03-01 安徽继远检验检测技术有限公司 Source code detection system and method based on Devops endogenous security
CN114116507B (en) * 2021-12-02 2022-09-23 安徽继远检验检测技术有限公司 Source code detection system and method based on Devops endogenous security

Similar Documents

Publication Publication Date Title
CN105760299A (en) Full-automatic script test method based on intelligent substation
CN105302716B (en) Test method, device under the development mode of interflow
CN104765692B (en) Method and apparatus for automatic test software
CN106597947A (en) Substation equipment test method and system, server and tester
CN109491910B (en) Visual simulation debugging method and system for protection logic and control logic
CN105068929A (en) Test script generation method, test script generation device, testing method, testing device and testing system
CN111510205B (en) Optical cable fault positioning method, device and equipment based on deep learning
CN106961362A (en) Automated testing method and mobile cloud test system
CN109684847A (en) Self-repairing method, device, equipment and the storage medium of script loophole
CN103941207A (en) Electric power measurement automation terminal detection method and system
CN106873574B (en) Automated testing method and device for programmable controller
CN104076807B (en) The adjustment method of the automated system of intelligent substation
CN104978262A (en) Terminal test method and terminal test device
CN105187608A (en) Method and device obtaining power consumption of application program in mobile terminal
CN105183658A (en) Software code testing method and device
Belachew et al. Analysis of software quality using software metrics
CN106021113A (en) Precise test implementation method
CN112506757A (en) Automatic test method, system, computer device and medium thereof
CN106301976A (en) A kind of intelligent substation schedule information automated testing method
Bhatt A survey of effective and efficient software testing technique and analysis
CN105891637A (en) Intelligent substation secondary device testing method and intelligent substation secondary device testing system
CN104572470B (en) A kind of integer overflow fault detection method based on transformation relation
CN110515829A (en) Application testing method, device, equipment and computer readable storage medium
CN113691669B (en) Android mobile phone APP control vehicle full-process test analysis system and method
KR101798168B1 (en) Apparatus and method for controlling constructing database in regard to fault isolation

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160713