A testing system and its control method

By simulating a real air conditioning system using a virtual machine, the problem of complex and costly testing in existing technologies is solved, enabling efficient and low-cost cloud server and client testing.

CN115479356BActive Publication Date: 2026-03-13QINGDAO HISENSE BOSCH AIR CONDITIONING SYSTEM CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-11
Publication Date
2026-03-13

AI Technical Summary

Technical Problem

Existing technologies require real air conditioning systems when testing cloud servers and clients, resulting in complex deployments and high costs.

Method used

A virtual machine is used to simulate a real air conditioning system. Through interactive testing between a cloud server and a client, the control commands and response information of the air conditioning system are simulated.

Benefits of technology

The functionality of cloud servers and clients can be tested without the need for a real air conditioning system, reducing testing costs and improving testing efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115479356B_ABST
    Figure CN115479356B_ABST
Patent Text Reader

Abstract

This application discloses a testing system and its control method, relating to the field of air conditioning technology, for testing cloud servers and clients without the need to build a real air conditioning system, thereby reducing testing costs. The testing system includes: a terminal device, comprising a client application for controlling the air conditioning system; a cloud server, comprising at least one air conditioning system virtual machine; and a server application for controlling the air conditioning system. The server is configured to: receive control commands sent by the client when the client runs a first test script; send control commands to the first air conditioning system virtual machine (which can be any one of at least one air conditioning system virtual machine) when the control object of the control command is the first air conditioning system virtual machine; and receive response information from the first air conditioning system virtual machine to the control commands.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of air conditioning technology, and in particular to a testing system and its control method. Background Technology

[0002] With economic and social development, air conditioning offers a better experience and is increasingly widely used in various settings, including entertainment, home, and work. Especially when the outdoor perceived temperature is too high or too low (e.g., hot summer or cold winter), air conditioning becomes an indispensable appliance. Users can install client applications on their devices to control the air conditioner. Users issue control commands through the client, which are then transmitted to the air conditioner by a cloud server, allowing users to utilize its various functions.

[0003] Before the air conditioner is officially put into use, or after new functions are developed, production personnel need to test the cloud server and client to ensure that the air conditioner can be controlled through the cloud server and client to achieve various functions.

[0004] Currently, testing cloud servers and clients typically involves connecting real air conditioning units to both the cloud server and client. Commands are then issued from the client to test whether the cloud server and client can control the air conditioner to perform various functions. This testing method relies on a real air conditioning system, but deploying a real air conditioning system is complex and costly. Summary of the Invention

[0005] This application provides a testing system and its control method for testing cloud servers and clients without the need to build a real air conditioning system, thereby reducing testing costs.

[0006] Firstly, a testing system is provided, comprising:

[0007] Terminal devices, including client applications for controlling air conditioning systems;

[0008] The cloud server includes at least one virtual machine for the air conditioning system, and a server-side application for controlling the air conditioning system.

[0009] The server is configured as follows:

[0010] Receive control commands sent by the client when the first test script is run on the client;

[0011] When the controlled object of the control command is the first air conditioning system virtual machine, the control command is sent to the first air conditioning system virtual machine, where the first air conditioning system virtual machine is any one of at least one air conditioning system virtual machine;

[0012] Receive the response information of the first air conditioning system virtual machine to the control command.

[0013] The technical solution provided in this application provides at least the following beneficial effects: The cloud server includes at least one air conditioning system virtual machine and a server. The server receives control commands sent by the client when running the first test script, and sends the control commands to the first air conditioning system virtual machine when the controlled object of the control commands is the first air conditioning system virtual machine. The first air conditioning system virtual machine simulates the operation of a real air conditioning system, generates response information to the control commands, and then the server receives the response information of the first air conditioning system virtual machine to the control commands, thereby achieving the purpose of testing whether the client and server can control the air conditioner normally. In the above testing process, the air conditioning system virtual machine can simulate air conditioning systems of various models, types, and operating states without the need to build a real air conditioning system, saving testing costs, shortening the testing cycle, and increasing testing efficiency.

