Testing method, device and equipment of electric water heater and medium

Through automated test case library acquisition and analysis methods, the inefficiency and inaccuracy problems caused by manual writing of use cases and platform construction in electric water heater testing are solved, and efficient and accurate electric water heater functional testing is achieved.

CN120274427APending Publication Date: 2025-07-08QINGDAO ECONOMIC AND TECHNOLOGICAL DEVELOPMENT ZONE HAIER WATER HEATER CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410030622.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-01-08
Publication Date
2025-07-08

AI Technical Summary

Technical Problem

The existing electric water heater testing methods rely on manual writing of test cases and building test platforms, resulting in inaccurate test results, high cost and low efficiency.

Method used

Automatically obtain target test cases through the preconfigured test case library, trigger the electric water heater to perform function operations, and analyze the collection point information to determine functional normality.

Benefits of technology

Improve the efficiency and accuracy of electric water heater testing and reduce the testing cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120274427A_ABST
    Figure CN120274427A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of intelligent household appliances, in particular to a testing method, device and equipment of an electric water heater and a medium. The technical problem that when the function of the electric water heater is tested, testing is conducted manually, and therefore the testing efficiency is low is solved. In the application, a test request is obtained, and the test request comprises an identifier of a to-be-tested function; according to the test request, a target test case corresponding to the to-be-tested function identifier is obtained from a pre-configured test case library, the electric water heater is triggered to execute operation processing corresponding to the to-be-tested function identifier based on the target test case, and information of a to-be-collected point in the execution process is obtained; and analyzing the information of the to-be-collected point and the information of the to-be-tested point in the target test case to determine whether the electric water heater can normally operate the function corresponding to the identifier of the to-be-tested function or not.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of intelligent household appliances, and particularly to a testing method, device, equipment and medium for an electric water heater. Background Art

[0002] In the prior art, during the use of an electric water heater, due to various requirements such as faults or updates, components inside the electric water heater, such as the main board, sensors, etc., need to be replaced. After the replacement process, in order to ensure the normal use of the electric water heater, different functional tests are also carried out on the heating stage of the electric water heater to ensure that the replaced components do not affect the normal operation of the electric water heater during the heating stage.

[0003] Currently, the different functional tests on the heating stage of the electric water heater mainly include: for different functional tests, corresponding test cases need to be manually written, and corresponding test platforms need to be built. Based on this, and then based on this test platform and test cases, the functions corresponding to the heating stage of the electric water heater are tested. However, since the writing of test cases needs to be done manually, and different test platforms need to be built separately for corresponding different functional tests, and manual analysis and processing of test results are required, this not only leads to inaccurate test results, but also results in high test costs, relatively complex tests, and thus relatively low test efficiency. Summary of the Invention

[0004] To solve the above problems, that is, when testing the functions of an electric water heater, manual testing leads to relatively low test efficiency, the present application provides a testing method, device, equipment and medium for an electric water heater.

[0005] In a first aspect, an embodiment of the present application provides a testing method for an electric water heater, the method comprising:

[0006] Obtaining a test request, the test request including an identifier of a function to be tested;

[0007] According to the test request, obtaining a target test case corresponding to the identifier of the function to be tested from a pre-configured test case library, and based on the target test case, triggering the electric water heater to perform an operation corresponding to the identifier of the function to be tested, and obtaining information of points to be collected during the execution process;

[0008] Analyzing the information of the points to be collected and the information of the points to be tested in the target test case to determine whether the electric water heater can normally operate the function corresponding to the identifier of the function to be tested.

[0009] In the preferred technical solution of the above-mentioned test method for an electric water heater, when the identifier of the function to be tested is the identifier of the temperature acquisition function of the temperature sensor to be tested, based on the target test case, trigger the electric water heater to execute the operation process corresponding to the identifier of the function to be tested, and obtain the information of the points to be collected during the execution process, including:

[0010] Perform conversion processing on the temperature information to be tested in the target test case, so as to input the converted temperature information to be tested into the electric water heater, and based on the heating logic in the target test case, trigger the electric water heater to execute single-tank and single-tube heating processing, and obtain the information of the temperature sensor at the points to be collected during the execution process.

[0011] In the preferred technical solution of the above-mentioned test method for an electric water heater, when the identifier of the function to be tested is the identifier of the water flow control function to be tested, based on the target test case, trigger the electric water heater to execute the operation process corresponding to the identifier of the function to be tested, and obtain the information of the points to be collected during the execution process, including:

[0012] Perform conversion processing on the water flow information to be tested in the target test case, so as to input the converted water flow information to be tested into the electric water heater, and based on the water flow control logic in the target test case, trigger the electric water heater to execute water flow control processing, and obtain the information of the water flow sensor at the points to be collected during the execution process.

[0013] In the preferred technical solution of the above-mentioned test method for an electric water heater, when the identifier of the function to be tested is the identifier of the temperature control function to be tested, based on the target test case, trigger the electric water heater to execute the operation process corresponding to the identifier of the function to be tested, and obtain the information of the points to be collected during the execution process, including:

