Air conditioner applet testing method and device, electronic equipment and storage medium

By generating and classifying data snapshots of air conditioner applets, orchestrating test cases and performing test operations, the existing test methods are solved with low efficiency, narrow coverage, difficult problem detection and complex state recovery problems, achieving more efficient and comprehensive testing and problem detection, simplifying the state recovery process.

CN119718930AActive Publication Date: 2025-03-28GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411810706.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-10
Publication Date
2025-03-28
Estimated Expiration
2044-12-10

AI Technical Summary

Technical Problem

The existing air conditioner mini program testing methods are inefficient, difficult to cover all states, difficult to detect problems, and complex state recovery.

Method used

By generating data snapshots based on user settings and air conditioner operation parameters, classifying data snapshots according to the test scenario, and orchestrating test cases based on classified data snapshots, performing test operations to improve test efficiency and scope, enhancing problem troubleshooting capabilities, and simplifying the state recovery process.

Benefits of technology

It improves the testing efficiency and scope of the air conditioner applet, enhances the problem-solving ability, simplifies the status recovery process, and ensures the accuracy and reliability of the test results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119718930A_ABST
    Figure CN119718930A_ABST
Patent Text Reader

Abstract

The invention discloses an air conditioner applet testing method and device, electronic equipment and a storage medium. The method comprises the steps that a data snapshot is generated based on control parameters set by a user and operation parameters of an air conditioner; classifying the data snapshots according to a test scene, and arranging test cases based on the classified data snapshots; and executing test operation on the air conditioner applet according to the test case. The control parameters sent by the user and the operation parameters generated in the operation process of the air conditioner are obtained on the basis of the data snapshots, so that the data snapshots meeting the requirements can be screened out according to different test scenes, test case arrangement is rapidly achieved accordingly, and the air conditioner applet can achieve function test and can also achieve function test. According to the method, the abnormal problem of the air conditioner can be quickly detected, and the air conditioner is quickly recovered from the abnormal state to the normal state, so that the effects of improving the testing efficiency and range of the air conditioner applet, enhancing the problem checking capability and simplifying the state recovery process are achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of air conditioners, and in particular to an air conditioner applet testing method, device, electronic device and storage medium. Background Art

[0002] In existing technical solutions, the test case arrangement method of the air conditioner applet mainly relies on manually writing and executing test scripts, or performing automated testing based on predefined test scenarios. These methods usually include: manual test script writing (testers manually write test cases according to the requirements document and execute these cases in the test environment), automated testing framework (using automated testing tools such as Selenium and Appium to simulate user operations by writing scripts and automatically execute test cases), scenario-based testing (designing test cases based on predefined user scenarios and business processes to ensure the functional correctness of the system in different scenarios.)

[0003] However, the above existing test case arrangement methods still have certain shortcomings, such as:

[0004] (1) Low testing efficiency. Manually writing and executing test cases is time-consuming, labor-intensive, and error-prone, especially in complex systems.

[0005] (2) It is difficult to cover all states. Although the automated testing framework improves testing efficiency, it is difficult to cover the performance of the system in all states, especially when the system state changes frequently.

[0006] (3) Difficulty in troubleshooting. When an abnormality occurs in the system, existing testing methods are difficult to quickly locate the problem due to the lack of comprehensive records of the system status.

[0007] (4) Complex state recovery. During the testing process, restoring the system to a specific state to verify functions or troubleshoot problems is complex and error-prone. Summary of the invention

[0008] The embodiments of the present invention provide an air conditioner applet testing method, device, electronic device and storage medium, aiming to improve the testing efficiency and scope of the air conditioner applet, enhance the problem troubleshooting capability, and simplify the state recovery process.

[0009] In a first aspect, an embodiment of the present invention provides an air conditioner applet testing method, comprising:

[0010] Generate a data snapshot based on the control parameters set by the user and the operating parameters of the air conditioner;

[0011] Classifying the data snapshots according to test scenarios, and arranging test cases based on the classified data snapshots;