[0014] In some embodiments, the server is further configured to send an alarm message to the client in response to not receiving a response within a preset time period after sending a control command to the first air conditioning system virtual machine. Thus, if the server does not receive a response from the first air conditioning system virtual machine to the control command within the preset time period, it indicates a failure in the response path of the first air conditioning system virtual machine to the control command. The server then sends an alarm message to the client, prompting the user to check the cloud server or the client, ensuring that the client can control the air conditioning system normally.

[0015] In some embodiments, the cloud server is configured to: obtain configuration information for each air conditioning system virtual machine, including the number, model, and configuration of the air conditioning systems; and construct the air conditioning system virtual machine based on the configuration information. This allows the cloud server to better construct the air conditioning system virtual machine based on the configuration information, thereby enabling more comprehensive testing of both the cloud server and the client, and obtaining more reliable test results.

[0016] In some embodiments, the server includes a control service module and a virtual machine service module. The control service module is configured to: pass control commands from the client to the virtual machine service module; the virtual machine service module is configured to: extract the identification information of the controlled object from the control commands; detect whether the identification information of an air conditioning system virtual machine matches the identification information of the controlled object based on the identification information of at least one air conditioning system virtual machine; and send the control command to the first air conditioning system virtual machine when the identification information of the first air conditioning system virtual machine matches the identification information of the controlled object. Thus, the control commands sent by the client contain the identification information of the controlled object. By matching the identification information of the controlled object with the identification information of the air conditioning system virtual machine through the virtual machine service module, the client can control a specific controlled object, enabling the client to test the controlled objects of different air conditioning systems.

[0017] In some embodiments, the server further includes an access service module, which establishes a communication connection with at least one air conditioning system. The virtual machine service module is further configured to: transmit control instructions to the access service module when the identification information of at least one air conditioning system virtual machine does not match the identification information of the controlled object; the access service module is configured to: determine that the controlled object of the control instruction is the target air conditioning system; and send the control instruction to the target air conditioning system. Thus, when the identification information of at least one air conditioning system virtual machine does not match the identification information of the controlled object, it indicates that the control instruction is used to control the operation of the actual air conditioning equipment. Therefore, the virtual machine service module transmits the control instruction to the access service module, which then determines the controlled object of the control instruction and sends the control instruction to the controlled object, thereby achieving control of the actual air conditioning system.

[0018] In some embodiments, the server is further configured to: receive air conditioning operation data sent by the second air conditioning system virtual machine when the second test script is running, wherein the second air conditioning system virtual machine is any one of at least one air conditioning system virtual machine; and send the air conditioning operation data to the client. In this way, the server receives the air conditioning operation data sent by the second air conditioning system virtual machine when the second test script is running and sends the air conditioning operation data to the client, thereby realizing the testing of the communication connection from the air conditioning system to the cloud server and then to the client, making the testing more comprehensive and the test results more reliable.

[0019] In some embodiments, the server is further configured to: receive a target alarm code sent by a third air conditioning system virtual machine, wherein the third air conditioning system virtual machine is any one of at least one air conditioning system virtual machine; determine the fault corresponding to the target alarm code based on the target alarm code and the correspondence between the alarm code and the fault; and send a fault alarm information to the client based on the fault corresponding to the target alarm code, so that the client notifies the user that the third air conditioning system virtual machine has experienced a fault corresponding to the target alarm code. This enables simulation testing of alarm conditions when various faults occur in the air conditioning system, simplifies the operation for testers, eliminates the need for actual air conditioning equipment, and is cost-effective and highly efficient.

[0020] Secondly, a control method for a testing system is provided. This control method is applied to a testing system including a terminal device and a cloud server. The terminal device includes a client for an application used to control an air conditioning system, and the cloud server includes at least one virtual machine of the air conditioning system and a server for the application used to control the air conditioning system. The control method includes: the server receiving a control command sent by the client when the client runs a first test script; when the control object of the control command is a first virtual machine of the air conditioning system, the server sending the control command to the first virtual machine of the air conditioning system, wherein the first virtual machine of the air conditioning system is any one of at least one virtual machine of the air conditioning system; and the server receiving response information from the first virtual machine of the air conditioning system to the control command.