[0014] Perform conversion processing on the control information of the heating tube to be tested in the target test case, so as to input the converted control information of the heating tube into the electric water heater, and based on the temperature control logic in the test case, trigger the electric water heater to execute temperature control processing, and obtain the status information of the heating tube at the points to be collected during the execution process.

[0015] In the preferred technical solution of the above-mentioned test method for an electric water heater, when the identifier of the function to be tested is the identifier of the medium-temperature heat preservation and extra-large water volume function to be tested, based on the target test case, trigger the electric water heater to execute the operation process corresponding to the identifier of the function to be tested, and obtain the information of the points to be collected during the execution process, including:

[0016] Convert the temperature information to be tested and the control information of the heating pipe in the target test case respectively, so as to input the converted temperature information to be tested and the control information of the heating pipe into the electric water heater, and based on the heating logic and temperature control logic in the target test case, trigger the electric water heater to perform single-tank and single-pipe heating processing and temperature control processing, and obtain the information of the temperature sensor at the point to be collected and the status information of the heating pipe at the point to be collected during the execution process.

[0017] In the preferred technical solution of the above-mentioned test method for an electric water heater, when the identifier of the function to be tested is the identifier of the intelligent washing function to be tested, based on the target test case, trigger the electric water heater to perform the operation processing corresponding to the identifier of the function to be tested, and obtain the information at the point to be collected during the execution process, including:

[0018] Convert the temperature information to be tested, water flow information and control information of the heating pipe in the target test case respectively, so as to input the converted temperature information to be tested, water flow information and control information of the heating pipe into the electric water heater, and based on the heating logic, water flow control logic and temperature control logic in the target test case, trigger the electric water heater to perform single-tank and single-pipe heating processing, water flow control processing and temperature control processing, and obtain the information of the temperature sensor at the point to be collected, the information of the water flow sensor at the point to be collected and the status information of the heating pipe at the point to be collected during the execution process.

[0019] In the preferred technical solution of the above-mentioned test method for an electric water heater, analyze the information at the point to be collected and the information at the point to be tested in the target test case to determine whether the electric water heater can normally operate the function corresponding to the identifier of the function to be tested, including:

[0020] Compare the information of the temperature sensor at the point to be collected, the information of the water flow sensor at the point to be collected and / or the status information of the heating pipe at the point to be collected with the information of the temperature sensor at the point to be tested, the information of the water flow sensor at the point to be tested and / or the status information of the heating pipe at the point to be tested in the target test case respectively. If the comparison is inconsistent, it is determined that the electric water heater cannot normally operate the function corresponding to the identifier of the function to be tested.

[0021] In a second aspect, an embodiment of the present application provides a test device for an electric water heater, including:

[0022] An acquisition module, configured to acquire a test request, where the test request includes an identifier of a function to be tested;

[0023] A processing module, configured to obtain, according to the test request, a target test case corresponding to the identifier of the function to be tested from a pre-configured test case library, and based on the target test case, trigger the electric water heater to perform an operation corresponding to the identifier of the function to be tested, and obtain information of the points to be collected during the execution process;

[0024] The processing module is further configured to analyze the information of the points to be collected and the information of the points to be tested in the target test case, so as to determine whether the electric water heater can normally run the function corresponding to the identifier of the function to be tested.

[0025] In a third aspect, an embodiment of the present application provides a test device for an electric water heater, including: at least one processor and a memory;

[0026] The memory stores computer execution instructions;

[0027] The at least one processor executes the computer execution instructions stored in the memory, so that the at least one processor executes a test method for an electric water heater according to any one of the first aspects.

[0028] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the test method for an electric water heater according to any one of the first aspects is implemented.

[0029] Those skilled in the art can understand that the present application provides a test method, device, device and medium for an electric water heater. The method specifically includes: obtaining a test request, where the test request includes an identifier of a function to be tested; according to the test request, obtaining a target test case corresponding to the identifier of the function to be tested from a pre-configured test case library, and based on the target test case, triggering the electric water heater to perform an operation corresponding to the identifier of the function to be tested, and obtaining information of the points to be collected during the execution process; analyzing the information of the points to be collected and the information of the points to be tested in the target test case, so as to determine whether the electric water heater can normally run the function corresponding to the identifier of the function to be tested, so as to implement efficient testing of the electric water heater. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] The following describes the preferred embodiments of a test method, device, device and medium for an electric water heater of the present application with reference to the accompanying drawings. The drawings are:

[0031] Figure 1 It is a schematic structural diagram of Embodiment 1 of a test system for an electric water heater provided by an embodiment of the present application;

[0032] Figure 2Schematic flowchart of Embodiment 1 of a test method for an electric water heater provided by an embodiment of the present application;

[0033] Figure 3 Schematic flowchart of Embodiment 2 of a test method for an electric water heater provided by an embodiment of the present application;