[0012] A test operation is performed on the air conditioner applet according to the test case.

[0013] In a second aspect, an embodiment of the present invention provides an air conditioner applet testing device, comprising:

[0014] A generating unit, for generating a data snapshot based on a control parameter set by a user and an operating parameter of the air conditioner;

[0015] An orchestration unit, configured to classify the data snapshots according to test scenarios, and orchestrate test cases based on the classified data snapshots;

[0016] The testing unit is used to perform testing operations on the air conditioner applet according to the test case.

[0017] In a third aspect, an embodiment of the present invention 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 air conditioner applet testing method as described in the first aspect is implemented.

[0018] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the air conditioner applet testing method as described in the first aspect is implemented.

[0019] The embodiment of the present invention provides an air conditioner applet test method, device, electronic device and storage medium, the method comprising: generating a data snapshot based on the control parameters set by the user and the operating parameters of the air conditioner; classifying the data snapshots according to the test scenario, and arranging test cases based on the classified data snapshots; and performing test operations on the air conditioner applet according to the test cases. The embodiment of the present invention obtains the control parameters sent by the user and the operating parameters generated by the air conditioner during operation in the form of data snapshots, and classifies the data snapshots according to the test scenario, so that data snapshots that meet the requirements can be screened out according to different test scenarios, and the test case arrangement can be quickly implemented, so that the air conditioner applet can not only implement functional testing, but also quickly detect abnormal problems of the air conditioner, and quickly restore the air conditioner from an abnormal state to a normal state, thereby achieving the effect of improving the test efficiency and scope of the air conditioner applet, enhancing the problem troubleshooting capability, and simplifying the state recovery process. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0021] Figure 1 A flowchart of an air conditioner applet testing method provided by an embodiment of the present invention;

[0022] Figure 2 A schematic diagram of a first sub-process in an air conditioner applet testing method provided by an embodiment of the present invention;

[0023] Figure 3 A schematic diagram of a second sub-process in an air conditioner applet testing method provided by an embodiment of the present invention;

[0024] Figure 4 A schematic diagram of a third sub-process in an air conditioner applet testing method provided by an embodiment of the present invention;

[0025] Figure 5 A principle architecture diagram of an air conditioner applet testing method provided by an embodiment of the present invention;

[0026] Figure 6 Another flowchart of an air conditioner applet testing method provided by an embodiment of the present invention;

[0027] Figure 7 A schematic block diagram of an air conditioner applet testing device provided by an embodiment of the present invention;

[0028] Figure 8 A first sub-schematic block diagram of an air conditioner applet testing device provided by an embodiment of the present invention;

[0029] Fig. 9 A second sub-schematic block diagram of an air conditioner applet testing device provided by an embodiment of the present invention;

[0030] Fig.10 A third sub-schematic block diagram of an air conditioner applet testing device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0031] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0032] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0033] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0034] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0035] See below Figure 1 , an embodiment of the present invention provides an air conditioner applet testing method, which specifically includes: steps S101 to S103.

[0036] Step S101, generating a data snapshot based on the control parameters set by the user and the operating parameters of the air conditioner;

[0037] Step S102: classify the data snapshots according to the test scenarios, and arrange test cases based on the classified data snapshots;

[0038] Step S103: Perform a test operation on the air conditioner applet according to the test case.

[0039] This embodiment obtains the control parameters sent by the user and the operating parameters generated by the air conditioner during operation based on data snapshots, and classifies the data snapshots according to the test scenarios. In this way, data snapshots that meet the requirements can be screened out according to different test scenarios, and the test case arrangement can be quickly implemented, so that the air conditioner applet can not only realize functional testing, but also quickly detect abnormal problems of the air conditioner, and quickly restore the air conditioner from an abnormal state to a normal state, thereby improving the testing efficiency and scope of the air conditioner applet, enhancing the problem troubleshooting capability, and simplifying the state recovery process.