[0021] Thirdly, embodiments of this application provide a computer-readable storage medium storing instructions that, when executed on any of the aforementioned devices, cause the devices to perform the control method of any of the aforementioned test systems.

[0022] Fourthly, embodiments of this application provide a computer program product containing instructions that, when run on any of the aforementioned devices, cause the device to execute the control method of any of the aforementioned test systems.

[0023] Furthermore, the technical effects of any of the design methods in the second to fourth aspects can be found in the technical effects of the different design methods in the first aspect above, and will not be repeated here. Attached Figure Description

[0024] Figure 1 This is a schematic diagram of the structure of a testing system provided in an embodiment of this application;

[0025] Figure 2 A schematic diagram of the test process of a test system provided in this application embodiment. Figure 1 ;

[0026] Figure 3 A schematic diagram of the test process of a test system provided in this application embodiment. Figure 2 ;

[0027] Figure 4 A schematic diagram of the test process of a test system provided in this application embodiment. Figure 3 ;

[0028] Figure 5 This is a schematic diagram illustrating an application scenario of a testing system provided in an embodiment of this application;

[0029] Figure 6 This is a schematic diagram of the structure of another testing system provided in an embodiment of this application;

[0030] Figure 7 This is a schematic diagram of the structure of a server provided in an embodiment of this application;

[0031] Figure 8 A schematic diagram of the test process of a test system provided in this application embodiment. Figure 4 ;

[0032] Figure 9 This is a schematic diagram of another server structure provided in an embodiment of this application;

[0033] Figure 10 A schematic diagram of the test process of a test system provided in this application embodiment. Figure 5 . Detailed Implementation

[0034] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0035] The terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of this application, unless otherwise stated, "a plurality of" means two or more.

[0036] In the description of this application, it should be noted that, unless otherwise expressly specified and limited, the terms "connected" and "linked" should be interpreted broadly, for example, as a fixed connection, a detachable connection, or an integral connection. Those skilled in the art can understand the specific meaning of the above terms in this application based on the specific circumstances. Furthermore, when describing pipelines, the terms "connected" and "linked" as used in this application have the meaning of establishing electrical connection. The specific meaning needs to be understood in conjunction with the context.

[0037] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate that something is an example, illustration, or description. Any embodiment or design that is described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design. Specifically, the use of the terms "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0038] As described in the background section, testing cloud servers and clients typically involves connecting a real air conditioning system to both the cloud server and client. Commands are then issued from the client to test whether the cloud server and client can control the air conditioning system to perform various functions. This method relies on a real air conditioning system, but deploying a real air conditioning system is complex and costly.

[0039] In view of this, this application provides a testing system comprising a terminal device and a cloud server. The terminal device includes a client application for controlling an air conditioning system, and the cloud server includes at least one virtual machine of the air conditioning system and a server application for controlling the air conditioning system. Furthermore, through information interaction between the server, client, and virtual machine of the air conditioning system, testing of the communication connection from the client to the cloud server and then to the air conditioning system can be achieved without relying on a real air conditioning system, resulting in low testing costs. The virtual machine of the air conditioning system can simulate various models and types of air conditioning systems, and the testing efficiency is also high.

[0040] Figure 1 A testing system provided for this application. For example... Figure 1 As shown, the test system 1 includes a cloud server 10 and a terminal device 20. The cloud server 10 includes at least one air conditioning system virtual machine 101 and a server 102. The terminal device 20 includes a client 201 for an application used to control the air conditioning system.

[0041] In some embodiments, the cloud server 10 may be an independent physical server, or a server cluster or distributed system consisting of multiple physical servers.

[0042] In some embodiments, the air conditioning system virtual machine 101 refers to a complete computer system with full hardware system functions, simulated by software and running in a completely isolated environment. The air conditioning system virtual machine 101 can simulate the operation process of an air conditioning system in actual application. The air conditioning system virtual machine 101 can simulate the signaling interaction process with the server 102, thereby realizing functional testing of the server 102 and the client 201.