[0034] Figure 4 Schematic flowchart of Embodiment 3 of a test method for an electric water heater provided by an embodiment of the present application;

[0035] Figure 5 Schematic flowchart of Embodiment 4 of a test method for an electric water heater provided by an embodiment of the present application;

[0036] Figure 6 Schematic flowchart of Embodiment 5 of a test method for an electric water heater provided by an embodiment of the present application;

[0037] Figure 7 Schematic flowchart of Embodiment 6 of a test method for an electric water heater provided by an embodiment of the present application;

[0038] Figure 8 Schematic structural diagram of Embodiment 1 of a test device for an electric water heater provided by an embodiment of the present application;

[0039] Figure 9 Schematic structural diagram of Embodiment 1 of a test equipment for an electric water heater provided by an embodiment of the present application. Detailed embodiments

[0040] First of all, those skilled in the art should understand that these embodiments are only used to explain the technical principle of the present application and are not intended to limit the protection scope of the present application. Those skilled in the art can make adjustments according to needs to adapt to specific application scenarios.

[0041] Secondly, it should be noted that in the description of the embodiments of the present application, the terms indicating the direction or positional relationship such as "inside" and "outside" are based on the direction or positional relationship shown in the drawings. This is only for the convenience of description and does not indicate or imply that the device or component must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation to the present application.

[0042] In addition, it should be noted that in the description of the embodiments of the present application, unless otherwise clearly specified and limited, the terms "connected" and "coupled" should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium, and it can be the communication inside two components. For those skilled in the art, the specific meanings of the above terms in the embodiments of the present application can be understood according to specific situations.

[0043] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are some, but not all, of the embodiments of the present application. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the scope of protection of the present application.

[0044] In the prior art, when testing an electric water heater, test cases are written according to the tested functions, and a test device corresponding to the tested functions is built. The tester tests the electric water heater on the test device according to the test cases, analyzes according to the output data of the test device, and obtains the test result. This method not only leads to inaccurate test results, but also results in high test costs, relatively complex tests, and thus relatively low test efficiency.

[0045] Based on the above problems, the technical concept of the present application is: how to provide a new test method for an electric water heater to improve the test efficiency of the electric water heater.

[0046] Figure 1 The following is a schematic structural diagram of Embodiment 1 of a test system for an electric water heater provided by an embodiment of the present application, as Figure 1 shown. The test system mainly includes: a test device 11 for an electric water heater and an electric water heater 12. Among them, the test device 11 includes: an industrial computer 111, a TestStand software 112, a LabVIEW software 113, a data acquisition and output control module 114, and a general electronic load box 115. The electric water heater 12 includes: a computer board 116.

[0047] Specifically, the TestStand software 112 and the LabVIEW software 113 can be installed in the industrial computer 111. Among them, the TestStand software 112 is used to send the temperature information, water flow information, and control information of the heating pipe in the test case to the LabVIEW software 113. The LabVIEW software 113 converts the temperature information, water flow information, and control information of the heating pipe into electrical signals, and then sends the electrical signals to the data acquisition and output control module 114. The data acquisition and output control module 114 converts the electrical signals into analog signals and then sends them to the computer board 116. The general electronic load box 115 supplies power to the data acquisition and output control module 114. The computer board 116 analyzes and processes the analog signals to obtain the analysis results and sends the analysis results to the TestStand software 112. The TestStand software 112 analyzes based on the analysis results and the expected results of the test case to obtain the test results.

[0048] Next, the technical solutions of the present application will be described in detail through specific embodiments. It should be noted that the following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in some embodiments.

[0049] Figure 2 It is a schematic flowchart of the first embodiment of a test method for an electric water heater provided by an embodiment of the present application. As Figure 2 shown, the execution subject of this method can be the above-mentioned test equipment for the electric water heater, and this method can include the following steps:

[0050] Step S201: Obtain a test request.

[0051] In this embodiment, the test request includes the identifier of the function to be tested. For example, the identifier of the function to be tested is the temperature acquisition function of the temperature sensor to be tested.

[0052] Step S202: According to the test request, obtain the target test case corresponding to the identifier of the function to be tested from the pre-configured test case library, and based on the target test case, trigger the electric water heater to perform the operation corresponding to the identifier of the function to be tested, and obtain the information of the points to be collected during the execution process.

[0053] In this embodiment, the tester saves the target test case to the test case library according to the function to be tested. For example, the functions to be tested may include, but are not limited to: medium temperature heat preservation function, extra-large water volume function, and intelligent washing function.

[0054] Step S203: Analyze the information of the points to be collected and the information of the points to be tested in the target test case to determine whether the electric water heater can normally operate the function corresponding to the identifier of the function to be tested.

[0055] In this embodiment, for example, the information of the point to be collected is compared with the information of the point to be tested in the target test case to determine whether the values are the same, and further determine whether the electric water heater is operating normally for the function corresponding to the identifier of the function to be tested.

