Automatic testing method and device for electric energy meter

An automated testing method and device for electric energy meters uses an analog signal board and test case library to simulate operations, addressing inefficiencies and errors in traditional testing, enhancing accuracy and efficiency.

CN119247252APending Publication Date: 2025-01-03HEXING ELECTRICAL CO LTD +6
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411292050.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-14
Publication Date
2025-01-03

AI Technical Summary

Technical Problem

Traditional electric energy meter testing methods are labor-intensive, costly, prone to human error, and inefficient, struggling to meet the demands of rapid product iteration and adapt to diverse product structures.

Method used

An automated testing method and device utilizing an analog signal board to simulate energy meter operations, coupled with a test case library and control unit to output analog signals, replacing manual operations and ensuring accurate, efficient testing.

Benefits of technology

The solution reduces labor costs, enhances test accuracy and reliability, and significantly improves efficiency, enabling 24-hour uninterrupted testing and rapid product development cycles.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119247252A_ABST
    Figure CN119247252A_ABST
Patent Text Reader

Abstract

The invention provides an automatic testing method and device for an electric energy meter, and belongs to the technical field of electric energy meter testing. The automatic test method for the electric energy meter comprises the following steps: S1, constructing a test case library corresponding to test requirements of at least one type of electric energy meter; s2, an analog circuit capable of simulating a plurality of operation behaviors of the electric energy meter is arranged on the analog signal board; s3, a corresponding test case is matched in the test case library according to the test requirement of the to-be-tested electric energy meter; and S4, controlling the analog signal board to output a corresponding analog operation signal according to the test case, and obtaining a test result corresponding to the to-be-tested electric energy meter according to the analog operation signal. According to the method, manual operation is replaced by an implementation mode of converting test process operation, different test operations are converted into signals to be input into the sampling points of the electric meter, so that the purpose of realizing related tests is achieved, the test cost is reduced, the test precision and reliability are improved, the test efficiency is improved, and compared with manual test, the method can stably run for a long time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electric energy meter testing, and in particular to an automatic testing method and device for an electric energy meter. Background Art

[0002] Traditional energy meter testing methods mainly rely on manual operation of test equipment and energy meters to meet the test conditions or scenarios and working conditions in the test. For example, the tester needs to manually press the button of the energy meter, observe the flashing status of the LED indicator, perform short-circuit operations on the test pins or contacts, and open / close the meter cover / module cover / terminal cover and other operations. This manual operation method has the following problems: it consumes a lot of human resources and increases the test cost: since the energy meter function test involves multiple operation steps, a large number of testers are required, resulting in high labor costs; it is easily affected by human factors, resulting in unstable test results and low accuracy: there are certain errors and randomness in manual operation, which can easily lead to deviations in test results and affect product quality assurance; the test efficiency is low and it is difficult to meet the needs of rapid product iteration: the manual operation test is slow, which is difficult to meet the needs of rapid product development and iteration, and delays the time to market.

[0003] For the existing test contents that require operation, such as pressing the button or keyboard of the electric energy meter, opening / closing the cover or switch of the electric energy meter, the manual operation can be replaced by the introduction of equipment such as manipulators, but the following problems still exist: High cost: A set of robot-type equipment that supports the completion of the corresponding manual operation includes software systems and hardware equipment, which is expensive, costing hundreds of thousands. If you want to meet the test of batch electric energy meters, you need to introduce multiple sets of equipment, the development cost is soaring, and the cost performance is low; The equipment is bulky and requires a large amount of space: Compared with an electric energy meter itself, the robot equipment occupies a large space, and the laboratory needs to provide more space to meet the operation requirements during the test; Poor product adaptability: For the fast-iterating electric energy meter products, their physical structure will change with the continuous development of the product, and the physical structure of the products for different customers and markets will also be greatly different due to the differences in demand. It is difficult to achieve compatibility with different products and different versions. Based on the above problems, the existing solutions are difficult to meet the requirements of product development cost control and development cycle adaptability of enterprises, and it is difficult to be implemented in the actual product development process. Summary of the invention

[0004] In order to solve the above problems, the embodiments of the present application provide an automatic testing method and device for an electric energy meter.

