CN111723020A - Method, device and equipment for testing electric energy meter testing software - Google Patents

Method, device and equipment for testing electric energy meter testing software Download PDF

Info

Publication number
CN111723020A
CN111723020A CN202010601363.6A CN202010601363A CN111723020A CN 111723020 A CN111723020 A CN 111723020A CN 202010601363 A CN202010601363 A CN 202010601363A CN 111723020 A CN111723020 A CN 111723020A
Authority
CN
China
Prior art keywords
test
software
testing
environment
quantity data
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
CN202010601363.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.)
China Southern Power Grid Co Ltd
Research Institute of Southern Power Grid Co Ltd
Original Assignee
China Southern Power Grid Co Ltd
Research Institute of Southern Power Grid 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 China Southern Power Grid Co Ltd, Research Institute of Southern Power Grid Co Ltd filed Critical China Southern Power Grid Co Ltd
Priority to CN202010601363.6A priority Critical patent/CN111723020A/en
Publication of CN111723020A publication Critical patent/CN111723020A/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/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01RMEASURING ELECTRIC VARIABLES; MEASURING MAGNETIC VARIABLES
    • G01R35/00Testing or calibrating of apparatus covered by the other groups of this subclass
    • G01R35/04Testing or calibrating of apparatus covered by the other groups of this subclass of instruments for measuring time integral of power or current
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging

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)
  • Stored Programmes (AREA)

Abstract

The invention discloses a method, a device and equipment for testing electric energy meter testing software. The method of the invention comprises the following steps: running the test software within a software runtime environment in response to the received test instructions; calling a function interface environment, acquiring a metering core electric quantity data input file and a preset output file through the function interface environment, reading metering core electric quantity data in the metering core electric quantity data input file, and inputting the metering core electric quantity data to the test software; receiving a test result for testing the electric quantity data of the core, and writing the test result into a test output file; and comparing whether the test output file is consistent with the preset output file, and if so, judging that the processing logic of the test software is correct. The purpose of the invention is: the method solves the technical problem that in the test process of testing the software, the hardware environment support of the target machine is needed, and the unknown errors caused by the hardware problem of the target machine in the test and debugging process are difficult to avoid.

Description