[0056] In this embodiment, a test request is obtained; according to the test request, from the pre-configured test case library, the target test case corresponding to the identifier of the function to be tested is obtained, and based on the target test case, the electric water heater is triggered to execute the operation process corresponding to the identifier of the function to be tested, and the information of the point to be collected during the execution process is obtained; the information of the point to be collected is analyzed with the information of the point to be tested in the target test case to determine whether the electric water heater can operate normally for the function corresponding to the identifier of the function to be tested. Compared with the prior art in which test cases are written manually and different test platforms are built to test different functions, and manual analysis and processing of test results are required, in this application, since the target test case is obtained from the pre-configured test case library, based on the target test case, the electric water heater is made to execute the operation process corresponding to the function to be tested to obtain the information of the point to be collected, and then the information of the point to be collected is analyzed with the information of the point to be collected in the target test case to determine whether the electric water heater passes the test, thus effectively improving the test efficiency of the electric water heater.

[0057] Figure 3 FIG. is a schematic flowchart of the second embodiment of the test method for an electric water heater provided by an embodiment of this application. On the basis of the above embodiment, as Figure 3 shown, specifically, when the identifier of the function to be tested is the identifier of the function for obtaining the temperature of the temperature sensor to be tested, a specific implementation manner of the above step S202 is:

[0058] Step S301: According to the test request, from the pre-configured test case library, obtain the target test case corresponding to the identifier of the function for obtaining the temperature of the temperature sensor to be tested.

[0059] Step S302: Perform conversion processing on the temperature information to be tested in the target test case, so as to input the converted temperature information to be tested into the electric water heater, and based on the heating logic in the target test case, trigger the electric water heater to perform single-tank and single-tube heating processing, and obtain the information of the temperature sensor of the point to be collected during the execution process.

[0060] In this embodiment, for example, if the target test case is: the initial temperature is 25 degrees Celsius, stop heating after heating to 40 degrees Celsius, then the temperature information to be tested is 25 degrees Celsius. Convert 25 degrees Celsius into an electrical signal, then convert the electrical signal into an analog signal, input the analog signal into the electric water heater, trigger the electric water heater to perform single-tank and single-tube heating processing, and obtain the information of the temperature sensor at the point to be collected during the execution process.

[0061] In this embodiment, the electric water heater also has multi-tank and multi-tube heating processing, and its heating logic is the same as that of single-tank and single-tube heating logic.

[0062] Correspondingly, a specific implementation manner of step S203 is:

[0063] Step S303: Compare the information of the temperature sensor at the point to be collected with the information of the temperature sensor at the point to be tested in the target test case. If the comparison is inconsistent, then determine that the electric water heater cannot normally operate the function corresponding to the identifier of the function to be tested. Table 1 is a schematic table of the temperature acquisition function of the test temperature sensor based on single-tank and single-tube, as shown in Table 1:

[0064] Table 1 Test Table of Temperature Acquisition Function of Temperature Sensor Based on Single-Tank and Single-Tube

[0065] For example, for the target test case corresponding to serial number 1, after converting 25 degrees Celsius as the temperature information to be tested and inputting it into the electric water heater, the electric water heater compares 25 degrees Celsius with the target temperature of 35 degrees Celsius, determines that the temperature information to be tested is less than the target temperature, the electric water heater heats according to the heating logic, and obtains the information of the temperature sensor at the point to be collected during the execution process. When the information of the temperature sensor at the point to be collected is 35 degrees Celsius, stop heating. According to the test case, intermediate temperature 1 and intermediate temperature 2 are preset.

[0066] In this embodiment, according to the test request, the identifier of the function to be tested is obtained from the pre-configured test case library, and the target test case corresponding to the identifier of the temperature acquisition function of the temperature sensor to be tested is obtained; the temperature information to be tested in the target test case is converted, so that the converted temperature information to be tested is input into the electric water heater, and based on the heating logic in the target test case, the electric water heater is triggered to perform single-tank and single-tube heating processing, and the information of the temperature sensor at the point to be collected during the execution is obtained; the information of the temperature sensor at the point to be collected is compared with the information of the temperature sensor at the point to be tested in the target test case. If the comparison is inconsistent, it is determined that the electric water heater cannot operate normally the function corresponding to the identifier of the function to be tested, thus realizing the automatic test of the temperature acquisition function of the temperature sensor of the electric water heater.

[0067] Figure 4 It is a schematic flowchart of the third embodiment of the test method for an electric water heater provided by the embodiments of the present application. On the basis of the above embodiments, as Figure 4 shown, specifically, when the identifier of the function to be tested is the identifier of the water flow control function to be tested, a specific implementation manner of the above step S202 is as follows:

[0068] Step S401: According to the test request, the target test case corresponding to the identifier of the water flow control function to be tested is obtained from the pre-configured test case library.

[0069] Step S402: The water flow information to be tested in the target test case is converted, so that the converted water flow information to be tested is input into the electric water heater, and based on the water flow control logic in the target test case, the electric water heater is triggered to perform water flow control processing, and the information of the water flow sensor at the point to be collected during the execution is obtained.