[0005] In a first aspect, an embodiment of the present application provides an automatic testing method for an electric energy meter, comprising the following steps: S1: Build a test case library corresponding to the test requirements of at least one model of electric energy meter; S2: setting an analog circuit on the analog signal board that can simulate multiple operation behaviors of the electric energy meter; S3: matching corresponding test cases in the test case library according to the test requirements of the electric energy meter to be tested; S4: Control the analog signal board to output a corresponding analog operation signal according to the test case, and obtain the test result corresponding to the electric energy meter to be tested according to the analog operation signal.

[0006] Preferably, the test case includes test steps, and step S4 specifically includes: S41: reading a corresponding test case from a test case library, and obtaining a test instruction about a test step from the test case; S42: Control the analog signal board to output a corresponding analog operation signal according to the test instruction; S43: sending the analog operation signal to the electric energy meter to be tested; S44: receiving the operating status data of the electric energy meter to be tested and analyzing and processing the operating status data to obtain a test result.

[0007] Preferably, the test case also includes expected results and data comparison rules, and after step S4, further includes: S5: Retrieve the expected results and data comparison rules in the test case, and compare the expected results with the test results according to the data comparison rules to obtain a comparison value, and obtain the judgment information of the test result according to the comparison value. If the comparison value is within the preset range, the judgment information of the test result is judged to be passed; if the comparison value is not within the preset range, the judgment information of the test result is judged to be failed.

[0008] Preferably, step S3 specifically includes: respectively obtaining the test model and test requirements of the electric energy meter to be tested, matching the model to be tested in the test case library, and if the model to be tested matches the target model in the test case library, matching the test requirements in the test case library, and if the test requirements match the target requirements in the test case library, using the target case corresponding to the target requirement as the test case corresponding to the electric energy meter to be tested.

[0009] Preferably, step S2 specifically includes: arranging an analog circuit inside the analog signal board and / or connecting the analog circuit through an expansion interface of the analog signal board.

[0010] In a second aspect, an embodiment of the present application provides an automatic test device for an electric energy meter, including a library construction module, a use case matching module, a simulation signal board, and a test module; The analog signal board is provided with an analog circuit capable of simulating multiple operation behaviors of the electric energy meter; The library construction module is used to construct a test case library corresponding to the test requirements of at least one model of electric energy meter; The test case matching module is used to match the corresponding test case in the test case library according to the test requirements of the electric energy meter to be tested; The test module is used to control the analog signal board to output the corresponding analog operation signal according to the test case, and obtain the test result corresponding to the electric energy meter to be tested according to the analog operation signal.

[0011] Preferably, the test case further includes a test step, and the test module includes a control unit, a communication unit, a collection unit, and a data processing unit; The control unit is used to read the corresponding test case from the test case library, obtain the test instruction about the test step from the test case, and control the analog signal board to output the corresponding analog operation signal according to the test instruction; The communication unit is used to communicate between the control unit and the electric energy meter to be tested, and the communication unit is used to send the analog operation signal sent by the control unit to the electric energy meter to be tested, and to receive the operation status data sent by the electric energy meter to be tested and send the operation status data to the control unit; The data processing unit is used to receive the running status data sent by the control unit and analyze and process the running status data to obtain the test result.

[0012] Preferably, the test case also includes expected results, data comparison rules, and The judgment module is used to retrieve the expected results and data comparison rules in the test case, and compare the expected results with the test results according to the data comparison rules to obtain a comparison value, and obtain the judgment information of the test result according to the comparison value. If the comparison value is within a preset range, the judgment information of the test result is judged to be passed; if the comparison value is not within the preset range, the judgment information of the test result is judged to be failed.

[0013] In a third aspect, an embodiment of the present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps of the method provided in the first aspect or any possible implementation of the first aspect are implemented.

[0014] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method provided in the first aspect or any possible implementation of the first aspect.