[0040] In actual application scenarios, the control parameters sent by the user may specifically include the set air-conditioning parameters, such as temperature, mode (cooling, heating, dehumidification, air supply), wind speed (high, medium, low, automatic), etc. The operating parameters of the air conditioner may specifically include the current state of the air conditioner, such as temperature data, humidity data, wind speed data, device switch status (on, off), mode status (cooling, heating, etc.) collected by the temperature sensor, etc.

[0041] In addition, in some preferred embodiments, the operating parameters of other smart devices linked to the air conditioner applet, such as the current status and setting parameters of smart curtains, smart lights and other devices), environmental status data, such as indoor and outdoor temperature, humidity, air quality (PM2.5, CO2 concentration, etc.), network status data (such as the connection status of the air conditioner and the cloud, signal strength, network delay, etc.). By obtaining various data snapshots such as status data, environmental status data and network status data of smart devices linked to the air conditioner applet, the test effect of the air conditioner applet can be further improved. Specifically, these data snapshots include but are not limited to the operating status, temperature, humidity and other environmental parameters of the smart device, as well as information such as the stability and speed of the network connection. By comprehensively analyzing these data, the performance of the air conditioner applet under different environments and network conditions can be more comprehensively evaluated, thereby ensuring its reliability and stability in actual use. Such a testing method can not only discover potential problems, but also further optimize the functions of the applet and improve the user experience.

[0042] In one embodiment, the data snapshot includes a timed snapshot, and the data snapshot is generated based on the control parameters set by the user and the operating parameters of the air conditioner, including:

[0043] At every preset time interval, the control parameters and operating parameters are collected through the time scheduler technology, and the time snapshot is generated accordingly.

[0044] In this embodiment, when generating data snapshots, a timed snapshot can be generated at a fixed time interval, and the frequency of the timed snapshot can be adjusted according to the test requirements. When generating a timed snapshot, it can be implemented based on a time scheduler. Currently, most programming languages ​​and frameworks have built-in time scheduler modules. Taking JavaScript as an example, the scheduling of real-time tasks can be implemented by calling the setInterval function.

[0045] In one embodiment, the data snapshot includes an event-triggered snapshot, and the data snapshot is generated based on the control parameters set by the user and the operating parameters of the air conditioner, including:

[0046] Monitoring the control parameters and operating parameters through event monitoring technology;

[0047] When changes in the control parameters and / or operating parameters are monitored, the corresponding control parameters and operating parameters are collected, and the event-triggered snapshot is generated based on them.

[0048] When generating a data snapshot, this embodiment can also pre-set an event trigger threshold to generate an event trigger snapshot. For example, when the user adjusts the setting parameters of the air conditioner, or the air conditioner status changes, such as when the operating mode changes, it is considered that the event trigger threshold is reached, thereby generating an event trigger snapshot. The event trigger snapshot can record the status of the air conditioner during key operations. The core technology of the event trigger snapshot is the event listener, which monitors user operations and device status changes. Taking JavaScript as an example, addEventListener can be used to monitor events to generate event trigger snapshots.

[0049] In one embodiment, the data snapshot includes an error or abnormality snapshot, and the generating of the data snapshot based on the control parameters set by the user and the operating parameters of the air conditioner includes:

[0050] Monitoring the operation of the air conditioner by using anomaly detection technology;

[0051] When an error or abnormality is detected during the operation of the air conditioner, corresponding control parameters and operating parameters are collected to generate a snapshot of the error or abnormality.

[0052] When generating data snapshots, this embodiment can also generate corresponding error or abnormality snapshots when an error or abnormality is detected in the air conditioner. For example, when a network disconnection, air conditioning equipment failure, sensor abnormality, etc. are detected, the state snapshot at the abnormal moment is automatically recorded and stored as an error or abnormality snapshot, so that the error or abnormality snapshot can be used to quickly locate and troubleshoot problems. The generation of error or abnormality snapshots depends on abnormality detection technology. For example, in the JavaScript programming language, promise objects and catch methods can be used to effectively handle abnormal situations that may occur in asynchronous operations. Taking the network disconnection exception as an example, the current network connection status can be detected by executing a simple ping command. If the test result shows that the network connection is not smooth, an exception can be thrown immediately and the snapshot generation operation can be triggered. This snapshot operation captures the status and environment information of the current program for subsequent analysis and debugging. The generated error or abnormality snapshot can be further processed, such as uploaded to a cloud server or stored on a local terminal device, so that developers or system administrators can conduct further analysis and problem solving.

