CN112286830A - Testing method and device of electrical measuring instrument, computer equipment and storage medium - Google Patents

Testing method and device of electrical measuring instrument, computer equipment and storage medium Download PDF

Info

Publication number
CN112286830A
CN112286830A CN202011595959.6A CN202011595959A CN112286830A CN 112286830 A CN112286830 A CN 112286830A CN 202011595959 A CN202011595959 A CN 202011595959A CN 112286830 A CN112286830 A CN 112286830A
Authority
CN
China
Prior art keywords
scheme
use case
measuring instrument
type
recipe
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
CN202011595959.6A
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.)
Hangzhou Sunrise Technology Co ltd
Original Assignee
Hangzhou Sunrise Technology 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 Hangzhou Sunrise Technology Co ltd filed Critical Hangzhou Sunrise Technology Co ltd
Priority to CN202011595959.6A priority Critical patent/CN112286830A/en
Publication of CN112286830A publication Critical patent/CN112286830A/en
Pending legal-status Critical Current

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
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01DMEASURING NOT SPECIALLY ADAPTED FOR A SPECIFIC VARIABLE; ARRANGEMENTS FOR MEASURING TWO OR MORE VARIABLES NOT COVERED IN A SINGLE OTHER SUBCLASS; TARIFF METERING APPARATUS; MEASURING OR TESTING NOT OTHERWISE PROVIDED FOR
    • G01D18/00Testing or calibrating apparatus or arrangements provided for in groups G01D1/00 - G01D15/00
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application relates to a test method and a test device of an electric measuring instrument, computer equipment and a storage medium. The method comprises the following steps: acquiring a use case scheme of each function in a detection project, wherein the use case scheme comprises a plurality of scheme types; the scheme type is generated by adding control codes, and each control code corresponds to an operation program of the electric measuring instrument; executing the operation program of the electric measuring instrument of the scheme type and saving the execution data; and obtaining a function test result of the electric measuring instrument according to the execution data. The method can improve the testing efficiency of the electric measuring instrument.

Description