[0043] In some embodiments, server 102 is used to control an application program of the air conditioning system. Server 102 can send control commands to the air conditioning system, causing the air conditioning system to launch the corresponding application program according to the control commands, thereby realizing the functions of the air conditioning system corresponding to the control commands.

[0044] In some embodiments, each air conditioning system virtual machine 101 can be individually controlled by the server 102.

[0045] In some embodiments, for each air conditioning system virtual machine 101, the cloud server 10 can obtain the configuration information of the air conditioning system virtual machine 101 and construct the air conditioning system virtual machine 101 based on the configuration information. The configuration information of the air conditioning system virtual machine 101 includes the number, model, and configuration relationship of the air conditioning systems. The configuration information of the air conditioning system virtual machine 101 can be pre-set by the testers, so that the cloud server 10 can construct the air conditioning system virtual machine 101 according to the configuration information, enabling the air conditioning system virtual machine 101 to simulate the operation of the air conditioning system.

[0046] In some embodiments, the terminal device 20 may be a smartphone, handheld device, tablet computer, mobile laptop, virtual reality device, wearable device, all-in-one handheld device, etc. Figure 1 The example of terminal device 20 being a smartphone is used for illustration, but this application does not specifically limit it.

[0047] In some embodiments, a communication connection is established between the client 201 and the server 102, such as Figure 1 As shown, the terminal device 20 displays the control interface of the client 201. Testers can issue control commands on the control interface of the client 201, so the client 201 can send the control commands to the server 102. Then the server 102 can control the air conditioning system to start the application corresponding to the control command, so that the air conditioning system can realize the function corresponding to the control command.

[0048] In some embodiments, Figure 2 This illustrates the test flow of a test system provided in an embodiment of this application. For example... Figure 2As shown, when the client 201 runs the first test script, it sends control commands to the server 102.

[0049] A test script, in general, refers to a series of instructions for a specific test, which can be executed by automated testing tools. A test script is a computer-readable instruction that automates the test process (or parts of the test process). Test scripts can be created (recorded), automatically generated using test automation tools, programmed using a programming language, or a combination of these methods.

[0050] After receiving the control command, the server 102 detects the control object of the control command. If the control object is the first air conditioning system virtual machine, the server 102 sends the control command to the first air conditioning system virtual machine. The first air conditioning system virtual machine can be any one of at least one air conditioning system virtual machine 101.

[0051] After receiving the control command, the virtual machine of the first air conditioning system responds to the control command and sends the response information to the server 102.

[0052] For example, in the above testing process, testers can check whether each signaling (such as control signaling, response information, etc.) is generated and transmitted normally to obtain test results. Furthermore, when signaling is not generated or transmitted normally, testers can also locate the faulty device in the test system by identifying the problematic link in the testing process.

[0053] In this way, the virtual machine of the first air conditioning system simulates the operation of a real air conditioning system, generating response information to control commands. The server 102 then receives this response information from the virtual machine, thus achieving the purpose of testing whether the client 201 and server 102 can control the air conditioner normally. During this testing process, the virtual machine 101 can simulate various models, types, and operating states of air conditioning systems without needing to build a real air conditioning system, saving testing costs, shortening the testing cycle, and increasing testing efficiency.

[0054] In some embodiments, in response to not receiving a response within a preset time period after sending a control command to the first air conditioning system virtual machine, the server 102 sends an alarm message to the client 201. It should be understood that if the server 102 does not receive a response from the first air conditioning system virtual machine to the control command within the preset time period, it indicates a connection failure between the first air conditioning system virtual machine and the server 102, or between the server 102 and the client 201, preventing the first air conditioning system virtual machine from responding to the control command from the client 201. Therefore, the server 102 sends an alarm message to the client 201, thereby prompting the user to check the server 102 or the client 201 to ensure that the client 201 can control the air conditioning system normally.

[0055] In some embodiments, Figure 3 This illustrates the test flow of another test system provided in an embodiment of this application. For example... Figure 3 As shown, when the second air conditioning system virtual machine runs the second test script, it sends air conditioning operation data to the server 102. The second air conditioning system virtual machine can be any one of at least one air conditioning system virtual machine 101.