[0053] In general, the data snapshots described in this embodiment may specifically include timed snapshots, event-triggered snapshots, and error or abnormal snapshots. Through timed snapshots, event-triggered snapshots, and error or abnormal snapshots, the air conditioner applet may have more advantages when testing. Specifically, it may include:

[0054] (1) Improve test efficiency: Automatically record the status of the air conditioner through timed snapshots, event-triggered snapshots, and error or exception snapshots, reducing the time and error rate of manually writing and executing test cases.

[0055] (2) Enhanced troubleshooting capabilities: Scheduled snapshots, event-triggered snapshots, and error or abnormal snapshots record the full or incremental data of the air conditioner at a specific point in time, including user-set air conditioning parameters, device status, linked device data, environmental status data, and network status data, etc., which helps to quickly locate and troubleshoot air conditioner anomalies.

[0056] (3) Simplify the state recovery process: During testing and troubleshooting, you can perform state recovery tests based on snapshots of different categories, restore the air conditioner to the state corresponding to a specific snapshot, and check whether the applet can correctly load the state, simplifying the operational complexity of state recovery.

[0057] Furthermore, after obtaining the timed snapshot, event-triggered snapshot, and error or abnormal snapshot, the three types of data snapshots can be divided, for example, directly dividing the timed snapshot, event-triggered snapshot, and error or abnormal snapshot into three categories. Alternatively, the timed snapshot, event-triggered snapshot, and error or abnormal snapshot can be divided according to different test scenarios, so that when a test is required for a certain scenario, the corresponding data snapshot can be quickly screened out and a test case can be generated.

[0058] In one embodiment, the test operation includes a state recovery test, such as Figure 2 As shown, the step S103 includes: steps S201 to S202.

[0059] Step S201, obtaining the operating parameters of the air conditioner in a normal state according to the data snapshot corresponding to the test case;

[0060] Step S202: setting the operating state of the air conditioner according to the operating parameters of the air conditioner in a normal state, and determining whether the operating state of the air conditioner is restored successfully.

[0061] In this embodiment, the test case can cover the test items of state recovery. Specifically, when the state recovery test of the air conditioner applet is required, the data snapshot of the air conditioner in normal operation can be directly selected, and then all relevant data of the air conditioner in normal operation, such as temperature, humidity, wind speed and other operating parameters, can be obtained from the selected data snapshot. Next, the operating parameters of the air conditioner can be reset according to the selected data snapshot so that it can operate according to the set operating parameters. After the air conditioner runs according to the set operating parameters, check whether the air conditioner can successfully recover to the expected operating state. Through the above operation, it can be verified whether the test air conditioner can smoothly recover to the normal operating state when encountering interruptions or failures, thereby realizing a comprehensive test of the state recovery function. Such a test method not only ensures the data accuracy of the air conditioner in normal working state, but also can effectively evaluate its recovery ability in the face of various abnormal situations, thereby providing users with a more stable and reliable air conditioner applet.

[0062] In one embodiment, the testing operation includes functional testing, such as Figure 3 As shown, the step S103 also includes: steps S301 to S303.

[0063] Step S301, obtaining function parameters according to the data snapshot corresponding to the test case;

[0064] Step S302, setting the operating state of the air conditioner according to the functional parameters;

[0065] Step S303: When the air conditioner is operating according to the functional parameters, it is determined whether the function corresponding to the air conditioner applet is normal.