Testing method and device of electrical measuring instrument, computer equipment and storage medium
Technical Field
The present invention relates to the field of electrical measuring instrument testing technology, and in particular, to a testing method and device for an electrical measuring instrument, a computer device, and a storage medium.
Background
The measuring instrument can be a sensor, a transmitter and an instrument with both detecting element and display device, and the sensing device can receive the measured information and convert it into output variable of same or different nature according to a certain rule.
The existing electric measuring instrument is difficult to record a test scheme, a test conclusion and details in detail through manual test, and the historical test conclusion and details are difficult to query and compare. When data are compared, an operator is required to manually calculate the data, the requirement on the level of the operator is high, and errors are easy to occur. The test items in the test of the third-party automatic test software are fixed and cannot be changed, and the completeness of the function test of the electric measuring instrument cannot be met.
The existing testing method, whether manual testing or automatic software testing, needs to write programs in a testing scheme according to a specific testing environment, so that the testing efficiency is low.
Disclosure of Invention
In view of the above, it is necessary to provide a method and an apparatus for testing an electrical measuring instrument, a computer device and a storage medium, which can improve the testing efficiency.
A method of testing an electrical measuring instrument, the method comprising:
acquiring a use case scheme of each function in a detection project, wherein the use case scheme comprises a plurality of scheme types; the scheme type is generated by adding control codes, and each control code corresponds to an operation program of the electric measuring instrument;
executing the operation program of the electric measuring instrument of the scheme type and saving the execution data;
and obtaining a function test result of the electric measuring instrument according to the execution data.
In one embodiment, the test item supports the functionality of replication as another test item; and/or the use case scenario supports replication as a scenario type for another use case scenario.
In one embodiment, the scheme types include a start loop scheme and an end loop scheme; wherein the start loop scheme is set before the scheme type or use case scheme of the start loop, the end loop scheme is set after the scheme type or use case scheme of the end loop, and the parameter of the start loop scheme includes the loop number.
In one embodiment, the functions, use case scenarios, and scenario types support add, delete, modify, and query operations.
In one embodiment, the scheme type includes one or more of a table body operation scheme, a serial port operation scheme, a meter reading and writing communication scheme, a delay scheme, a prompt scheme, a starting loop scheme, an ending loop scheme, a data comparison scheme and a variable value saving file scheme.
In one embodiment, before acquiring a use case scenario for each function in a detection item, where the use case scenario includes multiple scenario types, the method includes: when the use case scheme or the scheme type is added to the detection item in a copy mode, judging whether a variable in the use case scheme or the scheme type exists in the detection item; and if the variable in the use case scheme or the scheme type does not exist in the detection item, acquiring the variable definition of the variable in the use case scheme or the scheme type.
In one embodiment, the executing the operating program of the electrical measuring instrument of the scheme type and saving the execution data comprises: and acquiring the selected scheme type in the use case scheme, executing the operation program of the electric measuring instrument of the scheme type, and storing the execution data.
A test apparatus for an electrical measuring instrument, the apparatus comprising:
the system comprises a use case scheme acquisition module, a detection item detection module and a processing module, wherein the use case scheme acquisition module is used for acquiring a use case scheme of each function in the detection item, and the use case scheme comprises a plurality of scheme types; the scheme type is generated by adding control codes, and each control code corresponds to an operation program of the electric measuring instrument;
the execution module is used for executing the operation program of the electric measuring instrument of the scheme type and storing the execution data;
and the functional test result acquisition module is used for acquiring a functional test result of the electrical measuring instrument according to the execution data.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
acquiring a use case scheme of each function in a detection project, wherein the use case scheme comprises a plurality of scheme types; the scheme type is generated by adding control codes, and each control code corresponds to an operation program of the electric measuring instrument;
executing the operation program of the electric measuring instrument of the scheme type and saving the execution data;
and obtaining a function test result of the electric measuring instrument according to the execution data.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
acquiring a use case scheme of each function in a detection project, wherein the use case scheme comprises a plurality of scheme types; the scheme type is generated by adding control codes, and each control code corresponds to an operation program of the electric measuring instrument;
executing the operation program of the electric measuring instrument of the scheme type and saving the execution data;
and obtaining a function test result of the electric measuring instrument according to the execution data.
According to the method, the device, the computer equipment and the storage medium for testing the electric measuring instrument, the scheme type is generated by writing the operation program of the electric measuring instrument in advance and adding the control code, then the case scheme is generated according to a plurality of scheme types, each function in the detection project is generated, then the function test is performed on the electric measuring instrument by executing the operation program of the electric measuring instrument of the scheme type, and through the editing tool generated by the scheme, the test function coverage rate is improved, the test level is inherited, and the test efficiency is improved.
Drawings
FIG. 1 is a schematic flow chart of a method for testing an electrical meter according to one embodiment;
FIG. 2 is a schematic diagram illustrating details of a scheme in a use case scheme according to an embodiment;
FIG. 3 is a schematic diagram illustrating a process for performing test items of the electrical test meter in one embodiment;
FIG. 4 is a block diagram of a test apparatus for an electrical measuring instrument in one embodiment;
FIG. 5 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In one embodiment, as shown in FIG. 1, there is provided a method of testing an electrical measuring instrument, comprising the steps of:
s110, acquiring a use case scheme of each function in the detection project, wherein the use case scheme comprises a plurality of scheme types; the scheme type is generated by adding control codes, and each control code corresponds to an operation program of the electric measuring instrument.
The detection project is a project for testing and establishing the electric measuring instrument, and comprises the detection of a plurality of functions, each function has a corresponding use case scheme, one function can be detected through one or more use case schemes, for example, the function is to read the number of times of short power failure of the electric measuring instrument, the scheme detail of the use case scheme can be edited, a plurality of control code generation scheme types are added, the plurality of scheme types form the use case scheme, as shown in fig. 2, the scheme detail of the use case scheme of the function for reading the number of times of short power failure of the electric measuring instrument comprises a plurality of added control codes (C4, EN, W2 … … JSXH), and each control code corresponds to an operation program of the electric measuring instrument (for example, the baud rate is converted, the 485 communication handshake RQ, the setting of the capture item is 16 pieces … …, and the delay is 10s or the end of the cycle). And the scheme type is expressed by adopting a data format JSON.
Firstly, different detection items are defined according to test requirements, such as a single-phase intelligent meter and a three-phase intelligent meter, and the detection items are represented by a tree structure. And defining various detection functions in the detection items, and finally adding a use case scheme to the detection functions, wherein the specific functions are verified through the use case scheme.
Wherein the electrical measuring instrument can communicate through DLMS/COSEM protocol.
And S120, executing the operation program of the electric measuring instrument of the scheme type, and storing the execution data.
The scheme type comprises one or more of a table body operation scheme, a serial port operation scheme, a meter reading and writing communication scheme, a delay scheme, a prompt scheme, a cycle starting scheme, a cycle ending scheme, a data comparison scheme and a variable value storage file scheme. Each scheme type can be generated by adding one or more control codes, for example, the operation scheme of the platform body is generated by adding the control codes corresponding to power-on, power-off, standard meter information reading (voltage, current, total power, power factor, voltage and current included angle, and the like), electric energy reading error and reading date timing error. The performance data is data obtained for a test procedure of the electrical measuring instrument, for example, the performance data is the number of short power outages of the electrical measuring instrument, or the performance data is a reading of the electrical measuring instrument.
And S130, obtaining a function test result of the electric measuring instrument according to the execution data.
After the execution data is obtained, the performance of the electric measuring instrument is analyzed, and a function test result of the electric measuring instrument is obtained.
According to the test method of the electric measuring instrument, the scheme type is generated by writing the operation program of the electric measuring instrument in advance and adding the control code, then the case scheme is generated according to a plurality of scheme types, each function in the detection project is generated, then the function test is carried out on the electric measuring instrument by executing the operation program of the electric measuring instrument of the scheme type, and the editing tool generated by the scheme improves the coverage rate of the test function, enables the test level to be inherited and improves the test efficiency.
In one embodiment, step S110 is preceded by: and S100, adding a plurality of scheme types in the case scheme writing module to generate the case scheme.
In one embodiment, the test item supports the functionality of replication as another test item; and/or the use case scenario supports replication as a scenario type for another use case scenario.
The edited detection item can be copied and pasted to another detection item, and the edited detection item can be reused as a function of another detection item, so that the time for a tester to edit the detection item is reduced. Similarly, the edited use case scheme can be copied and pasted to another use case scheme, and as a scheme type of another use case scheme, the time for the tester to edit the use case scheme can also be reduced.
In one embodiment, the scheme types include a start loop scheme and an end loop scheme; wherein the start loop scheme is set before the scheme type or use case scheme of the start loop, the end loop scheme is set after the scheme type or use case scheme of the end loop, and the parameter of the start loop scheme includes the loop number.
Wherein the start loop scheme is used to define a position for starting a loop and the end loop scheme is used to define a position for ending a loop. By starting the loop plan and ending the loop plan, the use case plan composed of the plan type can be repeatedly tested, and the function composed of the use case plan can also be repeatedly tested.
In one embodiment, the functions, use case scenarios, and scenario types support add, delete, modify, and query operations. For example, as shown in fig. 2, the control code in the scheme type of the use-case scheme may be added, modified, deleted, and refreshed, and by selecting a scheme detail, the addition, modification, deletion, and refresh may be implemented by selecting the corresponding control.
In one embodiment, the function, use case scheme, and scheme type support import and export operations in an editing tool generated by the scheme. The information in the editing tool adopts a Json format, so that the editing tool is simple and easy to understand, complicated protocol understanding is removed, partial functions can be shared by a plurality of systems, and protocols are not distinguished. An editing interface of various scheme types is provided in the editing tool and is used for generating specific scheme types. And providing a variable definition function in the editing tool for storing and comparing data in the case scheme.
In one embodiment, the scheme type includes one or more of a table body operation scheme, a serial port operation scheme, a meter reading and writing communication scheme, a delay scheme, a prompt scheme, a starting loop scheme, an ending loop scheme, a data comparison scheme and a variable value saving file scheme.
The serial port operation scheme comprises switching of serial port operation parameter baud rate, a verification mode, data bits and the like, the meter communication read-write scheme comprises 485 communication handshake, infrared communication handshake, read parameters and write parameters, the scheme content is expressed by adopting a general data format JSON, and a use case writer can write the use case scheme only by adjusting JSON attribute content. The data alignment scheme supports single and multiple alignments; each scheme in the multiple alignments only supports the relation of AND OR OR; the comparison types include a comparison range, a comparison equality and a comparison-only, the comparison-only is to calculate the filled formula and store the result in one variable (for example, to store the value corresponding to the variable I in the formula plus 1 in the variable TMP), the comparison range judges whether the value in the formula is within a set range (for example, judges whether the value corresponding to the variable T1 in the formula is within the range of the maximum value and the minimum value, where the maximum value and the minimum value are to obtain specific values by replacing the variables with corresponding values and calculating the specific values through the formula), and the comparison-equal judges whether the values on both sides of the formula are equal (for example, the formula in the scheme is [ a1] = [ B1] +1, the comparison type is the comparison equal, that is the value corresponding to the left variable a1 of the comparison equal sign, and the value corresponding to the right variable B1 of the equal sign is added with 1 or not equal); the comparison mode comprises character string type comparison, shaping data comparison, floating point type comparison and time type comparison, wherein the floating point type comparison supports selection of 1-6 bit decimal numbers; the filled formula is processed before comparison, firstly, the variable name in the formula is replaced by a specific value, then, a formula calculation function of the system is called to carry out formula calculation, the formula calculation function supports the basic addition, subtraction, multiplication and division, and also supports the mathematical functions of square, root, sin, cos, tan and the like, required comparison data are filled in a database comparison interface, and the system can generate a data comparison scheme in a JSON format.
In one embodiment, before acquiring a use case scenario for each function in a detection item, where the use case scenario includes multiple scenario types, the method includes: when the use case scheme or the scheme type is added to the detection item in a copy mode, judging whether a variable in the use case scheme or the scheme type exists in the detection item; and if the variable in the use case scheme or the scheme type does not exist in the detection item, acquiring the variable definition of the variable in the use case scheme or the scheme type.
When the use case scheme or the scheme type is integrally copied and added to the detection project, variables in the use case scheme or the scheme type may not be defined, and the undefined variables need to be defined before the detection project is run. Variables used in the case scheme need to be defined firstly and then can be used, the variable types comprise character strings, DateTime, Date, Time, Yeast, Month, Day, Hour, Minute, Second and Array, the numerical groups in the embodiment are all two-dimensional numerical groups, the defined variable use range is the case scheme, and the variables can only start with letters and consist of letters, numbers and underlines.
In one embodiment, the executing the operating program of the electrical measuring instrument of the scheme type and saving the execution data comprises: and acquiring the selected scheme type in the use case scheme, executing the operation program of the electric measuring instrument of the scheme type, and storing the execution data. In the embodiment, only the selected scheme type can be executed, and partial function test of the electric measuring instrument is realized.
For example, the selection scheme supports shift or ctrl shortcut multiple selection modes. The embodiment supports debugging of a table body scheme and debugging of a meter scheme.
In one specific embodiment, as shown in fig. 3, a method of testing an electrical measuring instrument includes:
a1, configuring parameters; the parameter configuration comprises the configuration of the type of the table body, the communication port of the meter and the specification parameters of the product.
a2, judging parameters, specifically judging whether the table type, the table communication port, the meter communication port and the product specification parameters are qualified. The qualified product enters a3, and the unqualified product enters a 12.
a3, judging whether to start, and starting the execution of the detection item when the tester clicks the start button. Entry a4 is initiated, otherwise a12 is entered.
a4, cycling use cases, specifically, performing loop execution on use case schemes, and entering a 5.
a5, the scheme of the circulation use case is detailed, specifically, the scheme type is circulated, and the process enters a 6.
a6, whether the mark for starting the loop exists or not, specifically, the position of the loop starting scheme and the acquisition loop number are judged. If the flag to start the cycle is found, go to a7, otherwise go to a 8.
a7, judging the control code, specifically obtaining the corresponding value of the control code, and entering a 9.
a8, a loop processing module, which controls the loop execution mode to enter a 7.
a9, obtaining the corresponding scheme type according to the value corresponding to the control code, wherein the scheme type comprises one or more of a table body operation scheme, a serial port operation scheme, a meter reading and writing communication scheme, a time delay scheme, a prompt scheme, a cycle starting scheme, a cycle ending scheme, a data comparison scheme and a variable value stored in a file scheme, executing the operation program of the electric measuring instrument of the scheme type, and entering a 10.
a10, judging whether the circulation use case scheme detail is finished, specifically judging whether the number of times of circulation of the scheme type is reached, if yes, entering a11, otherwise, entering a 5.
a11, judging whether the loop case is finished, specifically judging whether the loop times of the case scheme are reached, if yes, entering a12, otherwise, entering a 4.
a12, end.
The parameter configuration comprises parameter configuration of a table body type, a table body communication port, a meter communication port and the like, and further comprises parameter configuration of product specification parameters such as current, voltage, frequency, phase line, pulse constant and the like. Before starting, the parameters are judged to be non-null validity.
The platform body processing module calls different functions by combining with the platform body type to process operations related to the platform body, wherein the operations comprise power-on, power-off, standard table value reading, standard table error reading and the like. Wherein the values of the standard table are read out and then the variable value saving function is called to save data. The operation of the table bodies of different manufacturers and different models can be expanded in the module.
The meter communication, variable value storage and data comparison module is used for processing a scheme needing to be communicated with a meter, calling a DLMS protocol processing unit to perform framing transmission, receiving and analyzing, and storing a read result into a variable specified by the scheme; the write operation carries out formula processing on the parameters to be written, and stores the processing result into the variables specified by the scheme. The data comparison processing data comparison scheme is characterized in that firstly, whether each comparison type in the scheme is equal in comparison, equal in comparison range or only calculated is distinguished, and different processing functions are respectively called. And the other modules are used for processing serial port parameters, delaying processing, prompting processing and the like.
It should be understood that although the steps in the flowcharts of fig. 1 and 3 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 1 and 3 may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of performing the steps or stages is not necessarily sequential, but may be performed alternately or alternately with other steps or at least some of the other steps or stages.
In one embodiment, as shown in fig. 4, there is provided a test apparatus of an electrical measuring instrument, including: a use case scheme obtaining module 210, an execution module 220, and a functional test result obtaining module 230, wherein:
a use case scheme obtaining module 210, configured to obtain a use case scheme for each function in the detection item, where the use case scheme includes multiple scheme types; the scheme type is generated by adding control codes, and each control code corresponds to an operation program of the electric measuring instrument.
And the execution module 220 is used for executing the operation program of the electric measuring instrument of the scheme type and storing the execution data.
A functional test result obtaining module 230, configured to obtain a functional test result of the electrical measuring instrument according to the execution data.
In one embodiment, the test item supports the functionality of replication as another test item; and/or the use case scenario supports replication as a scenario type for another use case scenario.
In one embodiment, the scheme types include a start loop scheme and an end loop scheme; wherein the start loop scheme is set before the scheme type or use case scheme of the start loop, the end loop scheme is set after the scheme type or use case scheme of the end loop, and the parameter of the start loop scheme includes the loop number.
In one embodiment, the functions, use case scenarios, and scenario types support add, delete, modify, and query operations.
In one embodiment, the scheme type includes one or more of a table body operation scheme, a serial port operation scheme, a meter reading and writing communication scheme, a delay scheme, a prompt scheme, a starting loop scheme, an ending loop scheme, a data comparison scheme and a variable value saving file scheme.
In one embodiment, the testing apparatus of the electrical measuring instrument further comprises: a variable judging module, configured to judge whether a variable in the use case scenario or the scenario type exists in the detection item when the use case scenario or the scenario type is added to the detection item in a copy manner; and the variable definition module is used for acquiring the variable definition of the variable in the use case scheme or the scheme type if the variable in the use case scheme or the scheme type does not exist in the detection item.
In one embodiment, the executing module 220 is further configured to obtain a scheme type selected in the use-case scheme, execute an operating program of the electrical measuring instrument of the scheme type, and store the execution data.
For the specific definition of the test device of the electrical measuring instrument, reference may be made to the above definition of the test method of the electrical measuring instrument, which is not repeated here. The various modules in the test apparatus of the electrical measuring instrument described above may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 5. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing execution data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of testing an electrical measuring instrument.
Those skilled in the art will appreciate that the architecture shown in fig. 5 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is further provided, which includes a memory and a processor, the memory stores a computer program, and the processor implements the steps of the above method embodiments when executing the computer program.
In an embodiment, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method embodiments.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), among others.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method of testing an electrical measuring instrument, the method comprising:
acquiring a use case scheme of each function in a detection project, wherein the use case scheme comprises a plurality of scheme types; the scheme type is generated by adding control codes, and each control code corresponds to an operation program of the electric measuring instrument;
executing the operation program of the electric measuring instrument of the scheme type and saving the execution data;
and obtaining a function test result of the electric measuring instrument according to the execution data.
2. The method of claim 1, wherein the test item supports copying a function as another test item; and/or the use case scenario supports replication as a scenario type for another use case scenario.
3. The method of claim 1, wherein the scheme types include a start loop scheme and an end loop scheme; wherein the start loop scheme is set before the scheme type or use case scheme of the start loop, the end loop scheme is set after the scheme type or use case scheme of the end loop, and the parameter of the start loop scheme includes the loop number.
4. The method of claim 1, wherein the functions, use case scenarios, and scenario types support add, delete, modify, and query operations.
5. The method of claim 1, wherein the recipe types include one or more of a table body recipe, a serial port recipe, a meter read-write communication recipe, a delay recipe, a prompt recipe, a start loop recipe, an end loop recipe, a data comparison recipe, and a variable value saved to a file recipe.
6. The method according to claim 1, before obtaining a use case scenario for each function in a test item, the use case scenario comprising a plurality of scenario types, comprising:
when the use case scheme or the scheme type is added to the detection item in a copy mode, judging whether a variable in the use case scheme or the scheme type exists in the detection item;
and if the variable in the use case scheme or the scheme type does not exist in the detection item, acquiring the variable definition of the variable in the use case scheme or the scheme type.
7. The method of claim 1, wherein said executing an operating program for the electrical measuring instrument of the protocol type and saving execution data comprises:
and acquiring the selected scheme type in the use case scheme, executing the operation program of the electric measuring instrument of the scheme type, and storing the execution data.
8. A test apparatus for an electrical measuring instrument, the apparatus comprising:
the system comprises a use case scheme acquisition module, a detection item detection module and a processing module, wherein the use case scheme acquisition module is used for acquiring a use case scheme of each function in the detection item, and the use case scheme comprises a plurality of scheme types; the scheme type is generated by adding control codes, and each control code corresponds to an operation program of the electric measuring instrument;
the execution module is used for executing the operation program of the electric measuring instrument of the scheme type and storing the execution data;
and the functional test result acquisition module is used for acquiring a functional test result of the electrical measuring instrument according to the execution data.
9. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202011595959.6A 2020-12-30 2020-12-30 Testing method and device of electrical measuring instrument, computer equipment and storage medium Pending CN112286830A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011595959.6A CN112286830A (en) 2020-12-30 2020-12-30 Testing method and device of electrical measuring instrument, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011595959.6A CN112286830A (en) 2020-12-30 2020-12-30 Testing method and device of electrical measuring instrument, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN112286830A true CN112286830A (en) 2021-01-29