[0070] In this embodiment, for example, the target test case is: the initial water volume in the electric water heater is 0 liters, and when the water volume in the electric water heater reaches 50 liters, the water inlet stops. Then, the initial water volume of 0 liters is converted into an electrical signal, and then the electrical signal is converted into an analog signal, and then the analog signal is input into the electric water heater, and the electric water heater is triggered to perform water injection processing, and the information of the water flow sensor at the point to be collected during the water injection process is obtained.

[0071] Correspondingly, a specific implementation manner of step S203 is as follows:

[0072] Step S403: The information of the water flow sensor at the point to be collected is compared with the information of the water flow sensor at the point to be tested in the target test case. If the comparison is inconsistent, it is determined that the electric water heater cannot operate normally the function corresponding to the identifier of the function to be tested.

[0073] In this embodiment, according to the test request, the identifier of the function to be tested is obtained from the pre-configured test case library, which is the identifier of the target test case corresponding to the water flow control function to be tested. The water flow information to be tested in the target test case is processed for conversion, so that the converted water flow information to be tested is input into the electric water heater, and based on the water flow control logic in the target test case, the electric water heater is triggered to execute the water flow control process, and the information of the water flow sensor at the point to be collected during the execution process is obtained. The information of the water flow sensor at the point to be collected is compared with the information of the water flow sensor at the point to be tested in the target test case. If the comparison is inconsistent, it is determined that the electric water heater cannot normally operate the function corresponding to the identifier of the function to be tested, so as to realize the efficient test of the water flow control function of the electric water heater.

[0074] Figure 5 FIG. 4 is a schematic flowchart of the fourth embodiment of the test method for an electric water heater provided by the embodiment of the present application. On the basis of the above embodiment, as Figure 5 shown, specifically, when the identifier of the function to be tested is the identifier of the temperature control function to be tested, a specific implementation manner of the above step S202 is as follows:

[0075] Step S501: According to the test request, the target test case corresponding to the identifier of the temperature control function to be tested is obtained from the pre-configured test case library.

[0076] Step S502: The control information of the heating tube to be tested in the target test case is processed for conversion, so that the converted control information of the heating tube is input into the electric water heater, and based on the temperature control logic in the test case, the electric water heater is triggered to execute the temperature control process, and the status information of the heating tube at the point to be collected during the execution process is obtained.

[0077] In this embodiment, for example, the target test case is that when the difference between the current water temperature and the set water temperature is 5 degrees Celsius, heat to the set water temperature, convert the control information of starting the heating tube into an electrical signal, convert the electrical signal into an analog signal, input the analog signal into the electric water heater, and the electric water heater starts the heating tube according to the analog signal, and obtains the status information of the heating tube at the point to be collected during the heating process.

[0078] Correspondingly, a specific implementation manner of step S203 is as follows:

[0079] Step S503: The status information of the heating tube at the point to be collected is compared with the status information of the heating tube at the point to be tested in the target test case. If the comparison is inconsistent, it is determined that the electric water heater cannot normally operate the function corresponding to the identifier of the function to be tested.

[0080] In this embodiment, according to the test request, the identifier of the function to be tested is obtained from the pre-configured test case library, and the target test case corresponding to the identifier of the temperature control function to be tested is retrieved; the control information of the heating pipe to be tested in the target test case is subjected to conversion processing, so that the converted control information of the heating pipe is input into the electric water heater, and based on the temperature control logic in the test case, the electric water heater is triggered to execute temperature control processing, and the status information of the heating pipe at the points to be collected during the execution process is obtained; the status information of the heating pipe at the points to be collected is compared with the status information of the heating pipe at the points to be tested in the target test case. If the comparison is inconsistent, it is determined that the electric water heater cannot normally operate the function corresponding to the identifier of the function to be tested, so as to implement the test of the temperature control function of the electric water heater.

[0081] Figure 6 FIG. 5 is a schematic flowchart of Embodiment 5 of a test method for an electric water heater provided in an embodiment of the present application. On the basis of the above embodiment, as Figure 6 shown, specifically, when the identifier of the function to be tested is the identifier of the medium-temperature heat preservation and extra-large water volume functions, a specific implementation manner of the above step S202 is as follows:

[0082] Step S601: According to the test request, the target test case corresponding to the identifier of the medium-temperature heat preservation and extra-large water volume functions to be tested is obtained from the pre-configured test case library.

[0083] In this embodiment, for medium-temperature heat preservation, the electric water heater keeps the water temperature at 40 degrees Celsius, and for extra-large water volume, the electric water heater keeps the water temperature at 80 degrees Celsius.