[0066] In this embodiment, the test case can also cover the test items of the functional test. Specifically, when it is necessary to perform a functional test on the air conditioner applet, a data snapshot of the air conditioner in normal operation can be selected, and corresponding functional parameters such as different temperatures, different modes, different wind speeds, etc. can be obtained therefrom, and then the air conditioner is set according to the functional parameters so that the air conditioner can be operated according to the functional parameters, and it is judged whether the air conditioner can be operated normally according to the functional parameters, thereby judging whether the air conditioner applet passes the functional test. For example, the temperature adjustment function of the air conditioner applet is tested, firstly a data snapshot containing temperature adjustment related parameters is obtained, and the functional parameters are extracted therefrom, then the temperature of the air conditioner is set, and the air conditioner is operated, and then during the operation of the air conditioner, the effect of the temperature adjustment is monitored, for example, judging whether the air conditioner can smoothly adjust the temperature, that is, whether it can make corresponding adjustments according to the set temperature value. In addition, it is also possible to check whether the amplitude of the temperature adjustment is in place, that is, whether the actual temperature of the air conditioner can accurately reach the set target temperature value. In order to ensure the accuracy of the test results, the above process can be repeated many times, and different temperature values ​​can be selected for testing. In this way, it is possible to fully evaluate whether the temperature regulation function of the air conditioner applet is reliable and can work properly at a variety of different temperature settings.

[0067] In one embodiment, the test operation includes an abnormality detection test, such as Figure 4 As shown, the step S103 also includes: steps S401 to S402.

[0068] Step S401: Obtain abnormal values ​​between different data snapshots according to the data snapshots corresponding to the test case;

[0069] Step S402: Determine whether the air conditioner has an abnormality according to the abnormal value acquisition result.

[0070] In this embodiment, the test case may also cover the test items of the abnormality troubleshooting test. Specifically, when it is necessary to perform an abnormality troubleshooting test on the air conditioner applet, a data snapshot applicable to the test scenario may be obtained, and an abnormal value may be further extracted based on the obtained data snapshot, and then it may be determined whether the air conditioner has an abnormality, thereby completing the abnormality troubleshooting test.

[0071] For example, in the process of performing an abnormality troubleshooting test, firstly, a data snapshot of the air conditioner in the current state can be obtained. This step is to record the various parameters and operating status of the air conditioner under possible abnormal conditions. At the same time, a data snapshot of the air conditioner in normal operation is obtained so as to have a comparison benchmark. By performing a detailed comparative analysis of these two data snapshots, it can be determined whether the air conditioner has an abnormality. If the comparison result shows that there is no significant difference between the two data snapshots, it can be preliminarily determined that the air conditioner is operating normally and no abnormality has occurred. However, if there are abnormal values ​​in the comparison result, it can be further analyzed whether these abnormal values ​​exceed the preset abnormal threshold range. If these abnormal values ​​do exceed the preset abnormal threshold, it can be determined that the air conditioner is abnormal and needs further inspection and maintenance. On the contrary, if the abnormal value does not exceed the preset abnormal threshold, it can be determined that the air conditioner is still in normal operation and no abnormality that requires attention has occurred.

[0072] Of course, in some scenarios, you can also directly select a data snapshot of the air conditioner in its current state, and then compare the parameter information contained in the data with pre-set standard information to determine whether there is an abnormality.

[0073] In general, the test cases described in this embodiment may specifically include state recovery, function verification, and abnormality troubleshooting, etc. Through these test items, the purpose of air conditioner operation state recovery, air conditioner abnormality troubleshooting, etc. can be quickly achieved, thereby improving the test effect of the air conditioner applet.

[0074] In some optional embodiments, the state difference between different data snapshots may be calculated according to the following formula, so as to determine whether an error or abnormality occurs in the air conditioner according to the state difference:

[0075] ΔS M =S2-S1

[0076]