Family

ID=74426960

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011595959.6A Pending CN112286830A (en) 2020-12-30 2020-12-30 Testing method and device of electrical measuring instrument, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112286830A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114328218A (en) * 2021-12-28 2022-04-12 宁夏隆基宁光仪表股份有限公司 Method for controlling automatic execution of intelligent instrument test program

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101131660A (en) * 2006-08-25 2008-02-27 佛山市顺德区顺达电脑厂有限公司 Method for integrating module testing work
CN111190093A (en) * 2020-01-10 2020-05-22 上海知白智能科技有限公司 Chip testing method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101131660A (en) * 2006-08-25 2008-02-27 佛山市顺德区顺达电脑厂有限公司 Method for integrating module testing work
CN111190093A (en) * 2020-01-10 2020-05-22 上海知白智能科技有限公司 Chip testing method and device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
叶利等: "智能电能表通信协议及功能一致性检测方法的设计", 《电测与仪表》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114328218A (en) * 2021-12-28 2022-04-12 宁夏隆基宁光仪表股份有限公司 Method for controlling automatic execution of intelligent instrument test program

Similar Documents

Publication Publication Date Title
CN109813999B (en) Automatic test platform, method and application of power distribution network fault diagnosis algorithm
WO2019019647A1 (en) Method and system for determining application program testing range, server and storage medium
CN112286830A (en) Testing method and device of electrical measuring instrument, computer equipment and storage medium
CN111581080A (en) Method, device, equipment and storage medium for generating interface test data
CN103970967A (en) Electromagnetic transient simulation analysis system of electric power system
CN114091383A (en) Test sequence generation method, device and system and related equipment
WO2016041398A1 (en) Method for storing battery level information of mobile terminal and mobile terminal
CN110659036B (en) Method and system for automatically burning google key in Windows system
CN110334385B (en) Test method, device and equipment for central controller of comprehensive energy system
CN116561003A (en) Test data generation method, device, computer equipment and storage medium
CN116859210A (en) Communication chip reliability test method, device and system
CN116340063A (en) Method for testing electronic hardware product, storage medium, electronic device and apparatus
CN115129590A (en) Test case generation method and device, electronic equipment and storage medium
CN112463042B (en) Data volume import data verification method, device, terminal and storage medium
CN108334313A (en) Continuous integrating method, apparatus and code management system for large-scale SOC research and development
CN108255688A (en) Display methods, storage medium, electronic equipment and the system of application log
CN114095396A (en) Intelligent substation data communication detection method, system, equipment and storage medium
CN111679112B (en) Electric energy meter electricity stealing type judging method and device, computer equipment and storage medium
CN115422851B (en) Power system element model calibration method, device, equipment and storage medium
CN116430296A (en) Method and device for checking accuracy of metering result of electric energy meter, medium and terminal
CN107911525B (en) Method and device for detecting power consumption of mobile phone application
CN118362968B (en) Operation error monitoring method and system of electric energy meter
CN115469136A (en) Non-invasive three-phase voltage measuring method based on electric field sensor array
CN115827446A (en) Method and device for processing coverage rate problem of chip test
CN115856572A (en) Method and device for determining chip test coverage rate problem

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
CB03 Change of inventor or designer information

Inventor after: Ding Guomao

Inventor after: Guo Yuanyue

Inventor after: Wu Liyun

Inventor after: Wang Xianni

Inventor after: Hong Huiling

Inventor after: Peng Liuzhu

Inventor after: Yang Dan

Inventor after: Ding Yugang

Inventor before: Guo Yuanyue

Inventor before: Wu Liyun

Inventor before: Wang Xianni

Inventor before: Hong Huiling

Inventor before: Peng Liuzhu

Inventor before: Yang Dan

Inventor before: Ding Yugang

CB03 Change of inventor or designer information
RJ01 Rejection of invention patent application after publication

Application publication date: 20210129

RJ01 Rejection of invention patent application after publication