[0056] After receiving the air conditioner operation data, server 102 sends the air conditioner operation data to client 201.

[0057] For example, if the second test script is to cool down to 17°C, then the virtual machine of the second air conditioning system will generate air conditioning operation data during the cooling process and send the air conditioning operation data to the server 102. After receiving the air conditioning operation data, the server will then send the air conditioning operation data to the client 201.

[0058] In this way, the server 102 receives the air conditioning operation data sent by the virtual machine of the second air conditioning system when it runs the second test script, and sends the air conditioning operation data to the client 201, thereby realizing the test of the communication connection from the air conditioning system 30 to the cloud server 10 and then to the client 201. The test is more comprehensive and the test results are more reliable.

[0059] In some embodiments, Figure 4 This illustrates the test flow of another test system provided in an embodiment of this application. For example... Figure 4 As shown, the third air conditioning system virtual machine sends the target alarm code to the server 102. The third air conditioning system virtual machine can be any one of at least one air conditioning system virtual machine 101.

[0060] After receiving the target alarm code, server 102 determines the fault corresponding to the target alarm code based on the target alarm code and the correspondence between alarm codes and faults. The correspondence between alarm codes and faults can be pre-defined by the tester.

[0061] Based on the fault corresponding to the target alarm code, server 102 sends fault alarm information to client 201.

[0062] After receiving the fault alarm information, client 201 prompts the user that a fault corresponding to the target alarm code has occurred in the virtual machine of the third air conditioning system.

[0063] For example, the virtual machine of the third air conditioning system sends a target alarm code to the server 102. After receiving the target alarm code, the server 102, based on the target alarm code and the correspondence between alarm codes and faults, determines that the fault corresponding to the target alarm code is the uncontrolled fan speed of the virtual machine of the third air conditioning system. Then, the server 102 sends fault alarm information to the client 201. Taking the user's terminal device 20 as a smartphone as an example, after the client 201 receives the fault alarm information, as follows... Figure 5 As shown, a prompt message is displayed on the smartphone, informing the user that the fan speed of the virtual machine in the third air conditioning system is out of control.

[0064] In this way, the third air conditioning system virtual machine sends the target alarm code to the server 102, so that the server 102 can determine the fault corresponding to the target alarm code and then send the fault alarm information to the client 201. After receiving the fault alarm information, the client 201 can notify the user that the third air conditioning system virtual machine has a fault corresponding to the target alarm code. This realizes the simulation test of alarm situations when various faults occur in the air conditioning system 30, simplifies the operation of testers, and does not require the investment of real air conditioning equipment. It is low-cost and highly efficient.

[0065] In some embodiments, such as Figure 6 As shown, the test system 1 also includes an air conditioning system 30. This application embodiment does not limit the number of air conditioning systems 30. The test system 1 includes a real air conditioning system 30. Control commands issued by the client 201 can be transmitted to the air conditioning system 30 via the cloud server 10, thereby testing the process of the client 201 controlling the operation of the real air conditioning system 30 and obtaining more comprehensive and reliable test results.

[0066] In some embodiments, such as Figure 7 As shown, the server 102 includes a control service module 1021, a virtual machine service module 1022, a data gateway module 1023, a parsing service module 1024, a storage service module 1025, a protocol management module 1026, a status service module 1027, an internal gateway module 1028, and a device file module 1029.

[0067] The control service module 1021 is used to send control commands to the virtual machine service module 1022.

[0068] The virtual machine service module 1022 is used to identify the controlled object of the control commands sent by the control service module 1021, and to forward the control commands based on the identification results.

[0069] The data gateway module 1023 is used to receive communication data from the air conditioning system virtual machine 101 and the air conditioning system 30.

[0070] The parsing service module 1024 is used to parse the communication data sent by the air conditioning system virtual machine 101 so that the client 201 can identify the communication data from the air conditioning system virtual machine 101.

[0071] The storage service module 1025 is used to store the communication data sent by the air conditioning system virtual machine 101, so that testers can view the response of the air conditioning system virtual machine 101 to the control commands sent by the client, and obtain the test results of the cloud server 10 and the client 201 by analyzing the communication data.