[0077] Among them, ΔS M Indicates the state difference of a single dimension. S1 and S2 represent the state data of two data snapshots (for example, the air conditioning parameters set by the user, such as temperature, mode, wind speed, etc.). N is the air conditioning parameter dimension set by the user. It is the mean value of the status difference between two data snapshots. If it is not equal to zero, it indicates that there is a difference between the two data snapshot states.

[0078] Or you can implement anomaly detection as follows:

[0079]

[0080] Among them, Z represents the standardized data, and X represents the original data. μ represents the mean, and σ represents the standard deviation. When the absolute value of Z is greater than a certain threshold, it indicates that there is a difference in the task data. Here, the original data refers to the air-conditioning parameters set by the user, the current status of the air-conditioning equipment, the linkage equipment data, the environmental status data, and the network status data. The mean is obtained by averaging the data of the same dimension in multiple snapshots. For example, if you need to calculate the mean of a temperature sensor, you need to collect the temperature sensor readings in multiple data snapshots, then add these readings and divide them by the number of data snapshots.

[0081] You can also calculate the operation response time according to the following formula to test the regulation function of the air conditioner applet:

[0082]

[0083] Where T represents the average response time, T end and T start Respectively indicate the time when the operation ends and starts. b Indicates the number of operations. For example, the user adjusts the air conditioner temperature from 24°C to 26°C at 10:00:00. The air conditioner completes the temperature adjustment and stabilizes at 26°C at 10:00:10. Then T_start = 10:00:00, T_end = 10:00:10, and the response time is 10 seconds.

[0084] This embodiment can verify the test results according to the above formula, for example, by calculating the state difference between different data snapshots through the state difference calculation formula, and finding the change point of the air conditioner state, such as by calculating the temperature difference and mode difference between two data snapshots to determine whether the air conditioner has temperature changes, switched operating modes, etc. Another example is to determine whether the air conditioner has abnormalities during operation through the calculation formula of abnormality detection, such as calculating the mean of the temperature sensor readings and the pre-set standard deviation to determine whether there are abnormal values. Another example is to calculate the response time of the air conditioner applet in different states through the calculation formula of operation response time, etc.

[0085] In actual application scenarios, combined with Figure 5 and Figure 6 The air conditioner applet first generates timed snapshots, event-triggered snapshots, and error or exception snapshots based on the parameters set by the user and the air conditioner operating parameters. On the one hand, these data snapshots are stored in the cloud server. On the other hand, these data snapshots are used to generate test cases, including exception troubleshooting tests, function verification tests, and state recovery tests, so that the air conditioner performs corresponding operations according to the test cases to complete the test of the air conditioner applet.

[0086] For example, suppose that when the user is preparing to rest at 10 o'clock in the evening, he finds that the air conditioner suddenly stops working and the indoor temperature begins to rise. The user can then open the air conditioner applet to check the current air conditioner status. For example, the applet shows that the current indoor temperature is 25℃, the humidity is 60%, and the air quality is good, but the air conditioner status is displayed as "offline". After detecting that the air conditioner is offline, the applet immediately starts the abnormality detection mechanism. First, the applet detects the network connection status through the ping command and finds that the network connection is interrupted. Subsequently, the applet generates an error snapshot to record the system status when the network is disconnected, including the current status of the air conditioner, the environmental status (such as indoor and outdoor temperature, humidity, air quality, etc.) and the status of the linkage devices (such as smart curtains, smart lights, etc.). After the error snapshot is generated, the applet will automatically upload the snapshot data to the cloud server for backup for subsequent analysis and recovery. After the error snapshot is generated, the applet will try to automatically restore the system status. First, the applet will try to reconnect to the network and detect the network connection status through multiple ping commands. If the network connection is restored, the applet will restore the status of the air conditioner according to the most recent normal snapshot. For example, the mini program will restore the air conditioning equipment to cooling mode based on the data snapshot of the most recent normal operation, with the target temperature set to 24°C and the wind speed set to automatic. At the same time, the mini program will restore the status of the linked devices, such as the automatic closing of smart curtains and the adjustment of smart lights to night mode. If the system automatically recovers successfully, the mini program will prompt the user that the system has returned to normal and display the current air conditioning status and environmental status. The user can view the restored status in the mini program to confirm whether the air conditioning equipment is working properly. If the system automatically recovers, the mini program will prompt the user to contact technical support and provide a detailed exception report. The exception report can include information such as error snapshot data, network connection status, and air conditioning equipment status to help the technical support team quickly locate the problem. Furthermore, users can submit feedback through the mini program, attaching the exception report and related snapshot data. The technical support team will troubleshoot and optimize the system based on user feedback and snapshot data. For example, if a temperature sensor reading is found to be abnormal, the technical support team can locate the problem through the snapshot data and make corresponding repairs.