[0015] The beneficial effects of the present invention are as follows: test cases are obtained in a test case library according to the test requirements of the electric energy meter to be tested, the analog signal board is controlled to output corresponding analog operation signals according to the test cases, and the test results corresponding to the electric energy meter to be tested are obtained according to the analog operation signals. The analog signal board is used as an intermediate bridge, and the implementation method of the test process operation is converted to replace the manual operation, and different test operations are converted into sampling points of the signal input meter to achieve the purpose of realizing related tests, reduce test costs, improve test accuracy and reliability, and improve test efficiency. Compared with manual testing, this application can run stably for a long time. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0017] Figure 1 A schematic diagram of a flow chart of an automatic testing method for an electric energy meter provided in an embodiment of the present application; Figure 2 A schematic diagram of the structure of an automatic test device for an electric energy meter provided in an embodiment of the present application; Figure 3 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0018] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0019] In the following introduction, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance. The following introduction provides multiple embodiments of the present application, and different embodiments can be replaced or combined, so the present application can also be considered to include all possible combinations of the same and / or different embodiments recorded. Therefore, if one embodiment includes features A, B, and C, and another embodiment includes features B and D, then the present application should also be considered to include embodiments containing one or more of all other possible combinations of A, B, C, and D, although the embodiment may not be clearly recorded in the following text.

[0020] The following description provides examples and does not limit the scope, applicability or examples set forth in the claims. Changes may be made to the functions and arrangements of the elements described without departing from the scope of the present application. Various processes or components may be appropriately omitted, substituted or added to each example. For example, the described method may be performed in an order different from the order described, and various steps may be added, omitted or combined. In addition, features described in some examples may be combined in other examples.

[0021] See also Figure 1 . Figure 1 : is a flow chart of an automatic test method for an electric energy meter provided in an embodiment of the present application. In the embodiment of the present application, the method comprises the following steps: S1: Build a test case library corresponding to the test requirements of at least one model of electric energy meter; S2: setting an analog circuit on the analog signal board that can simulate multiple operation behaviors of the electric energy meter; S3: matching corresponding test cases in the test case library according to the test requirements of the electric energy meter to be tested; S4: Control the analog signal board to output a corresponding analog operation signal according to the test case, and obtain the test result corresponding to the electric energy meter to be tested according to the analog operation signal.

[0022] In the embodiment of the present application, the analog signal board is designed, and an analog circuit is set on the analog signal board. The analog circuit may include circuit elements and circuit connection diagrams. The analog signal board simulates the signals generated by various operation behaviors on the electric energy meter through the analog circuit, such as button pressing, LED indicator flashing, opening and closing of the meter cover, etc. The interface and signal specifications of different types of electric energy meters need to be considered in the design process to ensure the accuracy and reliability of the analog signal. After starting the test, the corresponding test case is read in the test case library, and according to the instructions in the test case, the analog signal board is controlled to output the corresponding analog operation signal. The analog operation signal is used to simulate manual operation, and the test result corresponding to the electric energy meter to be tested is obtained according to the analog operation signal; by replacing manual operation with automation, manpower input can be reduced and testing costs can be reduced; the hardware circuit simulation operation behavior is more stable and accurate, avoiding the specific errors caused by manual operation, and improving the reliability of the test results; the introduction of automated testing can quickly execute multiple test cases at the same time, significantly improving test efficiency and shortening the test cycle; due to the implementation of automated testing and the replacement of manual input, for mature test scenarios and test cases, 24h uninterrupted stable operation can be achieved, and rapid iteration can be achieved in conjunction with the product agile development process.

[0023] In one possible implementation, the test case includes test steps, and step S4 specifically includes: S41: reading a corresponding test case from a test case library, and obtaining a test instruction about a test step from the test case; S42: Control the analog signal board to output a corresponding analog operation signal according to the test instruction; S43: sending the analog operation signal to the electric energy meter to be tested; S44: receiving the operating status data of the electric energy meter to be tested and analyzing and processing the operating status data to obtain a test result.

[0024] In an embodiment of the present application, an analog operation signal is input into the electric energy meter, and the operating status data of the electric energy meter to be tested is collected through software. The operating status data can report metering data, communication status, and control command execution results. The operating status data sent by the electric energy meter to be tested is received, and the operating status data is analyzed and processed to obtain the test results.

[0025] In one possible implementation, the test case further includes expected results and data comparison rules, and after step S4, further includes: S5: Retrieve the expected results and data comparison rules in the test case, and compare the expected results with the test results according to the data comparison rules to obtain a comparison value, and obtain the judgment information of the test result according to the comparison value. If the comparison value is within the preset range, the judgment information of the test result is judged to be passed; if the comparison value is not within the preset range, the judgment information of the test result is judged to be failed.