Method, device and equipment for testing electric energy meter testing software
Technical Field
The invention relates to the technical field of power grid system testing, in particular to a method, a device and equipment for testing electric energy meter testing software.
Background
With the wide use of computer informatization technology in the global scope, the rapid development of the smart grid is rapidly promoted, software directly embodies the capability of computer virtualization technology, software engineering technology is fully popularized and used in various industries, the stability of the software directly relates to the economic benefit of users, once the software fails, the loss of public benefit is caused, and the software quality detection becomes the important factor of equipment detection. By using the software testing technology, the failure rate of the software system can be reduced to the maximum extent, the normal operation of the software is ensured, and the stability of the software system is improved.
The intelligent electric energy meter is used as an embedded measurement and control unit and has the characteristics of an embedded metering system with highly combined software and hardware, continuous online operation, real-time communication and instant response, and embedded software is embedded system software.
Aiming at embedded software testing, gray box testing is started in recent years, the testing method is between black box testing and white box testing, not only is the correctness of input and output in interaction between a software program and a peripheral module concerned, but also the condition inside the program is concerned, the testing method is to build a semi-simulation operating environment through FPGA to carry out embedded software testing of an intelligent electric energy meter, and because the processing of reading, writing, storage and the like of a file in the testing process needs to be processed by placing the file on a target machine with a storage chip (such as FLASH, EEPROM, ferroelectric and the like), the testing process needs to be carried out by depending on the target machine, and the ideas of fault injection, limitation, boundary and the like are adopted to carry out software test case design.
Obviously, for such a gray box test, it inevitably needs the hardware environment support of the target machine, and it is impossible to avoid an unknown error caused by the hardware problem of the target machine during the test and debugging process.
Disclosure of Invention
The invention provides a test method of electric energy meter test software, which is used for solving the technical problem that an unknown error caused by the hardware problem of a target machine in the test and debugging process can not be avoided due to the fact that the hardware environment support of the target machine is needed in the test process of the intelligent electric energy meter embedded software test.
The invention provides a test method of electric energy meter test software,
based on a software running environment which is pre-established on a host machine, the software running environment comprises a function interface environment, the function interface environment is used for file calling, and the method comprises the following steps:
running the test software within a software runtime environment in response to the received test instructions;
calling a function interface environment, acquiring a metering core electric quantity data input file and a preset output file through the function interface environment, reading metering core electric quantity data in the metering core electric quantity data input file, and inputting the metering core electric quantity data to the test software;
receiving a test result for testing the electric quantity data of the core, and writing the test result into a test output file;
and comparing whether the test output file is consistent with the preset output file, and if so, judging that the processing logic of the test software is correct.
Optionally, the step of calling the function interface environment comprises calling an API function interface environment.
Optionally, the test software is a layer structure, which includes an intermediate layer and an application layer, and before the step of calling the API environment, the test software further includes: and encapsulating the API function interface environment in the middle layer.
Optionally, the step of receiving a test result for testing the core capacity data includes: and reading and storing the data generated by the metering core electric quantity data in the test process of the test software through the API function interface environment.
Optionally, the step of receiving a test result for testing the core capacity data includes: and reading and storing the test result through the API function interface environment.
Optionally, the software running environment is a pre-constructed running environment, which further includes a software compiling running environment.
Optionally, the test content of the test software includes: integration test, unit test and system test.
The invention also provides a device for testing the software of the electric energy meter, which comprises:
the running unit is used for responding to the received test instruction and running the test software in the software running environment;
the calling unit is used for calling a function interface environment, acquiring a metering core electric quantity data input file and a preset output file through the function interface environment, reading the metering core electric quantity data in the metering core electric quantity data input file, and inputting the metering core electric quantity data to the test software;
the receiving unit is used for receiving a test result of the core electric quantity data and writing the test result into a test output file;
and the comparison unit is used for comparing whether the test output file is consistent with the preset output file or not, and judging that the processing logic of the test software is correct if the test output file is consistent with the preset output file.
Optionally, the calling unit is further configured to call an API function interface environment.
The invention also provides an intelligent electric energy meter device, which comprises a memory, a processor and a program of a test method of electric energy meter test software stored on the memory and capable of running on the processor, wherein the method comprises the following steps:
running the test software within a software runtime environment in response to the received test instructions;
calling a function interface environment, acquiring a metering core electric quantity data input file and a preset output file through the function interface environment, reading metering core electric quantity data in the metering core electric quantity data input file, and inputting the metering core electric quantity data to the test software;
receiving a test result for testing the electric quantity data of the core, and writing the test result into a test output file;
and comparing whether the test output file is consistent with the preset output file, and if so, judging that the processing logic of the test software is correct.
According to the technical scheme, a software running environment is built in a host machine, test software is run in the software running environment, a function interface environment is called, a metering core electric quantity data input file and a preset output file are obtained through the function interface environment, metering core electric quantity data in the metering core electric quantity data input file are read, the metering core electric quantity data are input into the test software, further, a test result of testing the core electric quantity data is received, the test result is written into the test output file, and finally, whether the test output file is consistent with the preset output file or not is compared, if so, the test software is judged to have correct processing logic.
Through the technical scheme, in the process of testing the test case, under the software running environment constructed by the host machine, reading the electric quantity data input file of the metering chip in the testing process of the testing software and reading and storing the data generated in the testing process of the testing software by calling the function interface environment of the software running environment, wherein the data does not need to be placed on the storage chip for processing in the testing process, and the invention has the advantages that: in the testing process, the file does not need to be placed on a target machine with a storage chip (such as FLASH, EEPROM, ferroelectric and the like) for processing, and the process of reading, writing and storing the file is independent of the target machine, so that the technical problem of unknown errors caused by the hardware problem of the target machine in the testing and debugging process due to the need of the hardware environment support of the target machine in the testing process of the embedded software testing of the intelligent electric energy meter is solved, and the accuracy and the efficiency of the detection are improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without inventive exercise.
FIG. 1 is a schematic flow chart of a testing method of testing software of an electric energy meter according to the present invention;
FIG. 2 is a schematic diagram of the operation of test software in a test environment of a host computer according to the present invention;
FIG. 3 is a schematic flow chart illustrating a testing method of electric energy meter testing software according to another embodiment of the present invention;
FIG. 4 is a flow chart illustrating a testing method of electric energy meter testing software according to another embodiment of the present invention;
fig. 5 is a flowchart illustrating a testing method of electric energy meter testing software according to another embodiment of the present invention.
Detailed Description
The embodiment of the invention provides a test method of electric energy meter test software, which is used for solving the technical problem that an unknown error caused by the hardware problem of a target machine in the test and debugging process cannot be avoided due to the fact that the hardware environment support of the target machine is needed in the test process of the intelligent electric energy meter embedded software test.
In order to make the objects, features and advantages of the present invention more obvious and understandable, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the embodiments described below are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
For easy understanding, referring to fig. 1, fig. 1 is a diagram illustrating an embodiment of a test method for electric energy meter test software according to the present invention, first, based on a software operating environment pre-built in a host, where the software operating environment includes a function interface environment, and the function interface environment is used for file call, and the test method for electric energy meter test software includes:
step 101, responding to a received test instruction, and running the test software in a software running environment;
it should be noted that the software running environment is a condition required by the test software in the running process, and the test contents of the test software include: integration test, unit test and system test.
Before test software is run, the software running environment is run in an operating system of a host machine, the actual running system of the host machine can be various operating systems such as Windows, Linux, MacOS, UNIX and the like, functions of the operating system for creating and deleting files are realized through a file system, and the file system is a part of the operating system of the host machine.
In addition, the host may be a computer or a virtual machine, which is not limited herein.
And secondly, the electric energy meter test software is positioned in a software system of the host machine operating system, the software architecture adopts a modularized and multi-level software architecture, and each functional module provides a uniform preset functional interface for upper-layer calling.
Further, referring to fig. 2, fig. 2 is a schematic diagram of the actual operation of the test software in the test environment of the host, where the multiple layers include an intermediate layer and an application layer.
The interface layer is packaged with various preset function interfaces, and when the application layer needs to use a certain function, the interface layer can provide the interface needed by the application layer; the application layer comprises all business processes of the overall functions of the product, and corresponding functions are realized by calling a preset function interface of the middle layer; the application layer is used for completing the integration and calling of the business logic, thereby realizing the functions of the whole product.
In this scheme, the software running environment includes a function interface environment and a software compiling environment, the function interface environment includes multiple preset function interfaces, the function interface environment may be an API function interface environment, the API function interface environment may be used to complete functions such as reading, writing, and storing of files, the software compiling environment may be an IDE environment (such as Visual Studio in windows environment, GCC in linux environment) for compiling executable files generated when testing software running, and the function interface environment provides a function interface corresponding to compiling, so as to prevent that compiling is not passed when the executable files need to be modified.
In addition, before the operation environment is operated, an operator can set data to be tested, legal data, boundary data, limit data, illegal data and the like according to a data format.
102, calling a function interface environment, acquiring a metering core electric quantity data input file and a preset output file through the function interface environment, reading metering core electric quantity data in the metering core electric quantity data input file, and inputting the metering core electric quantity data to the test software;
it should be noted that, a function interface environment in the software runtime environment is called, and the function interface environment is utilized to complete the functions to be implemented in the testing process. Specifically, the step of calling the function interface environment includes: the API function interface environment is called, that is, the function interface environment is an API function interface environment, and functions thereof are to call, read, and write and store data or files.
In the embodiment, the method is used for calling a metering core electric quantity data input file and a preset output file; reading and storing the metering core electric quantity data in the metering core electric quantity data input file, and data and test results generated in the test process of the metering core electric quantity data in the test software.
And 103, receiving a test result of the core electric quantity data, and writing the test result into a test output file.
It should be noted that, after the electric quantity data of the metering core is input into the testing software, various calculation results are obtained after various calculations of the testing software, and the calculation results are written into the test output file one by one, so as to facilitate the subsequent step operation.
And step 104, comparing whether the test output file is consistent with the preset output file, and if so, judging that the processing logic of the test software is correct.
It should be noted that, before the test, the measurement core power data of the file is input according to the input measurement core power data, the test software may preset a preset correct result, and the preset output file corresponds to the measurement core power data and changes according to the input measurement core power data.
In the process, the metering core electric quantity data of the metering core electric quantity data input file is directly read through the reading interface, the metering core electric quantity data and the like are stored in an actual output file after logic processing, the metering core electric quantity data of different metering core electric quantity data input files are read, whether the test output file is consistent with a preset output file or not is compared, whether the processing logic is correct or not is judged conveniently, and therefore the reliability of the test software is judged. The comparison may be manual comparison or automatic comparison by the operating system of the host, and in this embodiment, the comparison is performed in an automatic comparison manner by the operating system of the host, and the test result and the preset correct result are automatically compared, so that the validity and reliability of the software logic can be determined.
In addition, the test result and the preset correct result can be directly known in a display mode, specifically can be checked on a host machine, and compared with the test mode that the target machine is required to test at present, the scheme has the effects of convenience in comparison, lower comparison time cost and higher test efficiency.
In the embodiment, the test software is operated in the software operating environment constructed in the host machine, the software operating environment comprises a function interface for file calling, the reading of the metering chip electric quantity data input file by the test software in the test process is completed by calling the function interface environment of the software operating environment, and the reading and storing of the metering chip electric quantity data in the data generated in the test process of the test software are completed, and the data do not need to be placed on the storage chip for processing in the process.
Through the technical scheme, in the process of testing the test case, under the software running environment constructed by the host machine, reading the electric quantity data input file of the metering chip in the testing process of the testing software and reading and storing the data generated in the testing process of the testing software by calling the function interface environment of the software running environment, wherein the data does not need to be placed on the storage chip for processing in the testing process, and the invention has the advantages that: in the testing process, the file does not need to be placed on a target machine with a storage chip (such as FLASH, EEPROM, ferroelectric and the like) for processing, and the process of reading, writing and storing the file is independent of the target machine, so that the technical problem of unknown errors caused by the hardware problem of the target machine in the testing and debugging process due to the need of the hardware environment support of the target machine in the testing process of the embedded software testing of the intelligent electric energy meter is solved, and the accuracy and the efficiency of the detection are improved.
Obviously, the computer file is adopted to replace an actual storage chip for data storage, and the problem that in the testing process of the intelligent electric energy meter embedded software, the hardware environment support of a target machine is needed, so that an unknown error caused by the hardware problem of the target machine in the testing and debugging process cannot be avoided.
The above is an embodiment of a method for testing electric energy meter test software according to an embodiment of the present invention, and the following is another embodiment of the method for testing electric energy meter test software according to an embodiment of the present invention.
Referring to fig. 3, an embodiment of the present invention provides another embodiment of a testing method for testing software of an electric energy meter, where the testing software is a layer structure, and includes an intermediate layer and an application layer, and before the step of calling the API function interface environment, the testing method further includes: step 201, encapsulating the API function interface environment in the middle layer.
It should be noted that, the API function interface environment that the test software needs to use in the test process is encapsulated in the middle layer, that is, when testing next time, the application layer of the test software can directly call the function interface environment through the middle layer to implement the required function, and does not need to call in the software running environment, which is beneficial to saving time and improving test efficiency.
The above is an embodiment of a method for testing electric energy meter test software according to an embodiment of the present invention, and the following is another embodiment of the method for testing electric energy meter test software according to an embodiment of the present invention.
Referring to fig. 4, another embodiment of the testing method for testing electric energy meter testing software according to the present invention provides that the step of receiving the test result of testing the electric quantity data of the core includes: step 301, reading and storing data generated in the test software test process of the metering core electric quantity data through the API function interface environment.
It should be noted that, through the API function interface environment, data generated in the test process of the test software by the measurement core power data in the test process can be read and stored, so that data in each stage in the test process can be effectively stored, and data can be retained to verify the test result.
The above is an embodiment of a method for testing electric energy meter test software according to an embodiment of the present invention, and the following is another embodiment of the method for testing electric energy meter test software according to an embodiment of the present invention.
Referring to fig. 5, another embodiment of the testing method for testing electric energy meter testing software according to the present invention provides that the step of receiving the test result of testing the electric quantity data of the core includes: step 401, reading and storing the test result through the API function interface environment.
It can be understood that after the API function interface environment is called, the test case, the test result, and the comparison result may be read and written and stored according to actual needs. It should be noted that, the reading, writing, and storing of the test case, the test result, and the comparison result may be performed simultaneously or sequentially, and are not limited herein.
The above is an embodiment of a method for testing electric energy meter test software according to an embodiment of the present invention, and the following is another embodiment of the method for testing electric energy meter test software according to an embodiment of the present invention.
The embodiment of the invention provides another embodiment of a test method of electric energy meter test software, and the test contents of the electric energy meter test software comprise integration test, unit test and system test.
The invention also provides a testing device for the electric energy meter software, which comprises:
the running unit is used for responding to the received test instruction and running the test software in the software running environment;
the calling unit is used for calling a function interface environment, acquiring a metering core electric quantity data input file and a preset output file through the function interface environment, reading the metering core electric quantity data in the metering core electric quantity data input file, inputting the metering core electric quantity data to the test software, and calling an API function interface environment;
the receiving unit is used for receiving a test result of the core electric quantity data and writing the test result into a test output file;
and the comparison unit is used for comparing whether the test output file is consistent with the preset output file or not, and judging that the processing logic of the test software is correct if the test output file is consistent with the preset output file.
The specific embodiment of the testing device for the electric energy meter software is basically the same as the embodiment of the testing method for the electric energy meter software, and is not repeated.
The above is an embodiment of a method for testing electric energy meter test software according to an embodiment of the present invention, and the following is another embodiment of the method for testing electric energy meter test software according to an embodiment of the present invention.
Referring to fig. 1, the present invention further provides an intelligent electric energy meter device, including a memory, a processor, and a program of a testing method of electric energy meter testing software stored on the memory and operable on the processor, the method including:
running the test software within a software runtime environment in response to the received test instructions;
calling a function interface environment, acquiring a metering core electric quantity data input file and a preset output file through the function interface environment, reading metering core electric quantity data in the metering core electric quantity data input file, and inputting the metering core electric quantity data to the test software;
receiving a test result for testing the electric quantity data of the core, and writing the test result into a test output file;
and comparing whether the test output file is consistent with the preset output file, and if so, judging that the processing logic of the test software is correct.
The specific embodiment of the intelligent electric energy meter device is basically the same as the embodiment of the test method of the electric energy meter test software, and the detailed description is omitted.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A test method for electric energy meter test software is characterized in that based on a software running environment which is pre-constructed on a host machine, the software running environment comprises a function interface environment, the function interface environment is used for file calling, and the method comprises the following steps:
running the test software within a software runtime environment in response to the received test instructions;
calling a function interface environment, acquiring a metering core electric quantity data input file and a preset output file through the function interface environment, reading metering core electric quantity data in the metering core electric quantity data input file, and inputting the metering core electric quantity data to the test software;
receiving a test result for testing the electric quantity data of the core, and writing the test result into a test output file;
and comparing whether the test output file is consistent with the preset output file, and if so, judging that the processing logic of the test software is correct.
2. The method for testing electric energy meter testing software according to claim 1, wherein the step of calling the function interface environment comprises: and calling the API function interface environment.
3. The method for testing electric energy meter test software according to claim 2, wherein the test software is a layer structure including an intermediate layer and an application layer, and further comprising, before the step of calling the API environment: and encapsulating the API function interface environment in the middle layer.
4. The method for testing electric energy meter test software according to claim 3, wherein the step of receiving the test result of testing the core capacity data is followed by the steps of: and reading and storing the data generated by the metering core electric quantity data in the test process of the test software through the API function interface environment.
5. The method for testing electric energy meter test software according to claim 3, wherein the step of receiving the test result of testing the core capacity data is followed by the steps of: and reading and storing the test result through the API function interface environment.
6. The method for testing electric energy meter test software according to claim 1, wherein the software operating environment is a pre-constructed operating environment, and further comprises a software compiling operating environment.
7. The method for testing electric energy meter test software according to any one of claims 1 to 6, wherein the test contents of the test software comprise: integration test, unit test and system test.
8. An electric energy meter testing device, comprising:
the running unit is used for responding to the received test instruction and running the test software in the software running environment;
the calling unit is used for calling a function interface environment, acquiring a metering core electric quantity data input file and a preset output file through the function interface environment, reading the metering core electric quantity data in the metering core electric quantity data input file, and inputting the metering core electric quantity data to the test software;
the receiving unit is used for receiving a test result of the core electric quantity data and writing the test result into a test output file;
and the comparison unit is used for comparing whether the test output file is consistent with the preset output file or not, and judging that the processing logic of the test software is correct if the test output file is consistent with the preset output file.
9. The device for testing electric energy meter software according to claim 8, wherein the calling unit is further configured to call an API function interface environment.
10. An intelligent electric energy meter device, characterized by comprising a memory, a processor and a program of a test method of electric energy meter test software stored on the memory and operable on the processor, wherein the processor implements the method of any one of claims 1 to 7 when executing the program of the test method of electric energy meter test software.
CN202010601363.6A 2020-06-29 2020-06-29 Method, device and equipment for testing electric energy meter testing software Pending CN111723020A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010601363.6A CN111723020A (en) 2020-06-29 2020-06-29 Method, device and equipment for testing electric energy meter testing software

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010601363.6A CN111723020A (en) 2020-06-29 2020-06-29 Method, device and equipment for testing electric energy meter testing software