[0087] Figure 7 A schematic block diagram of an air conditioner applet testing device 700 provided in an embodiment of the present invention, the device 700 includes:

[0088] A generating unit 701, for generating a data snapshot based on the control parameters set by the user and the operating parameters of the air conditioner;

[0089] An arrangement unit 702, configured to classify the data snapshots according to test scenarios, and arrange test cases based on the classified data snapshots;

[0090] The testing unit 703 is used to perform a testing operation on the air conditioner applet according to the test case.

[0091] In one embodiment, the data snapshot includes a time snapshot, and the generating unit 701 includes:

[0092] The timing unit is used to collect the control parameters and operating parameters at preset time intervals through a time scheduler technology, and generate the timing snapshots based on the collection.

[0093] In one embodiment, the data snapshot includes an event-triggered snapshot, and the generating unit 701 further includes:

[0094] A monitoring unit, used to monitor the control parameters and operating parameters through event monitoring technology;

[0095] The trigger unit is used to collect the corresponding control parameters and operating parameters when it monitors that the control parameters and / or operating parameters change, and generate the event trigger snapshot based on them.

[0096] In one embodiment, the data snapshot includes an error or abnormal snapshot, and the generating unit 701 further includes:

[0097] A monitoring unit, used to monitor the operation process of the air conditioner by using an abnormality detection technology;

[0098] The abnormality unit is used to collect corresponding control parameters and operating parameters when an error or abnormality is detected in the operation process of the air conditioner, and generate the error or abnormality snapshot based on the parameters.

[0099] In one embodiment, the test operation includes a state recovery test, such as Figure 8 As shown, the testing unit 703 also includes:

[0100] The first acquisition unit 801 is used to acquire the operating parameters of the air conditioner in a normal state according to the data snapshot corresponding to the test case;

[0101] The first setting unit 802 is used to set the operating state of the air conditioner according to the operating parameters of the air conditioner in the normal state, and determine whether the operating state of the air conditioner is restored successfully.

[0102] In one embodiment, the testing operation includes functional testing, such as Fig. 9 As shown, the testing unit 703 also includes:

[0103] The second acquisition unit 901 is used to acquire function parameters according to the data snapshot corresponding to the test case;

[0104] A second setting unit 902, used to set the operating state of the air conditioner according to the functional parameters;

[0105] The function determination unit 903 is used to determine whether the function corresponding to the air conditioner applet is normal when the air conditioner is operating according to the function parameters.

[0106] In one embodiment, the test operation includes an abnormality detection test, such as Fig.10 As shown, the testing unit 703 also includes:

[0107] The third acquisition unit 1001 is used to acquire abnormal values ​​between different data snapshots according to the data snapshots corresponding to the test case;

[0108] The abnormality determination unit 1002 is used to determine whether the air conditioner has an abnormality according to the abnormal value acquisition result.

[0109] Since the embodiments of the apparatus part correspond to the embodiments of the method part, please refer to the description of the embodiments of the method part for the embodiments of the apparatus part, which will not be repeated here.

[0110] The embodiment of the present invention further provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed, the steps provided in the above embodiment can be implemented. The storage medium may include: a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0111] The embodiment of the present invention also provides an electronic device, which may include a memory and a processor, wherein a computer program is stored in the memory, and when the processor calls the computer program in the memory, the steps provided in the above embodiment may be implemented. Of course, the electronic device may also include various network interfaces, power supplies and other components.

