A kind of intelligent metering products detection system
Technical field
The present invention relates to a kind of intelligent metering products detection system, particularly to a kind of Auto-Test System using DSL, workflow and script.
Background technology
Intelligent metering product is to represent electricity consumption end important component part in intelligent grid construction, in installation and operation, it is necessary to through strict calibrating and quality control.Comprising exfactory inspection, type inspection, full performance test, acceptance sampling is tested and entirely checks acceptance test.Although inspection technology fills intelligent metering from the link run to the later stage in early days, but under the industry environment of current intelligent electric meter large scale deployment and enforcement, the traditional detection technique of links can not meet requirement.The many insiders of questionnaire survey analysis display started in 2011 according to<<global table meter>>create great interest to reliability and the test technique automatic of metering product, the tactful and defective basis for estimation common concern to product test simultaneously.
DSL is system for writing and compiling program or application program and a series of artificial languages of designing.DSL has the value of himself, first can improve development efficiency, reduces the cycle of exploitation, improves the quality of exploitation.Next is prone to domain expert and links up, and part the most difficult in software project, is also the modal reason of project failure, it is simply that the communication between development teams and client and software users.DSL provides one clearly and accurately language, can effectively improve this communication, and these language are transparent between tester and software developer, and tester and software developer can use these language to inquire into demand.
Workflow is exactly " a part or whole part of business procedure automatization under computer utility environment ", what it mainly solved is " make automatically to carry out according to process of certain predefined rule transmission document, information or task between multiple participants; thus realize business objective expected from certain, or promote the realization of this target ".The industries such as workflow is typically employed in consumer goods, manufactures, telecommunications service, the concept introducing workflow in intelligent metering product test field is still initiated.General workflow has the following characteristics that improvement and optimizes operation flow, improves vocational work efficiency;Realize better services process control, improve customer service quality;Improve the flexibility etc. of operation flow.
Script is to use a kind of specific descriptive language, the executable file write according to certain form, the grandest or autoexec.The principal character of script has: grammer and structure are generally straightforward;Study and use are generally straightforward;Generally using be easily modified " explanation " of program as the method for operation, without " compiling ";The exploitation production capacity of program is better than Operating ettectiveness.
If the test system that DSL, workflow and script efficient combination can be used for designing intelligent metering product can not only obtain the respective advantage of three, more advantage can be obtained simultaneously.
Summary of the invention
For deficiency of the prior art, the invention provides a kind of intelligent metering DSL, workflow and script effectively combined test system.
The present invention is achieved through the following technical solutions: a kind of intelligent metering products detection system, it is characterized in that: DSL, workflow with the compound mode of script is: the function script module relevant to business is according to whether be divided into test component script with public foot originally with test case direct correlation, test component script builds by quoting public script, configured by the parametrization of UI and test component script builds test component, construction work stream is carried out by permutation and combination test component, test case is the set of test component, the set of test case or test case simultaneously also can be as single test component.Test component and test case are the relations being combined with each other;Testing procedure is divided into: the first step: analyze test case, partition testing parts;Second step: design test component UI and script;3rd step: combined test parts form workflow.Script is all to use templating design with interface UI, completely isolated, transmits message by specific agreement and network and comes mutual, extends very convenient.Platform can realize seamless link to equipment, as long as equipment provides calls API, it is possible to API is embedded in script, operates equipment by interface alternation.The variation of Platform communication mode, is not limited to one.Can have serial ports, Rs485, TCP/IP, UDP, GPRS, far infrared, near-infrared etc., agile development principle followed by platform, the most open to all of extension.
The method have the advantages that tester and developer use same to link up language, decrease communication disorders, it is ensured that the accuracy of demand analysis, decrease time cost, improve test and development efficiency;Use the mode of workflow, test case document to match with test software so that tester possesses the ability of oneself formulation flow process, and decrease and newly enter tester and other relevant departments personnel understand time of dependence test business;Use script centralized management and the mode of business customizing, improve management and the efficiency of exploitation script;The corresponding single testing scheme of single test case, testing scheme, as an independent file, can preserve, transmit and revise, it is achieved that test case and the resource-sharing of testing scheme.
Accompanying drawing explanation
Fig. 1 is the compound mode figure of DSL, workflow and script in the present invention.
Fig. 2 is the testing procedure figure of the present invention.
Detailed description of the invention
The specific works principle of the present invention is described below in conjunction with the accompanying drawings: referring to the drawings 1, DSL in the present invention, workflow with the compound mode of script is: the function script module relevant to business is according to whether be divided into test component script with public foot originally with test case direct correlation, test component script builds by quoting public script, configured by the parametrization of UI and test component script builds test component, construction work stream is carried out by permutation and combination test component, test case is the set of test component, the set of test case or test case simultaneously also can be as single test component.Test component and test case are the relations being combined with each other.
Referring to the drawings 1, the concrete testing procedure of the present invention is: the first step: analyze test case, partition testing parts;Second step: design test component UI and script;3rd step: combined test parts form workflow.
The advantage of DSL, workflow and script efficient combination has: owing to tester and developer use same to link up language, decreases communication disorders, it is ensured that the accuracy of demand analysis, decreases time cost, improves test and development efficiency;Owing to using the mode of workflow, test case document matches with test software so that tester possesses the ability of oneself formulation flow process, and decreases and newly enter tester and other relevant departments personnel understand time of dependence test business;Owing to using script centralized management and the mode of business customizing, improve management and the efficiency of exploitation script;The corresponding single testing scheme of single test case, testing scheme, as an independent file, can preserve, transmit and revise, it is achieved that test case and the resource-sharing of testing scheme.