[0084] Step S602: The temperature information to be tested and the control information of the heating pipe in the target test case are respectively subjected to conversion processing, so that the converted temperature information to be tested and the control information of the heating pipe are input into the electric water heater, and based on the heating logic and temperature control logic in the target test case, the electric water heater is triggered to execute single-tank single-pipe heating processing and temperature control processing, and the information of the temperature sensor at the points to be collected and the status information of the heating pipe at the points to be collected during the execution process are obtained.

[0085] In this embodiment, for example, the target test case is that the current water temperature is 25 degrees Celsius, and the heating stops after the water temperature is heated to 40 degrees Celsius. Then, 25 degrees Celsius and the control information for starting the heating pipe are respectively converted into electrical signals, and then the electrical signals are respectively converted into analog signals, and based on the heating logic and temperature control logic in the target test case, the electric water heater is triggered to execute single-tank single-pipe heating processing and temperature control processing, and the information of the temperature sensor at the points to be collected and the status information of the heating pipe at the points to be collected during the execution process are obtained.

[0086] Correspondingly, a specific implementation manner of step S203 is as follows:

[0087] Step S603: Compare the information of the temperature sensor at the point to be collected and the status information of the heating pipe at the point to be collected with the information of the temperature sensor at the point to be tested and the status information of the heating pipe at the point to be tested in the target test case respectively. If the comparison is inconsistent, it is determined that the electric water heater cannot normally operate the function corresponding to the identifier of the function to be tested.

[0088] In this embodiment, according to the test request, obtain the target test case corresponding to the identifier of the function to be tested, which is the identifier of the medium temperature heat preservation and extra-large water volume functions, from the pre-configured test case library; perform conversion processing on the temperature information to be tested and the control information of the heating pipe in the target test case respectively, so as to input the converted temperature information to be tested and the control information of the heating pipe into the electric water heater, and trigger the electric water heater to perform single-tank single-pipe heating processing and temperature control processing based on the heating logic and temperature control logic in the target test case, and obtain the information of the temperature sensor at the point to be collected and the status information of the heating pipe at the point to be collected during the execution process; compare the information of the temperature sensor at the point to be collected and the status information of the heating pipe at the point to be collected with the information of the temperature sensor at the point to be tested and the status information of the heating pipe at the point to be tested in the target test case respectively. If the comparison is inconsistent, it is determined that the electric water heater cannot normally operate the function corresponding to the identifier of the function to be tested, realizing the automatic test of the medium temperature heat preservation and extra-large water volume functions.

[0089] Figure 7 FIG. 6 is a schematic flowchart of the sixth embodiment of a test method for an electric water heater provided by an embodiment of the present application. On the basis of the above embodiment, as Figure 7 shown, specifically, when the identifier of the function to be tested is the identifier of the intelligent washing function to be tested, a specific implementation manner of the above step S202 is as follows:

[0090] Step S701: According to the test request, obtain the target test case corresponding to the identifier of the intelligent washing function to be tested from the pre-configured test case library.

[0091] In this embodiment, the intelligent washing function is to complete automatic water injection after reaching the water usage time according to the user's common water usage time and water temperature, and heat the water temperature to the water usage temperature after the water injection is completed.

[0092] Step S702: Perform conversion processing on the temperature information to be tested, water flow information, and control information of the heating pipe in the target test case respectively, so as to input the converted temperature information to be tested, water flow information, and control information of the heating pipe into the electric water heater, and trigger the electric water heater to perform single-tank and single-pipe heating processing, water flow control processing, and temperature control processing based on the heating logic, water flow control logic, and temperature control logic in the target test case, and obtain the information of the temperature sensor at the point to be collected, the information of the water flow sensor at the point to be collected, and the status information of the heating pipe at the point to be collected during the execution process.

[0093] In this embodiment, for example, the user's common water usage time is 20:00, the water usage temperature is 45 degrees Celsius, the initial water temperature is 15 degrees Celsius, the initial water volume is 0 liters, and the control information of the heating pipe is to stop heating. Then, before 20:00, convert 15 degrees Celsius, the initial water volume of 0 liters, and stop heating into electrical signals respectively, then convert the electrical signals into analog signals respectively, and then input the analog signals into the electric water heater, and trigger the electric water heater to perform single-tank and single-pipe heating processing, water flow control processing, and temperature control processing based on the heating logic, water flow control logic, and temperature control logic in the target test case, and obtain the information of the temperature sensor at the point to be collected, the information of the water flow sensor at the point to be collected, and the status information of the heating pipe at the point to be collected during the execution process.

[0094] Correspondingly, a specific implementation manner of step S203 is:

[0095] Step S703: Compare the information of the temperature sensor at the point to be collected, the information of the water flow sensor at the point to be collected, and the status information of the heating pipe at the point to be collected with the information of the temperature sensor at the point to be tested, the information of the water flow sensor at the point to be tested, and the status information of the heating pipe at the point to be tested in the target test case respectively. If the comparison is inconsistent, determine that the electric water heater cannot normally operate the function corresponding to the identifier of the function to be tested.