[0112] The various embodiments in the specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other. For the system disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description. It should be pointed out that for ordinary technicians in this technical field, without departing from the principles of this application, several improvements and modifications can be made to the present application, and these improvements and modifications also fall within the scope of protection of the claims of this application.

[0113] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprises", "comprising" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.

Claims

1. An air conditioner applet testing method, characterized in that: include: Generate a data snapshot based on the control parameters set by the user and the operating parameters of the air conditioner; Classifying the data snapshots according to test scenarios, and arranging test cases based on the classified data snapshots; A test operation is performed on the air conditioner applet according to the test case.

2. The air conditioner applet testing method according to claim 1, characterized in that: The data snapshot includes a timed snapshot, and the data snapshot is generated based on the control parameters set by the user and the operating parameters of the air conditioner, including: At every preset time interval, the control parameters and operating parameters are collected through the time scheduler technology, and the time snapshot is generated accordingly.

3. The air conditioner applet testing method according to claim 1, characterized in that: The data snapshot includes an event-triggered snapshot, and the data snapshot is generated based on the control parameters set by the user and the operating parameters of the air conditioner, including: Monitoring the control parameters and operating parameters through event monitoring technology; When changes in the control parameters and / or operating parameters are monitored, the corresponding control parameters and operating parameters are collected, and the event-triggered snapshot is generated based on them.

4. The air conditioner applet testing method according to claim 1, characterized in that: The data snapshot includes an error or abnormality snapshot, and the data snapshot is generated based on the control parameters set by the user and the operating parameters of the air conditioner, including: Monitoring the operation of the air conditioner by using anomaly detection technology; When an error or abnormality is detected during the operation of the air conditioner, corresponding control parameters and operating parameters are collected to generate a snapshot of the error or abnormality.

5. The air conditioner applet testing method according to claim 1, characterized in that: The test operation includes a state recovery test, and the performing of the test operation on the air conditioner applet according to the test case includes: According to the data snapshot corresponding to the test case, the operating parameters of the air conditioner under normal state are obtained; The operating state of the air conditioner is set according to the operating parameters of the air conditioner under normal state, and it is determined whether the operating state of the air conditioner is restored successfully.

6. The air conditioner applet testing method according to claim 1, characterized in that: The test operation includes a functional test, and the test operation is performed on the air conditioner applet according to the test case, including: Obtaining function parameters according to the data snapshot corresponding to the test case; Setting the operating state of the air conditioner according to the functional parameters; When the air conditioner is operating according to the functional parameters, it is determined whether the function corresponding to the air conditioner applet is normal.

7. The air conditioner applet testing method according to claim 1, characterized in that: The test operation includes an abnormality troubleshooting test, and the test operation is performed on the air conditioner applet according to the test case, including: According to the data snapshots corresponding to the test case, obtaining abnormal values ​​between different data snapshots; It is determined whether the air conditioner has an abnormality according to the acquisition result of the abnormal value.

8. An air conditioner applet testing device, characterized in that: include: A generating unit, for generating a data snapshot based on a control parameter set by a user and an operating parameter of the air conditioner; An orchestration unit, configured to classify the data snapshots according to test scenarios, and orchestrate test cases based on the classified data snapshots; The testing unit is used to perform testing operations on the air conditioner applet according to the test case.

9. An electronic device, characterized in that: The method comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein the processor implements the air conditioner applet testing method as claimed in any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the air conditioner applet testing method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Fan testing method, device and system

    CN107576518A

  • Interface test case generation method and device, computer equipment and storage medium

    CN110532169A

  • Interface testing method and device, computer equipment and storage medium

    CN112835808A

  • Automatic testing method, device, equipment and medium

    CN114116496A

  • Equipment testing method and device, storage medium and electronic device

    CN117471923A