[0072] The protocol management module 1026 is used to manage the various protocols involved in the operation of the server 102, so that the server 102 can work normally.

[0073] The status service module 1027 is used to detect the status of the server 102, so that the server 102 can determine whether each functional service can be implemented normally based on its own status.

[0074] The internal gateway module 1028 is used to communicate with the business layer of the cloud server 10, so that the control signaling sent by the client 201 can be transmitted to the internal gateway module 1028 through the business layer, thereby enabling the air conditioning system virtual machine 101 to receive the control command sent by the client 201.

[0075] The equipment file module 1029 is used to record the equipment files of each air conditioning system.

[0076] In some embodiments, Figure 8 This illustrates the test flow of another test system provided in an embodiment of this application. For example... Figure 8 As shown, when the client 201 runs the first test script, it sends control commands to the server 102.

[0077] The control command sent by the client 201 is transmitted to the internal gateway module 1028 in the server 102 via the business layer of the cloud server 10, and then the control service module 1021 receives the control command and transmits it to the virtual machine service module 1022.

[0078] After receiving the control command, the virtual machine service module 1022 extracts the identification information of the controlled object from the control command and, based on the identification information of at least one air conditioning system virtual machine 101, checks whether the identification information of an air conditioning system virtual machine 101 matches the identification information of the controlled object. The identification information is used to uniquely identify the target object; each air conditioning system virtual machine 101 has unique identification information, which may include information such as number, address, and name.

[0079] When the identification information of the first air conditioning system virtual machine 1011 matches the identification information of the controlled object, the virtual machine service module 1022 sends the control command to the first air conditioning system virtual machine 1011.

[0080] For example, after receiving the control command, the virtual machine service module 1022 extracts the identification information of the controlled object of the control command, which is the air conditioning system with the number 64. Then, the virtual machine service module 1022 queries the numbers of all air conditioning system virtual machines 101. If the number of the first air conditioning system virtual machine 1011 is 64, it is determined that the first air conditioning system virtual machine 1011 matches the controlled object of the control command. Then, the virtual machine service module 1022 sends the control command to the first air conditioning system virtual machine 1011.

[0081] In this way, the control commands sent by the client 201 contain the identification information of the controlled object. The virtual machine service module 1022 matches the identification information of the controlled object with the identification information of the air conditioning system virtual machine 101, so that the client 201 can control the specific controlled object. That is, the tester can use the client 201 to control air conditioners of different models, types and operating states to achieve different functions, thereby completing the test of the cloud server 10 and the client 201.

[0082] In some embodiments, such as Figure 9 As shown, the test system 1 may also include an access service module 1030. The access service module 1030 is used to establish a connection with the air conditioning system 30.

[0083] Optionally, the access service module 1030 can establish a connection with the air conditioning system 30 through a smart gateway.

[0084] In some embodiments, Figure 10 This illustrates the test flow of another test system provided in an embodiment of this application. For example... Figure 10 As shown, client 201 sends control commands to server 102.

[0085] After receiving the control command from the client 201, the control service module 1021 in the server 102 passes the control command to the virtual machine service module 1022.

[0086] After receiving the control command, the virtual machine service module 1022 extracts the identification information of the controlled object from the control command, and based on the identification information of at least one air conditioning system virtual machine 101, detects whether the identification information of an air conditioning system virtual machine 101 matches the identification information of the controlled object.

[0087] When the identification information of at least one air conditioning system virtual machine 101 does not match the identification information of the controlled object, the virtual machine service module 1022 transmits the control command to the access service module 1030.

[0088] After receiving the control command, the access service module 1030 determines that the control object of the control command is the target air conditioning system and sends the control command to the target air conditioning system. The target air conditioning system can be any one of at least one of the air conditioning systems 30.

[0089] Optionally, the access service module 1030 detects whether the identification information of an air conditioning system 30 matches the identification information of the controlled object based on the identification information of at least one air conditioning system 30. When the identification information of the controlled object matches the identification information of the target air conditioning system, the access service module 1030 determines that the controlled object of the control command is the target air conditioning system.