[0096] In this embodiment, according to the test request, the identifier of the function to be tested is obtained from the pre-configured test case library, and the target test case corresponding to the identifier of the intelligent washing function to be tested is obtained; the temperature information to be tested, the water flow information to be tested, and the control information of the heating pipe in the target test case are respectively subjected to conversion processing, so as to input the converted temperature information to be tested, water flow information to be tested, and control information of the heating pipe into the electric water heater, and based on the heating logic, water flow control logic, and temperature control logic in the target test case, trigger the electric water heater to perform single-tank and single-pipe heating processing, water flow control processing, and temperature control processing, and obtain the information of the temperature sensor at the point to be collected, the information of the water flow sensor at the point to be collected, and the status information of the heating pipe at the point to be collected during the execution process; compare the information of the temperature sensor at the point to be collected, the information of the water flow sensor at the point to be collected, and the status information of the heating pipe at the point to be collected with the information of the temperature sensor at the point to be tested, the information of the water flow sensor at the point to be tested, and the status information of the heating pipe at the point to be tested in the target test case respectively. If the comparison is inconsistent, it is determined that the electric water heater cannot normally operate the function corresponding to the identifier of the function to be tested, and the test of the intelligent washing function of the electric water heater is realized.

[0097] Figure 8 FIG. 4 is a schematic structural diagram of Embodiment 1 of a test device for an electric water heater provided by an embodiment of the present application, as Figure 8 shown, the test device for the electric water heater includes: an acquisition module 81 and a processing module 82.

[0098] Specifically, the acquisition module 81 is configured to acquire a test request, and the test request includes an identifier of a function to be tested. The processing module 82 is configured to obtain a target test case corresponding to the identifier of the function to be tested from a pre-configured test case library according to the test request, and trigger the electric water heater to perform an operation process corresponding to the identifier of the function to be tested based on the target test case, and acquire the information of the point to be collected during the execution process. The processing module 82 is further configured to analyze the information of the point to be collected and the information of the point to be tested in the target test case to determine whether the electric water heater can normally operate the function corresponding to the identifier of the function to be tested.

[0099] In this embodiment, the test device for the electric water heater can be used to execute the test method for an electric water heater provided in any of the above embodiments. The specific implementation manners and technical effects are similar, and will not be elaborated here.

[0100] Figure 9 FIG. 5 is a schematic structural diagram of Embodiment 1 of a test device for an electric water heater provided by an embodiment of the present application, as Figure 9 shown, a test device for an electric water heater provided in this embodiment includes: at least one processor 91 and a memory 92. Among them, the processor 91 and the memory 92 are connected through a bus 93.

[0101] For the specific implementation process of the processor 91, reference can be made to the above method embodiments. Their implementation principles and technical effects are similar, and thus will not be elaborated herein.

[0102] In the above Figure 9 illustrated embodiment, it should be understood that the processor may be a central processing unit (CPU for short), or other general-purpose processors, digital signal processors (DSP for short), application specific integrated circuits (ASIC for short), etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The steps of the method disclosed in combination with the invention can be directly implemented by the execution of the hardware processor, or by the combination of hardware and software modules in the processor.

[0103] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include non-volatile memory (Non-volatile Memory, NVM), such as at least one disk memory.

[0104] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of convenience of representation, the bus in the drawings of this application is not limited to only one bus or one type of bus.

[0105] This application also provides a computer-readable storage medium, on which a computer program is stored. When the processor executes the computer program, a testing method for an electric water heater as described above is implemented.

[0106] The above computer-readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk or an optical disc. The computer-readable storage medium can be any available medium accessible by a general-purpose or special-purpose computer.

[0107] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an Application Specific Integrated Circuit (ASIC). Of course, the processor and the readable storage medium can also exist as discrete components in a device.

[0108] The division of units is only a logical function division. In actual implementation, there can be other division methods. For example, 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 couplings or direct couplings or communication connections shown or discussed between each other can be indirect couplings or communication connections through some interfaces, devices or units, and can be in electrical, mechanical or other forms.

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

[0110] In addition, in each embodiment of the present invention, the functional units can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit.

[0111] If the function 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 storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or a part of this technical solution can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods in each embodiment of the present invention. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROMs), random access memories (RAMs), magnetic disks, or optical discs that can store program codes.

[0112] Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions. The foregoing program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments; and the foregoing storage medium includes: various media such as ROM, RAM, magnetic disk, or optical disk that can store program code.

[0113] Finally, it should be noted that those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. The present invention is intended to cover any variations, uses, or adaptations of the present invention, which follow the general principles of the present invention and include known common knowledge or conventional technical means in the technical field not disclosed in the present invention. It is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present invention is only limited by the appended claims.

Claims

1. A testing method for an electric water heater, characterized in that, Including: Obtain a test request, where the test request includes an identifier of a function to be tested; According to the test request, obtain a target test case corresponding to the identifier of the function to be tested from a pre-configured test case library, and based on the target test case, trigger the electric water heater to perform an operation corresponding to the identifier of the function to be tested, and obtain information of the points to be collected during the execution process; Analyze the information of the points to be collected and the information of the points to be tested in the target test case to determine whether the electric water heater can normally operate the function corresponding to the identifier of the function to be tested.