Publications (1)

Publication Number Publication Date
CN111723020A true CN111723020A (en) 2020-09-29

Family

ID=72569333

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010601363.6A Pending CN111723020A (en) 2020-06-29 2020-06-29 Method, device and equipment for testing electric energy meter testing software

Country Status (1)

Country Link
CN (1) CN111723020A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112286833A (en) * 2020-12-31 2021-01-29 中国电力科学研究院有限公司 Intelligent electric energy meter real-time operating system drive test method and device
CN113010423A (en) * 2021-03-17 2021-06-22 南方电网数字电网研究院有限公司 Method and device for detecting reliability of electric energy meter software, computer equipment and medium
CN113687294A (en) * 2021-08-12 2021-11-23 深圳供电局有限公司 Test method and device for double-core intelligent electric meter, computer equipment and storage medium
CN113688050A (en) * 2021-08-31 2021-11-23 南方电网科学研究院有限责任公司 Electric energy meter application function test system, method, equipment and medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110140911A1 (en) * 2008-08-08 2011-06-16 Powermax Global Llc Reliable, long-haul data communications over power lines for meter reading and other communications services
CN103019940A (en) * 2012-12-26 2013-04-03 中国计量学院 Electric energy meter embedded software semi-simulation test device
CN105738854A (en) * 2014-12-12 2016-07-06 国家电网公司 Simulation memory test board system for intelligent ammeter embedded application and test method
CN107678960A (en) * 2017-09-26 2018-02-09 国网冀北电力有限公司电力科学研究院 Intelligent electric energy meter software Black-box Testing system and method
CN108768960A (en) * 2018-05-10 2018-11-06 腾讯科技(深圳)有限公司 Method for detecting virus, device, storage medium and computer equipment
CN109725281A (en) * 2019-01-18 2019-05-07 国网江苏省电力有限公司电力科学研究院 A kind of long-range source tracing method of digitalized electrical energy meter based on quantum techniques and system
US20190163618A1 (en) * 2017-11-27 2019-05-30 Accenture Global Solutions Limited Robotic regression testing for smart devices
CN110427314A (en) * 2019-06-14 2019-11-08 广西电网有限责任公司电力科学研究院 A kind of metering automation end message security reliability test method and system
US20200004665A1 (en) * 2018-06-29 2020-01-02 International Business Machines Corporation Unit test framework for testing code in a gateway service
CN110907882A (en) * 2019-10-10 2020-03-24 中国电力科学研究院有限公司 Electric energy meter-oriented virtualization test method and system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110140911A1 (en) * 2008-08-08 2011-06-16 Powermax Global Llc Reliable, long-haul data communications over power lines for meter reading and other communications services
CN103019940A (en) * 2012-12-26 2013-04-03 中国计量学院 Electric energy meter embedded software semi-simulation test device
CN105738854A (en) * 2014-12-12 2016-07-06 国家电网公司 Simulation memory test board system for intelligent ammeter embedded application and test method
CN107678960A (en) * 2017-09-26 2018-02-09 国网冀北电力有限公司电力科学研究院 Intelligent electric energy meter software Black-box Testing system and method
US20190163618A1 (en) * 2017-11-27 2019-05-30 Accenture Global Solutions Limited Robotic regression testing for smart devices
CN108768960A (en) * 2018-05-10 2018-11-06 腾讯科技(深圳)有限公司 Method for detecting virus, device, storage medium and computer equipment
US20200004665A1 (en) * 2018-06-29 2020-01-02 International Business Machines Corporation Unit test framework for testing code in a gateway service
CN109725281A (en) * 2019-01-18 2019-05-07 国网江苏省电力有限公司电力科学研究院 A kind of long-range source tracing method of digitalized electrical energy meter based on quantum techniques and system
CN110427314A (en) * 2019-06-14 2019-11-08 广西电网有限责任公司电力科学研究院 A kind of metering automation end message security reliability test method and system
CN110907882A (en) * 2019-10-10 2020-03-24 中国电力科学研究院有限公司 Electric energy meter-oriented virtualization test method and system

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
何绘宇;: "智能电表嵌入式软件性能测试", 电子测试, no. 13, pages 101 - 102 *
庞富宽;汪洋;袁瑞铭;巨汉基;宋锡强;汪萍萍;: "基于R46标准的智能电能表软件检测关键技术研究", 电测与仪表, no. 19, pages 137 - 141 *
游彪: "智能电能表软件白盒测试技术研究及应用", 中国优秀硕士论文电子期刊 *
韩炜: "可信嵌入式软件开发方法与实践", 30 September 2017, 航空工业出版社, pages: 171 - 173 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112286833A (en) * 2020-12-31 2021-01-29 中国电力科学研究院有限公司 Intelligent electric energy meter real-time operating system drive test method and device
CN112286833B (en) * 2020-12-31 2021-04-16 中国电力科学研究院有限公司 Intelligent electric energy meter real-time operating system drive test method and device
CN113010423A (en) * 2021-03-17 2021-06-22 南方电网数字电网研究院有限公司 Method and device for detecting reliability of electric energy meter software, computer equipment and medium
CN113010423B (en) * 2021-03-17 2023-09-15 南方电网数字电网研究院有限公司 Electric energy meter software reliability detection method and device, computer equipment and medium
CN113687294A (en) * 2021-08-12 2021-11-23 深圳供电局有限公司 Test method and device for double-core intelligent electric meter, computer equipment and storage medium
CN113688050A (en) * 2021-08-31 2021-11-23 南方电网科学研究院有限责任公司 Electric energy meter application function test system, method, equipment and medium