[0026] In one possible implementation, step S3 specifically includes: respectively obtaining the model to be tested and the test requirements of the electric energy meter to be tested, matching the model to be tested in the test case library, and if the model to be tested matches the target model in the test case library, matching the test requirements in the test case library; if the test requirements match the target requirements in the test case library, using the target case corresponding to the target requirement as the test case corresponding to the electric energy meter to be tested.

[0027] In the embodiment of the present application, the corresponding automated test cases are matched according to the test requirements of the electric energy meter, including test steps, expected results, data comparison rules, etc. The test case library can be classified and managed according to product models and functions, and cooperate with the function development of a unified automated test platform to call the test module of the analog signal board through an interface, which is convenient for testers to use and maintain.

[0028] In one embodiment, step S2 specifically includes: setting an analog circuit inside the analog signal board and / or connecting the analog circuit through an expansion interface of the analog signal board.

[0029] In the embodiments of the present application, the present application can set an analog circuit inside the analog signal board. The analog signal board in the present application has strong expansibility. The analog circuit can be connected at the expansion interface of the analog signal board. The design of the analog signal board can be adjusted according to different types of products. Although the current instantiation application is mainly in the field of electric energy meter testing, it can be quickly adapted to major categories of embedded products and can adapt to various interfaces and signal specifications. At the same time, the test case library designed in conjunction with the test requirements of the electric energy meter can support the test requirements of new products and new functions.

[0030] In the embodiment of the present application, after step S4, the following steps are further included: S5: Associating the test result with the judgment information corresponding to the test result and storing the test result and the judgment information separately.

[0031] In an embodiment of the present application, the test results and the judgment information corresponding to the test results are associated and set through a storage module and stored separately to ensure the completeness of data records and facilitate analysis and improvement. Through the data feedback function of the analog signal board, the detected related states and data can be fed back and recorded, including signal data and detection data, which are used for problem repair analysis and product improvement found during the test process.

[0032] In the embodiment of the present application, the analog signal board of the present application is portable and reliable. The present application uses the signal board in hardware implementation to convert the traditional manual operation into the electric energy meter to be tested for analog signal input, which can completely replace the traditional test method in the field of functional testing that only focuses on the completeness and correctness of firmware logic. And because the analog signal tooling board is compact and flexible in design, it can complete the rapid construction and transfer of the test environment, which has great advantages in product development and testing work.

[0033] In the embodiment of the present application, the automated testing method implemented by the present invention can simultaneously perform automated uninterrupted testing during the product development process, which can quickly and effectively test and cover these modules, provide real-time feedback on the quality of firmware code submission, and ensure control of quality and performance during the product development process.

[0034] In the embodiments of the present application, specific test cases are: 1. Measurement accuracy test: Use the analog signal board to simulate the input signal of the energy meter under different load conditions, collect the metering data of the energy meter such as energy storage, LED pulse output, etc. through the test software, and compare it with the data of the standard metering instrument to verify whether the metering accuracy of the energy meter meets the requirements. At the same time, the measurement accuracy under different interference conditions (such as magnetic field interference, key interference, etc., which are all achieved by inputting equivalent analog control signals on the analog board) is also achieved and tested through this test method.

[0035] 2. Event function test: Test the accuracy of electricity theft detection and event information recording of the energy meter by simulating the trigger condition signals of the corresponding events, such as the opening and closing of the meter cover / terminal cover / module cover, the insertion and removal of the module, and the constant magnetic field interference.

[0036] 3. Control command test: Send different control commands through the analog signal board and detect the meter response phenomena and signals in the corresponding scenarios, such as remote disconnection / connection of power supply, short-circuit / disconnection of functional pins or contacts, opening and closing of relays, etc., to test whether the energy meter can correctly execute the control commands.

[0037] In the examples of this application, the actual application results show that the present invention can significantly improve the test efficiency and shorten the product development cycle. This application realizes 24-hour uninterrupted continuous testing, builds the latest code once a day to realize automated testing, does not require manual intervention throughout the process, and provides feedback for product development at a low cost, high efficiency and stability.