2. The method according to claim 1, wherein When the identifier of the function to be tested is the identifier of the function for obtaining the temperature of the temperature sensor to be tested, the triggering the electric water heater to perform an operation corresponding to the identifier of the function to be tested based on the target test case and obtaining information of the points to be collected during the execution process includes: Perform conversion processing on the temperature information to be tested in the target test case, input the converted temperature information to be tested into the electric water heater, and based on the heating logic in the target test case, trigger the electric water heater to perform single-tank and single-tube heating processing, and obtain information of the temperature sensor of the points to be collected during the execution process.

3. The method according to claim 1, wherein When the identifier of the function to be tested is the identifier of the function for water flow control to be tested, the triggering the electric water heater to perform an operation corresponding to the identifier of the function to be tested based on the target test case and obtaining information of the points to be collected during the execution process includes: Perform conversion processing on the water flow information to be tested in the target test case, input the converted water flow information to be tested into the electric water heater, and based on the water flow control logic in the target test case, trigger the electric water heater to perform water flow control processing, and obtain information of the water flow sensor of the points to be collected during the execution process.

4. The method according to claim 1, wherein When the identifier of the function to be tested is the identifier of the function for temperature control to be tested, the triggering the electric water heater to perform an operation corresponding to the identifier of the function to be tested based on the target test case and obtaining information of the points to be collected during the execution process includes: Perform conversion processing on the control information of the heating tube to be tested in the target test case, input the converted control information of the heating tube into the electric water heater, and based on the temperature control logic in the test case, trigger the electric water heater to perform temperature control processing, and obtain the state information of the heating tube of the points to be collected during the execution process.

5. The method according to claim 1, characterized in that, When the identifier of the function to be tested is the identifier of the function for medium-temperature heat preservation or extra-large water volume to be tested, the triggering the electric water heater to perform an operation corresponding to the identifier of the function to be tested based on the target test case and obtaining information of the points to be collected during the execution process includes: Convert the temperature information to be tested and the control information of the heating pipe in the target test case respectively, so as to input the converted temperature information to be tested and the control information of the heating pipe into the electric water heater, and trigger the electric water heater to perform single-tank and single-pipe heating processing and temperature control processing based on the heating logic and temperature control logic in the target test case, and obtain the information of the temperature sensor at the point to be collected and the status information of the heating pipe at the point to be collected during the execution process.

6. The method according to claim 1, wherein When the identifier of the function to be tested is the identifier of the intelligent washing function to be tested, trigger the electric water heater to perform the operation processing corresponding to the identifier of the function to be tested based on the target test case, and obtain the information at the point to be collected during the execution process, including: Convert the temperature information to be tested, the water flow information and the control information of the heating pipe in the target test case respectively, so as to input the converted temperature information to be tested, the water flow information and the control information of the heating pipe into the electric water heater, and trigger the electric water heater to perform single-tank and single-pipe heating processing, water flow control processing and temperature control processing based on the heating logic, water flow control logic and temperature control logic in the target test case, and obtain the information of the temperature sensor at the point to be collected, the information of the water flow sensor at the point to be collected and the status information of the heating pipe at the point to be collected during the execution process.

7. According to the method described in any one of claims 1 to 6, characterized in that, Analyze the information at the point to be collected and the information at the point to be tested in the target test case to determine whether the electric water heater can normally run the function corresponding to the identifier of the function to be tested, including: Compare the information of the temperature sensor at the point to be collected, the information of the water flow sensor at the point to be collected and / or the status information of the heating pipe at the point to be collected with the information of the temperature sensor at the point to be tested, the information of the water flow sensor at the point to be tested and / or the status information of the heating pipe at the point to be tested in the target test case respectively. If the comparison is inconsistent, it is determined that the electric water heater cannot normally run the function corresponding to the identifier of the function to be tested.

8. A testing device for an electric water heater, characterized in that, Including: An acquisition module, configured to acquire a test request, where the test request includes an identifier of a function to be tested; A processing module, configured to obtain a target test case corresponding to the identifier of the function to be tested from a pre-configured test case library according to the test request, and trigger the electric water heater to perform the operation processing corresponding to the identifier of the function to be tested based on the target test case, and obtain the information at the point to be collected during the execution process; The processing module is further configured to analyze the information at the point to be collected and the information at the point to be tested in the target test case to determine whether the electric water heater can normally run the function corresponding to the identifier of the function to be tested.

9. A testing device for an electric water heater, characterized in that, Including: At least one processor and a memory; The memory stores computer execution instructions; The at least one processor executes the computer execution instructions stored in the memory, so that the at least one processor executes a test method for an electric water heater according to any one of claims 1 to 7.

10. A readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the test method of the electric water heater according to any one of claims 1 to 7.