Similar Documents

Publication Publication Date Title
CN111723020A (en) Method, device and equipment for testing electric energy meter testing software
US10204698B2 (en) Method to dynamically inject errors in a repairable memory on silicon and a method to validate built-in-self-repair logic
CN108875061A (en) A kind of conformance test method and relevant apparatus of distributed file system
CN109614324A (en) A kind of method for generating test case and device
US10671506B2 (en) Evaluating fairness in devices under test
CN103049374B (en) Automatic testing method and device
US10210296B2 (en) Adaptive bug-search depth for simple and deep counterexamples
CN107357721B (en) Method and device for testing system
CN112561690A (en) Method, system, equipment and storage medium for testing credit card staging service interface
CN115656788B (en) Chip testing system, method, equipment and storage medium
CN108021478B (en) Robustness testing method for graphics processor
CN113127331A (en) Fault injection-based test method and device and computer equipment
CN115576766A (en) Flash memory management algorithm debugging method, system, device and readable storage medium
CN115599401A (en) Publishing method, device, equipment and medium of user-defined model
CN116775202A (en) Fuzzy test method, device, medium, electronic equipment and computer program product
CN112306954A (en) File system testing method and device
CN112885403A (en) Function test method, device and equipment of Flash controller
CN105787214A (en) Method and device for model verification
CN112463633A (en) Method, device, equipment and medium for checking address decoding of on-chip memory
CN111694727A (en) Network card firmware upgrading and downgrading test method, system, terminal and storage medium
CN117827554A (en) Test method, test device, computer equipment and storage medium
CN117389863A (en) ECC fault strategy self-checking method, system, medium and electronic equipment
CN116303058A (en) Test environment checking method, system, electronic equipment and medium
CN117033099A (en) Pressure testing method, system and device for system hard disk and storage medium
CN116185874A (en) Test report generation method, device, equipment and storage medium

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