[0038] The following will be combined with the attached Figure 2 , an automatic test device for an electric energy meter provided in an embodiment of the present application is introduced in detail. It should be noted that the attached Figure 2 The electric energy meter automatic test device shown is used to perform the present application Figure 1 For the convenience of explanation, only the part related to the embodiment of the present application is shown. For the specific technical details not disclosed, please refer to the present application. Figure 1 The embodiment shown.

[0039] See also Figure 2 , Figure 2 Schematic diagram of the structure of an automatic test device for an electric energy meter provided in an embodiment of the present application. Figure 2 As shown, the device includes a library construction module 201, a use case matching module 202, a simulation signal board 203, and a test module 204; The analog signal board is provided with an analog circuit capable of simulating multiple operation behaviors of the electric energy meter; The library construction module is used to construct a test case library corresponding to the test requirements of at least one model of electric energy meter; The test case matching module is used to match the corresponding test case in the test case library according to the test requirements of the electric energy meter to be tested; The test module is used to control the analog signal board to output the corresponding analog operation signal according to the test case, and obtain the test result corresponding to the electric energy meter to be tested according to the analog operation signal.

[0040] In an embodiment of the present application, the test module can support communication with the analog signal board and the electric energy meter, control the detection and output of related signals, implement the execution of related steps in the test case, and collect test results.

[0041] In the embodiments of the present application, the present application includes a unified physical abstraction layer. By establishing a unified physical abstraction layer definition, it is possible to achieve rapid support and adaptation for different products. From the analog signal board, to the library construction module, to the test module, to the reserved test interface of the use case matching module, all follow the consistent physical abstraction layer protocol interface (PhysicalAbstractionLayer, hereinafter referred to as PAL), which ensures the smooth access of products, test platforms, and tooling equipment in the whole process. The present application uses a uniformly constructed physical abstraction layer protocol (PAL) to realize the conversion of manual operations into hardware circuit analog signals for the electric energy meter test; the present application replaces manual operations by converting the implementation method of the test process operation, and replaces manual operations by automation to reduce the testing cost.

[0042] In one possible implementation, the test case further includes a test step, and the test module includes a control unit, a communication unit, a collection unit, and a data processing unit; The control unit is used to read the corresponding test case from the test case library, obtain the test instruction about the test step from the test case, and control the analog signal board to output the corresponding analog operation signal according to the test instruction; The communication unit is used to communicate between the control unit and the electric energy meter to be tested, and the communication unit is used to send the analog operation signal sent by the control unit to the electric energy meter to be tested, and to receive the operation status data sent by the electric energy meter to be tested and send the operation status data to the control unit; The data processing unit is used to receive the running status data sent by the control unit and analyze and process the running status data to obtain the test result.

[0043] In the embodiment of the present application, a storage module is also included. The control unit is responsible for reading and receiving test instructions in the test case library and controlling the analog signal board to output corresponding signals. The communication unit realizes communication connection with the electric energy meter and obtains the operating status data of the electric energy meter. The data processing unit analyzes and processes the collected electric energy meter data, compares it with the expected results, determines whether the test results are passed, and returns the relevant data content to the storage module.

[0044] In one possible implementation, the test case also includes expected results, data comparison rules, and The judgment module is used to retrieve the expected results and data comparison rules in the test case, and compare the expected results with the test results according to the data comparison rules to obtain a comparison value, and obtain the judgment information of the test result according to the comparison value. If the comparison value is within a preset range, the judgment information of the test result is judged to be passed; if the comparison value is not within the preset range, the judgment information of the test result is judged to be failed.

[0045] Those skilled in the art can clearly understand that the technical solutions of the embodiments of the present application can be implemented with the help of software and / or hardware. The "unit", "module" and "part" in this specification refer to software and / or hardware that can independently complete or cooperate with other components to complete specific functions, where the hardware can be, for example, a field programmable gate array (FPGA), an integrated circuit (IC), etc.

[0046] Each processing unit and / or module of the embodiments of the present application may be implemented by an analog circuit that implements the functions described in the embodiments of the present application, or may be implemented by software that executes the functions described in the embodiments of the present application.

[0047] See also Figure 3 , which shows a schematic diagram of the structure of an electronic device involved in an embodiment of the present application, the electronic device can be used to implement Figure 1 The method in the embodiment shown. Figure 3 As shown, the electronic device 300 may include: at least one central processor 301 , at least one network interface 304 , a user interface 303 , a memory 305 , and at least one communication bus 302 .