[0090] For example, after receiving the control command, the virtual machine service module 1022 extracts the identification information of the controlled object of the control command, which is the air conditioning system with the number 37. Then, the virtual machine service module 1022 queries the numbers of all air conditioning system virtual machines 101. If there is no air conditioning system virtual machine 101 with the number 37, the virtual machine service module 1022 passes the control command to the access service module 1030. The access service module 1030 queries the numbers of all air conditioning systems 30. If the number of the first air conditioning system is 37, then the first air conditioning system is determined to be the target air conditioning system, and the access service module 1030 sends the control command to the first air conditioning system.

[0091] Thus, when the identification information of at least one air conditioning system virtual machine 101 does not match the identification information of the control object, it indicates that the control command is used to control the operation of the real air conditioning system. Therefore, the virtual machine service module 1022 transmits the control command to the access service module 1030, and then the access service module 1030 determines the control object of the control command and sends the control command to the control object of the control command, thereby realizing the control of the real air conditioning system 30.

[0092] This application also provides a computer-readable storage medium including computer-executable instructions that, when run on a computer, cause the computer to execute any of the control methods of the test system provided in the above embodiments.

[0093] This application also provides a computer program product containing computer execution instructions, which, when run on a computer, causes the computer to execute any of the control methods of the testing system provided in the above embodiments.

[0094] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented using software programs, implementation can be, in whole or in part, in the form of a computer program product. This computer program product includes one or more computer-executable instructions. When these computer-executable instructions are loaded and executed on a computer, all or part of the flow or function according to the embodiments of this application is generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer-executable instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, computer-executable instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer or a data storage device containing one or more servers, data centers, etc., that can be integrated with the medium. The available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid-state disks, SSDs).

[0095] Although this application has been described herein in conjunction with various embodiments, those skilled in the art, by reviewing the accompanying drawings, the disclosure, and the appended claims, will understand and implement other variations of the disclosed embodiments in carrying out the claimed application. In the claims, the word "comprising" does not exclude other components or steps, and "a" or "an" does not exclude multiple instances. A single processor or other unit can implement several functions listed in the claims. While different dependent claims may recite certain measures, this does not mean that these measures cannot be combined to produce good results.

[0096] Although this application has been described in conjunction with specific features and embodiments, it is obvious that various modifications and combinations can be made thereto without departing from the spirit and scope of this application. Accordingly, this specification and drawings are merely exemplary illustrations of this application as defined by the appended claims, and are considered to cover any and all modifications, variations, combinations, or equivalents within the scope of this application. Clearly, those skilled in the art can make various alterations and modifications to this application without departing from the spirit and scope of this application. Thus, if such modifications and modifications of this application fall within the scope of the claims of this application and their equivalents, this application is also intended to include such modifications and modifications.

[0097] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A test system, characterized by, The test system comprises: a terminal device comprising a client of an application program for controlling an air conditioning system; a cloud server comprising at least one air conditioning system virtual machine and a server of the application program for controlling the air conditioning system; the server is configured to: receive a control instruction sent by the client when the client runs a first test script; when a control object of the control instruction is a first air conditioning system virtual machine, send the control instruction to the first air conditioning system virtual machine, the first air conditioning system virtual machine being any one of the at least one air conditioning system virtual machine; receive response information of the first air conditioning system virtual machine to the control instruction; the server comprises a control service module and a virtual machine service module; the control service module is configured to pass the control instruction from the client to the virtual machine service module; the virtual machine service module is configured to extract identification information of the control object of the control instruction from the control instruction, detect whether the identification information of any air conditioning system virtual machine matches the identification information of the control object based on identification information of the at least one air conditioning system virtual machine, and send the control instruction to the first air conditioning system virtual machine when the identification information of the first air conditioning system virtual machine matches the identification information of the control object; the server further comprises an access service module, which establishes a communication connection with at least one air conditioning system; the virtual machine service module is further configured to pass the control instruction to the access service module when the identification information of the at least one air conditioning system virtual machine does not match the identification information of the control object; the access service module is configured to determine that the control object of the control instruction is a target air conditioning system, and send the control instruction to the target air conditioning system.