[0048] The communication bus 302 is used to realize the connection and communication between these components.

[0049] The user interface 303 may include a display screen (Display) and a camera (Camera). Optionally, the user interface 303 may also include a standard wired interface and a wireless interface.

[0050] The network interface 304 may optionally include a standard wired interface or a wireless interface (such as a WI-FI interface).

[0051] Among them, the central processing unit 301 may include one or more processing cores. The central processing unit 301 uses various interfaces and lines to connect various parts of the entire electronic device 300, and executes various functions and processes data of the terminal 300 by running or executing instructions, programs, code sets or instruction sets stored in the memory 305, and calling data stored in the memory 305. Optionally, the central processing unit 301 can be implemented in at least one hardware form of digital signal processing (Digital Signal Processing, DSP), field programmable gate array (Field-Programmable Gate Array, FPGA), and programmable logic array (Programmable Logic Array, PLA). The central processing unit 301 can integrate one or a combination of a central processing unit (Central Processing Unit, CPU), a graphics processing unit (Graphics Processing Unit, GPU) and a modem. Among them, the CPU mainly processes the operating system, user interface and application programs; the GPU is responsible for rendering and drawing the content to be displayed on the display screen; and the modem is used to process wireless communications. It can be understood that the above-mentioned modem may not be integrated into the central processing unit 301, but implemented separately through a chip.

[0052] Among them, the memory 305 may include a random access memory (Random Access Memory, RAM) and may also include a read-only memory (Read-Only Memory). Optionally, the memory 305 includes a non-transitory computer-readable storage medium. The memory 305 can be used to store instructions, programs, codes, code sets or instruction sets. The memory 305 may include a program storage area and a data storage area, wherein the program storage area may store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the above-mentioned various method embodiments, etc.; the data storage area may store data involved in the above-mentioned various method embodiments, etc. The memory 305 may optionally be at least one storage device located away from the aforementioned central processor 301. As Figure 3 As shown, the memory 305 as a computer storage medium may include an operating system, a network communication module, a user interface module, and program instructions.

[0053] exist Figure 3In the electronic device 300 shown, the user interface 303 is mainly used to provide an input interface for the user and obtain the data input by the user; and the central processor 301 can be used to call an electric energy meter automatic test application stored in the memory 305, and specifically perform the following operations: S1: Build a test case library corresponding to the test requirements of at least one model of electric energy meter; S2: setting an analog circuit on the analog signal board that can simulate multiple operation behaviors of the electric energy meter; S3: matching corresponding test cases in the test case library according to the test requirements of the electric energy meter to be tested; S4: Control the analog signal board to output a corresponding analog operation signal according to the test case, and obtain the test result corresponding to the electric energy meter to be tested according to the analog operation signal.

[0054] The present application also provides a computer-readable storage medium on which a computer program is stored, and when the program is executed by a processor, the steps of the above method are implemented. The computer-readable storage medium may include, but is not limited to, any type of disk, including a floppy disk, an optical disk, a DVD, a CD-ROM, a micro drive, and a magneto-optical disk, a ROM, a RAM, an EPROM, an EEPROM, a DRAM, a VRAM, a flash memory device, a magnetic card or an optical card, a nanosystem (including a molecular memory IC), or any type of medium or device suitable for storing instructions and / or data.

[0055] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0056] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0057] In the several embodiments provided in the present application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of the units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some service interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.

[0058] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0059] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0060] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned memory includes: U disk, read-only memory (ROM), random access memory (RAM), mobile hard disk, disk or optical disk and other media that can store program codes.

[0061] A person skilled in the art may understand that all or part of the steps in the various methods of the above embodiments may be completed by entering a program to instruct related hardware. The program may be stored in a computer-readable memory, and the memory may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0062] The above is only an exemplary embodiment of the present disclosure, and the scope of the present disclosure cannot be limited thereto. That is, any equivalent changes and modifications made according to the teachings of the present disclosure are still within the scope of the present disclosure. After considering the specification and practicing the disclosure here, those skilled in the art will easily think of the implementation scheme of the present disclosure. This application is intended to cover any modification, use or adaptation of the present disclosure, which follows the general principles of the present disclosure and includes common knowledge or customary technical means in the technical field not recorded in the present disclosure. The description and examples are regarded as exemplary only, and the scope and spirit of the present disclosure are defined by the claims.

Claims

1. An automatic testing method for an electric energy meter, characterized in that: The steps include: S1: Build a test case library corresponding to the test requirements of at least one model of electric energy meter; S2: setting an analog circuit on the analog signal board that can simulate multiple operation behaviors of the electric energy meter; S3: matching corresponding test cases in the test case library according to the test requirements of the electric energy meter to be tested; S4: Control the analog signal board to output a corresponding analog operation signal according to the test case, and obtain the test result corresponding to the electric energy meter to be tested according to the analog operation signal.

2. The automatic testing method for electric energy meter according to claim 1, characterized in that: The test case includes test steps, and step S4 specifically includes: S41: reading a corresponding test case from a test case library, and obtaining a test instruction about a test step from the test case; S42: Control the analog signal board to output a corresponding analog operation signal according to the test instruction; S43: sending the analog operation signal to the electric energy meter to be tested; S44: receiving the operating status data of the electric energy meter to be tested and analyzing and processing the operating status data to obtain a test result.

3. An automatic testing method for an electric energy meter as claimed in claim 1 or 2, characterized in that: The test case also includes expected results and data comparison rules, and after step S4, it also includes: S5: Retrieve the expected results and data comparison rules in the test case, and compare the expected results with the test results according to the data comparison rules to obtain a comparison value, and obtain the judgment information of the test result according to the comparison value. If the comparison value is within the preset range, the judgment information of the test result is judged to be passed; if the comparison value is not within the preset range, the judgment information of the test result is judged to be failed.

4. The automatic testing method for electric energy meter according to claim 1 or 2, characterized in that: Step S3 specifically includes: respectively obtaining the model to be tested and the test requirements of the electric energy meter to be tested, matching the model to be tested in the test case library, and if the model to be tested matches the target model in the test case library, matching the test requirements in the test case library; if the test requirements match the target requirements in the test case library, using the target case corresponding to the target requirement as the test case corresponding to the electric energy meter to be tested.

5. An automatic testing method for an electric energy meter as claimed in claim 1 or 2, characterized in that: Step S2 specifically includes: setting an analog circuit inside the analog signal board and / or connecting the analog circuit through an expansion interface of the analog signal board.

6. An automatic test device for electric energy meters, characterized in that: Includes library building module, use case matching module, simulation signal board, and test module; The analog signal board is provided with an analog circuit capable of simulating multiple operation behaviors of the electric energy meter; The library construction module is used to construct a test case library corresponding to the test requirements of at least one model of electric energy meter; The test case matching module is used to match the corresponding test case in the test case library according to the test requirements of the electric energy meter to be tested; The test module is used to control the analog signal board to output the corresponding analog operation signal according to the test case, and obtain the test result corresponding to the electric energy meter to be tested according to the analog operation signal.

7. An automatic test device for electric energy meter as claimed in claim 6, characterized in that: The test case also includes test steps, and the test module includes a control unit, a communication unit, a collection unit, and a data processing unit; The control unit is used to read the corresponding test case from the test case library, obtain the test instruction about the test step from the test case, and control the analog signal board to output the corresponding analog operation signal according to the test instruction; The communication unit is used to communicate between the control unit and the electric energy meter to be tested, and the communication unit is used to send the analog operation signal sent by the control unit to the electric energy meter to be tested, and to receive the operation status data sent by the electric energy meter to be tested and send the operation status data to the control unit; The data processing unit is used to receive the running status data sent by the control unit and analyze and process the running status data to obtain the test result.

8. An automatic test device for electric energy meter according to claim 6 or 7, characterized in that: The test case also includes expected results, data comparison rules, and The judgment module is used to retrieve the expected results and data comparison rules in the test case, and compare the expected results with the test results according to the data comparison rules to obtain a comparison value, and obtain the judgment information of the test result according to the comparison value. If the comparison value is within a preset range, the judgment information of the test result is judged to be passed; if the comparison value is not within the preset range, the judgment information of the test result is judged to be failed.

9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

Citation Information

Cited By

  • Method and system for testing geometric modeling engine and electronic equipment

    CN119847942A

  • Automatic testing method and system for electric energy meter

    CN121454441A