2. The test system of claim 1, wherein: the server is further configured to: in response to not receiving the response information within a preset time period after sending the control instruction to the first air conditioning system virtual machine, send alarm information to the client.

3. The test system of claim 1, wherein: the cloud server is configured to: for each air conditioning system virtual machine, obtain configuration information of the air conditioning system virtual machine, the configuration information comprising the number, model and collocation relationship of air conditioning systems; based on the configuration information of the air conditioning system virtual machine, construct the air conditioning system virtual machine.

4. The test system of any one of claims 1 to 3, wherein: the server is further configured to: receive air conditioner running data sent by a second air conditioning system virtual machine when the second air conditioning system virtual machine runs a second test script, the second air conditioning system virtual machine being any one of the at least one air conditioning system virtual machine; send the air conditioner running data to the client.

5. The test system of any one of claims 1 to 3, wherein: the server is further configured to: receive a target alarm code sent by a third air conditioning system virtual machine, the third air conditioning system virtual machine being any one of the at least one air conditioning system virtual machine; determine a fault corresponding to the target alarm code based on the target alarm code and a corresponding relationship between alarm codes and faults; send, to the client, fault alarm information based on the fault corresponding to the target alarm code, so that the client prompts a user that the third air conditioning system virtual machine has the fault corresponding to the target alarm code.

6. A control method of a test system, characterized by, The application is applied to a test system, the test system comprising a terminal device and a cloud server, the terminal device comprising a client of an application program for controlling an air conditioning system, and the cloud server comprising at least one air conditioning system virtual machine and a server of the application program for controlling the air conditioning system; the server comprising a control service module, a virtual machine service module, and an access service module; the access service module is in communication connection with at least one air conditioning system; the control method comprises: the server receives a control instruction sent by the client when a first test script is run on the client; when a control object of the control instruction is a first air conditioning system virtual machine, the server sends the control instruction to the first air conditioning system virtual machine, the first air conditioning system virtual machine being any one of the at least one air conditioning system virtual machine; the server receives response information of the first air conditioning system virtual machine to the control instruction; when the control object of the control instruction is the first air conditioning system virtual machine, the server sends the control instruction to the first air conditioning system virtual machine, comprising: the control service module of the server delivers the control instruction from the client to the virtual machine service module; the virtual machine service module of the server extracts identification information of the control object of the control instruction from the control instruction; the virtual machine service module of the server detects whether identification information of an air conditioning system virtual machine matches the identification information of the control object based on identification information of the at least one air conditioning system virtual machine; when the identification information of the first air conditioning system virtual machine matches the identification information of the control object, the virtual machine service module of the server sends the control instruction to the first air conditioning system virtual machine; when the identification information of the at least one air conditioning system virtual machine does not match the identification information of the control object, the virtual machine service module delivers the control instruction to the access service module; the access service module determines that the control object of the control instruction is a target air conditioning system, and sends the control instruction to the target air conditioning system.

7. The control method according to claim 6, characterized by The method further comprises: the server receives air conditioning running data sent by a second air conditioning system virtual machine when a second test script is run on the second air conditioning system virtual machine, the second air conditioning system virtual machine being any one of the at least one air conditioning system virtual machine; the server sends the air conditioning running data to the client.

8. The control method according to claim 6 or 7, characterized by, The method further comprises: The service end receives a target alarm code sent by a third air conditioning system virtual machine, the third air conditioning system virtual machine being any one of the at least one air conditioning system virtual machine; Based on the target alarm code and a corresponding relationship between alarm codes and faults, the service end determines a fault corresponding to the target alarm code; Based on the fault corresponding to the target alarm code, the service end sends fault alarm information to the client end, so that the client end prompts a user that the third air conditioning system virtual machine has the fault corresponding to the target alarm code.

Citation Information

Patent Citations

  • Method for controlling household appliances based on Internet of Things, terminal and Internet of Things system

    CN110177033A

  • Fault early warning method, device and system and storage medium

    CN112099476A

  • Household appliance testing method and system

    CN113468033A