CN113641444B - Virtual testing method, virtual testing device and related equipment - Google Patents

Virtual testing method, virtual testing device and related equipment Download PDF

Info

Publication number
CN113641444B
CN113641444B CN202010346139.7A CN202010346139A CN113641444B CN 113641444 B CN113641444 B CN 113641444B CN 202010346139 A CN202010346139 A CN 202010346139A CN 113641444 B CN113641444 B CN 113641444B
Authority
CN
China
Prior art keywords
virtual machine
air conditioner
determining
target
abnormal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010346139.7A
Other languages
Chinese (zh)
Other versions
CN113641444A (en
Inventor
曾海贤
钱亚峰
葛美才
黄磊
钱艺
包媛媛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nantong Huaxin Center Air Conditioner Co ltd
Original Assignee
Nantong Huaxin Center Air Conditioner Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nantong Huaxin Center Air Conditioner Co ltd filed Critical Nantong Huaxin Center Air Conditioner Co ltd
Priority to CN202010346139.7A priority Critical patent/CN113641444B/en
Publication of CN113641444A publication Critical patent/CN113641444A/en
Application granted granted Critical
Publication of CN113641444B publication Critical patent/CN113641444B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M99/00Subject matter not provided for in other groups of this subclass
    • G01M99/005Testing of complete machines, e.g. washing-machines or mobile phones
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01MTESTING STATIC OR DYNAMIC BALANCE OF MACHINES OR STRUCTURES; TESTING OF STRUCTURES OR APPARATUS, NOT OTHERWISE PROVIDED FOR
    • G01M99/00Subject matter not provided for in other groups of this subclass
    • G01M99/008Subject matter not provided for in other groups of this subclass by doing functionality tests
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/455Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
    • G06F9/45533Hypervisors; Virtual machine monitors
    • G06F9/45558Hypervisor-specific management and integration aspects
    • G06F2009/45591Monitoring or debugging support

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Air Conditioning Control Device (AREA)

Abstract

The virtual test method is applied to an air conditioner test system, wherein the air conditioner test system comprises air conditioner main control equipment and virtual machine integrated equipment, and receives and analyzes a test request, and the test request comprises air conditioner model information; determining a target test scheme according to the air conditioner model information, wherein the target test scheme comprises an address and model parameters of a virtual machine; determining a target virtual machine in the virtual machine integrated equipment according to the address and the model parameters; operating the target virtual machine to obtain operation parameters; judging whether the air conditioner operates abnormally or not according to the operation parameters; and when the judging result is that the air conditioner is abnormal in operation, acquiring the reason of the abnormal operation of the air conditioner, and determining a solution according to the reason. The invention also provides a virtual testing device and related equipment. By using the invention, the testing efficiency of the air conditioner can be improved.

Description

Virtual testing method, virtual testing device and related equipment
Technical Field
The present application relates to the field of air conditioner testing technologies, and in particular, to a virtual testing method, a virtual testing apparatus, a computer device, and a computer readable storage medium.
Background
With the improvement of life quality of people, the air conditioner is widely used. Before the air conditioner is formally put into use, production personnel need to test the performances of all aspects of the air conditioner so as to meet the performances such as safety. However, the existing air conditioner test mostly adopts a semi-automatic operation mode, and each test link comprises a safety performance test, a starting performance test, a refrigerating and heating performance test, a running performance test and the like, and all the test steps need to be performed manually by using instruments and meters one by one, or the test is omitted, so that the problems of high labor cost, low test efficiency, easiness in influencing the product test yield or the test precision and the like are caused.
Thus, it is necessary to provide a new test method capable of improving the efficiency of air conditioner test.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a virtual testing method, a virtual testing apparatus, a computer device, and a computer-readable storage medium that can improve the testing efficiency of an air conditioner.
An embodiment of the present invention provides a virtual testing method, applied to an air conditioner testing system, where the air conditioner testing system includes an air conditioner main control device and a virtual machine integrated device, the virtual testing method includes:
Receiving and analyzing a test request, wherein the test request comprises air conditioner model information;
Determining a target test scheme according to the air conditioner model information, wherein the target test scheme comprises an address and model parameters of a virtual machine;
determining a target virtual machine in the virtual machine integrated equipment according to the address and the model parameters;
operating the target virtual machine to obtain operation parameters;
judging whether the air conditioner operates abnormally or not according to the operation parameters;
And when the judging result is that the air conditioner is abnormal in operation, acquiring the reason of the abnormal operation of the air conditioner, and determining a solution according to the reason.
Further, in the above virtual test method provided by the embodiment of the present invention, the determining, according to the address and the model parameter, the target virtual machine in the virtual machine integrated device includes:
Acquiring a first address of a virtual machine carried by the target test scheme;
acquiring a second address of a virtual machine in the virtual machine integrated equipment;
determining an initial virtual machine according to the first address and the second address;
and training the initial virtual machine according to the model parameters to obtain a target virtual machine.
Further, in the above virtual testing method provided by the embodiment of the present invention, the method further includes:
when the number of the target virtual machines is a plurality of, determining the number of the target virtual machines;
starting a corresponding number of sub threads according to the number of the target virtual machines;
and calling the sub-threads to run the target virtual machine in parallel to obtain the running parameters.
Further, in the above virtual test method provided by the embodiment of the present invention, the determining whether the air conditioner is abnormal according to the operation parameter includes:
acquiring a target operation parameter of the target virtual machine in normal operation;
determining a normal operation parameter range of the air conditioner to be debugged according to the target operation parameter;
Judging whether the operating parameters meet the normal operating parameter range or not;
and when the operation parameters do not meet the normal operation parameter range as a result of the judgment, determining that the air conditioner is abnormal in operation.
Further, in the above virtual test method provided by the embodiment of the present invention, after the operating parameter does not meet the normal operating parameter range, the method further includes:
determining a number of abnormal operating parameters that do not meet the normal operating parameter range;
Determining the abnormal degree of the operation of the air conditioner according to the quantity;
detecting whether the abnormality degree exceeds a preset abnormality degree threshold;
and outputting an alarm prompt corresponding to the abnormal degree when the abnormal degree exceeds a preset abnormal degree threshold as a detection result.
Further, in the above virtual test method provided by the embodiment of the present invention, the obtaining a cause of an abnormal operation of an air conditioner, and determining a solution according to the cause includes:
acquiring abnormal operation parameters which do not meet the normal operation parameter range;
Determining an abnormal reason corresponding to the abnormal operation parameter according to a mapping relation between the preset operation parameter and the abnormal reason;
And determining a solution corresponding to the abnormality reason according to the mapping relation between the preset abnormality reason and the solution.
Further, in the above virtual testing method provided by the embodiment of the present invention, the determining the solution corresponding to the abnormality cause according to the mapping relationship between the preset abnormality cause and the solution includes:
When the mapping relation between the preset abnormal reasons and the solutions is one-to-many, determining a plurality of solutions corresponding to the abnormal reasons;
reconstructing the target virtual machine according to the solutions respectively;
operating the reconstructed target virtual machine to obtain updated operation parameters;
And determining an optimal solution according to the updated operation parameters.
The second aspect of the embodiment of the present invention further provides a virtual testing device, which is applied to an air conditioning system, and the virtual testing device includes:
the request receiving module is used for receiving and analyzing a test request, wherein the test request comprises air conditioner model information;
The scheme determining module is used for determining a target test scheme according to the air conditioner model information, wherein the target test scheme comprises an address of a virtual machine and model parameters;
the virtual machine determining module is used for determining a target virtual machine in the virtual machine integrated equipment according to the address and the model parameters;
the virtual machine operation module is used for operating the target virtual machine to obtain operation parameters;
the abnormality judging module is used for judging whether the air conditioner operates abnormally or not according to the operation parameters;
and the abnormality determination module is used for acquiring the reason of the abnormal operation of the air conditioner when the judgment result is that the operation of the air conditioner is abnormal, and determining a solution according to the reason.
A third aspect of an embodiment of the present invention further provides a computer device, the computer device including a processor configured to implement a virtual test method as described in any one of the above when executing a computer program stored in a memory.
The fourth aspect of the embodiment of the present invention further provides a computer readable storage medium, where a computer program is stored, where the computer program is executed by a processor to implement any one of the virtual test methods described above.
The embodiment of the invention provides a virtual testing method, a virtual testing device, computer equipment and a computer readable storage medium, comprising the following steps: receiving and analyzing a test request, wherein the test request comprises air conditioner model information; determining a target test scheme according to the air conditioner model information, wherein the target test scheme comprises an address and model parameters of a virtual machine; determining a target virtual machine in the virtual machine integrated equipment according to the address and the model parameters; operating the target virtual machine to obtain operation parameters; judging whether the air conditioner operates abnormally or not according to the operation parameters; and when the judging result is that the air conditioner is abnormal in operation, acquiring the reason of the abnormal operation of the air conditioner, and determining a solution according to the reason. By utilizing the method and the device, the simulation operation of the air conditioning system is realized through the target virtual machine, the abnormal operation condition of the air conditioning system can be tested, and the efficiency of air conditioning test is improved.
Drawings
Fig. 1 is a flowchart of a virtual testing method according to an embodiment of the present invention.
Fig. 2 is a schematic structural view of a terminal according to an embodiment of the present invention.
Fig. 3 is an exemplary functional block diagram of the terminal shown in fig. 2.
The invention will be further described in the following detailed description in conjunction with the above-described figures.
Detailed Description
In order that the above-recited objects, features and advantages of the present application will be more clearly understood, a more particular description of the application will be rendered by reference to specific embodiments thereof which are illustrated in the appended drawings. It should be noted that, without conflict, the embodiments of the present application and features in the embodiments may be combined with each other.
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present application, the described embodiments are examples of some, but not all, embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein in the description of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application.
Referring to fig. 1, fig. 1 is a flowchart of a virtual testing method according to an embodiment of the present invention, where the virtual testing method may be applied to an air conditioning testing system, and the air conditioning testing system includes an air conditioning main control device and a virtual machine integration device. The virtual machine integrated equipment is internally provided with a driving plate and a sensor, the driving plate is used for driving the virtual machine to work stably and reliably according to the test request output by the air conditioner main control equipment, and the sensor is used for feeding back various operation parameters of the virtual machine. The virtual machine integrated equipment is also provided with a touch screen, the touch screen can be used for displaying various operation parameters, and the touch screen can also receive touch instructions input by a user (the touch instructions can be instructions for starting a certain virtual machine). The air conditioner main control equipment is used for controlling the virtual machines in the virtual machine integrated equipment to run. The air conditioner master control device and the virtual machine integrated device may be electrically connected or communicatively connected (e.g., RS-485 communication, wifi communication), which is not limited herein. Specifically, the virtual test method may include the steps of:
S11, receiving and analyzing a test request, wherein the test request comprises air conditioner model information.
In at least one embodiment of the present invention, the test request is a request for testing a virtual machine in the virtual machine integrated device, which is output by an air conditioner tester, and the manner of outputting the test request may include a touch manner (for example, touch a touch screen on the air conditioner main control device and select air conditioner model information to be tested), a voice control method (for example, output a preset voice such as "start test" to the air conditioner main control device, and output the air conditioner model information to be tested). When the air conditioner main control equipment receives the test request, the test request is analyzed to obtain air conditioner model information carried in the test request.
S12, determining a target test scheme according to the air conditioner model information, wherein the target test scheme comprises an address and model parameters of the virtual machine.
In at least one embodiment of the present invention, the air conditioner master control device stores test schemes of different air conditioner model information, the air conditioner model information corresponds to the test schemes one by one, and the test schemes include addresses and model parameters of the virtual machine. Different test schemes corresponding to the air conditioner model information are different, for example, model parameters required by virtual machine construction in the virtual integrated equipment are different.
In at least one embodiment of the present invention, the virtual machine may be a compressor system, a vacuum system, etc. in an air conditioning system, and it is understood that all air conditioning systems in a group of air conditioners may simulate an operation condition through the virtual machine. The air conditioning systems with different air conditioning model information, namely the initial models of the virtual machines are the same (wherein the initial models of the virtual machines can construct the air conditioning system through a model material rendering algorithm), and the virtual machines corresponding to the air conditioning model information can be obtained by training the initial models of the virtual machines through model parameters corresponding to the air conditioning model information. By utilizing the method and the device, the virtual machines with different air conditioner model information can be obtained without retraining the initial model of the virtual machine, and the suitability of the virtual machines with different air conditioner model information is met, so that the efficiency of virtual test is improved.
In at least one embodiment of the present invention, when the test request includes a plurality of air conditioner model information, a target test scheme is determined corresponding to each of the air conditioner model information, and a corresponding virtual machine is determined from the virtual machine integrated device according to the target test scheme. It can be appreciated that, since there is a unique virtual machine corresponding to a certain air conditioning system in the virtual machine integrated device, the space required for integrating the virtual machines is reduced. When the number of the air conditioner model information carried by the test request is multiple, the requirement for the same virtual machine is multiple. In order to satisfy the virtual test of the plurality of air conditioner model information to be executed simultaneously, the method further comprises: acquiring the required number of the same virtual machine; temporarily creating corresponding virtual machines according to the required quantity (for example, an initial model corresponding to the virtual machines can be copied); and deleting the virtual machine after the current virtual machine is operated. By newly creating virtual machines which do not meet the number requirement and deleting the virtual machines which are executed, the space of the virtual machine integrated equipment can be saved, and the testing efficiency is improved.
S13, determining a target virtual machine in the virtual machine integrated equipment according to the address and the model parameters.
In at least one embodiment of the present invention, the determining the target virtual machine in the virtual machine integrated device according to the address and the model parameter includes: acquiring a first address of a virtual machine carried by the target test scheme; acquiring a second address of a virtual machine in the virtual machine integrated equipment; determining an initial virtual machine according to the first address and the second address; and training the initial virtual machine according to the model parameters to obtain a target virtual machine. The determining the initial virtual machine according to the first address and the second address means determining the second address which is the same as and/or corresponding to the first address from the virtual machine integrated device, and the virtual machine corresponding to the second address is a target virtual machine.
S14, operating the target virtual machine to obtain operation parameters.
In at least one embodiment of the present invention, the operation parameters are related operation parameters of the air conditioning system, and the operation parameters corresponding to the target virtual machine may be plural. For example, the operating parameters may be dry bulb temperature, wet bulb temperature, cooling manifold supply/return water temperature difference, cooling water flow, cooling capacity, heat rejection, etc., without limitation.
In at least one embodiment of the present invention, the method further comprises: when the number of the target virtual machines is a plurality of, determining the number of the target virtual machines; starting a corresponding number of sub threads according to the number of the target virtual machines; and calling the sub-threads to run the target virtual machine in parallel to obtain the running parameters. Virtual testing efficiency can be improved by calling the sub-threads corresponding to the target virtual machine to execute virtual testing in parallel.
And S15, judging whether the air conditioner is abnormal according to the operation parameters, and executing the step S16 when the judgment result is that the air conditioner is abnormal.
In at least one embodiment of the present invention, the determining whether the air conditioner is abnormally operated according to the operation parameter includes: acquiring a target operation parameter of the target virtual machine in normal operation; determining a normal operation parameter range of the air conditioner to be debugged according to the target operation parameter; judging whether the operating parameters meet the normal operating parameter range or not; and when the operation parameters do not meet the normal operation parameter range as a result of the judgment, determining that the air conditioner is abnormal in operation. The target operation parameter may be a normal operation parameter threshold, for example, a normal operation parameter minimum value and a normal operation parameter maximum value. It can be understood that the normal operation parameter range of the air conditioner to be debugged can be determined according to the normal operation parameter threshold.
In at least one embodiment of the present invention, after the operating parameter does not meet the normal operating parameter range, the method further comprises: determining a number of abnormal operating parameters that do not meet the normal operating parameter range; determining the abnormal degree of the operation of the air conditioner according to the quantity; detecting whether the abnormality degree exceeds a preset abnormality degree threshold; and outputting an alarm prompt corresponding to the abnormal degree when the abnormal degree exceeds a preset abnormal degree threshold as a detection result.
The preset abnormal degree threshold is preset by a tester, and the threshold for evaluating the abnormal degree of the operation of the air conditioner is utilized. And the number of the abnormal operation parameters and the abnormal degree of the air conditioner operation have a mapping relation. For example, the number of abnormal operating parameters is (1, 2), and the corresponding degree of abnormality is class D; the number of abnormal operation parameters is (3, 5), and the corresponding degree of abnormality is class C; the number of the parameters of abnormal operation is (6, 8), and the corresponding degree of abnormality is B grade; the number of parameters of abnormal operation is (9, + -infinity), the corresponding degree of abnormality is class a. And setting a corresponding alarm prompt according to the degree of abnormality, for example, setting an alarm prompt lamp with a corresponding color according to the level of the degree of abnormality, or setting an alarm prompt sound with a corresponding volume level according to the level of the degree of abnormality, and the like. Through setting corresponding alarm prompts for different abnormal degrees, testers can intuitively know the test conditions.
In other embodiments of the invention, the method further comprises: determining abnormal operation parameters which do not meet the normal operation parameter range; determining the importance degree of the abnormal operation parameters; and outputting an alarm prompt corresponding to the importance degree. Wherein the importance degree refers to the importance degree of the abnormal operation parameter in the air conditioning system. It can be understood that, when the number of the abnormal operation parameters is plural, the abnormal operation parameters may be tested by a preset importance determination model, so as to obtain importance degrees of the plural abnormal operation parameters. Or when the number of the abnormal operation parameters is a plurality of, calculating importance degree scores of each abnormal operation parameter; acquiring a preset weight of each abnormal operation parameter; and determining a final importance degree score according to the importance degree score and the preset weight.
S16, acquiring the reason of abnormal operation of the air conditioner, and determining a solution according to the reason.
In at least one embodiment of the present invention, the acquiring the cause of the abnormal operation of the air conditioner, and determining the solution according to the cause includes: acquiring abnormal operation parameters which do not meet the normal operation parameter range; determining an abnormal reason corresponding to the abnormal operation parameter according to a mapping relation between the preset operation parameter and the abnormal reason; and determining a solution corresponding to the abnormality reason according to the mapping relation between the preset abnormality reason and the solution. The mapping relation between the operation parameters and the reasons of the abnormality and the mapping relation between the reasons of the abnormality and the solutions can be summarized by testing a plurality of times by a tester. The mapping relation between the preset operation parameters and the reasons of the abnormality can be 1to 1 or more than 1. The mapping relation between the preset abnormal reasons and the solution can be 1to 1 or more than 1. Preferably, when the above-mentioned mapping relationships are all 1to many, when the abnormality cause corresponding to the abnormal operation parameter is determined, the priority of the abnormality cause is calculated (the priority may be determined according to the frequency of use of the abnormality cause), and the abnormality cause with the highest priority is determined as the target abnormality cause (the target abnormality cause is also the preferred abnormality cause). When the solution corresponding to the abnormality cause is determined, the priority of the solution is calculated (the priority can be determined according to the use frequency of the solution), and the solution K before the priority is determined as the target solution, wherein the number of K can be 1 or more.
In at least one embodiment of the present invention, the determining the solution corresponding to the abnormality cause according to the mapping relationship between the preset abnormality cause and the solution includes: when the mapping relation between the preset abnormal reasons and the solutions is one-to-many, determining a plurality of solutions corresponding to the abnormal reasons; reconstructing the target virtual machine according to the solutions respectively; operating the reconstructed target virtual machine to obtain updated operation parameters; and determining an optimal solution according to the updated operation parameters. Wherein the solution may include a deployment of model parameters, etc. It can be understood that when the operation of the target virtual machine is abnormal, the operation of the physical air conditioner corresponding to the target virtual machine is also abnormal. By determining the optimal solution by firstly checking the reliability of the target virtual machine, the efficiency of debugging the entity air conditioner can be improved.
The embodiment of the invention provides a virtual test method, which comprises the following steps: receiving and analyzing a test request, wherein the test request comprises air conditioner model information; determining a target test scheme according to the air conditioner model information, wherein the target test scheme comprises an address and model parameters of a virtual machine; determining a target virtual machine in the virtual machine integrated equipment according to the address and the model parameters; operating the target virtual machine to obtain operation parameters; judging whether the air conditioner operates abnormally or not according to the operation parameters; and when the judging result is that the air conditioner is abnormal in operation, acquiring the reason of the abnormal operation of the air conditioner, and determining a solution according to the reason. By utilizing the method and the device, the simulation operation of the air conditioning system is realized through the target virtual machine, the abnormal operation condition of the air conditioning system can be tested, and the efficiency of air conditioning test is improved.
The foregoing is a detailed description of the methods provided by embodiments of the present invention. The order of execution of the blocks in the flowchart illustrated may be changed, and some blocks may be omitted, depending on the particular needs. The computer device 1 provided by the embodiment of the present invention is described below.
The embodiment of the present invention further provides a computer device 1, including a memory 10, a processor 30, and a computer program stored in the memory 10 and capable of running on the processor 30, where the steps of the virtual testing method described in any of the foregoing embodiments are implemented when the processor 30 executes the program.
Fig. 2 is a schematic structural diagram of a computer device according to an embodiment of the present invention, and as shown in fig. 2, the computer device 1 includes a memory 10, and the virtual testing apparatus 100 is stored in the memory 10. The virtual test apparatus 100 may receive and parse a test request including air conditioner model information; determining a target test scheme according to the air conditioner model information, wherein the target test scheme comprises an address and model parameters of a virtual machine; determining a target virtual machine in the virtual machine integrated equipment according to the address and the model parameters; operating the target virtual machine to obtain operation parameters; judging whether the air conditioner operates abnormally or not according to the operation parameters; and when the judging result is that the air conditioner is abnormal in operation, acquiring the reason of the abnormal operation of the air conditioner, and determining a solution according to the reason. By utilizing the method and the device, the simulation operation of the air conditioning system is realized through the target virtual machine, the abnormal operation condition of the air conditioning system can be tested, and the efficiency of air conditioning test is improved.
In this embodiment, the computer device 1 may further include a display 20 and a processor 30. The memory 10 and the display 20 may be electrically connected to the processor 30, respectively.
The memory 10 may be a different type of storage device for storing various types of data. For example, the memory may be a storage or a memory of the computer device 1, or may be a memory card that may be externally connected to the computer device 1, such as a flash memory, an SM card (SMART MEDIA CARD, a smart media card), an SD card (Secure DIGITAL CARD, a Secure digital card), or the like. In addition, memory 10 may include non-volatile memory, such as a hard disk, memory, a plug-in hard disk, a smart memory card (SMART MEDIA CARD, SMC), a Secure Digital (SD) card, a flash memory card (FLASH CARD), at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. The memory 10 is used for storing various kinds of data, such as various kinds of application programs (Applications) installed in the computer device 1, data set and acquired by applying the above-described virtual test method, and the like.
A display screen 20 is mounted to the computer device 1 for displaying information.
The processor 30 is configured to execute the virtual test method and various software installed in the computer device 1, such as an operating system and application display software. The processor 30 includes, but is not limited to, a processor (Central Processing Unit, CPU), a micro-control unit (Micro Controller Unit, MCU), etc. for interpreting the computer and processing the data in the computer software.
The virtual testing apparatus 100 may include one or more modules that are stored in the memory 10 of the computer device 1 and configured to be executed by one or more processors (one processor 30 in this embodiment) to complete the embodiment of the present invention. For example, referring to fig. 3, the virtual testing apparatus 100 may include a request receiving module 101, a scheme determining module 102, a virtual machine determining module 103, a virtual machine running module 104, an anomaly judging module 105, and an anomaly determining module 106. Modules referred to in the embodiments of the present invention may be program segments, which perform a particular function and are more suited to describing software execution within the processor 30 than programs.
It will be appreciated that, corresponding to each of the embodiments of the virtual test method described above, the computer device 1 may include some or all of the functional modules shown in fig. 3, and the functions of each module will be described in detail below. It should be noted that the same noun related noun and its specific explanation in each embodiment of the virtual testing method described above may also be applied to the following functional description of each module. For the sake of space saving and repetition avoidance, the description is omitted.
The request receiving module 101 may be configured to receive and parse a test request, where the test request includes air conditioner model information.
The solution determining module 102 may be configured to determine a target test solution according to the air conditioner model information, where the target test solution includes an address and model parameters of the virtual machine.
The virtual machine determining module 103 may be configured to determine a target virtual machine in the virtual machine integrated device according to the address and the model parameter.
The virtual machine operation module 104 may be configured to operate the target virtual machine to obtain an operation parameter.
The abnormality determination module 105 may be configured to determine whether the air conditioner is abnormal in operation according to the operation parameter.
The abnormality determination module 106 may acquire a cause of the air-conditioning operation abnormality when the determination result is the air-conditioning operation abnormality, and determine a solution according to the cause.
The present embodiment also provides a computer readable storage medium having stored thereon a computer program which, when executed by the processor 30, implements the steps of the virtual test method in any of the above embodiments.
The modules/units of the virtual test apparatus 100/computer device 1/computer device integration may be stored in a computer readable storage medium if implemented in the form of software functional units and sold or used as a stand alone product. Based on such understanding, the present invention may implement all or part of the flow of the method of the foregoing embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and the computer program may implement the steps of each of the foregoing method embodiments when executed by the processor 30. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable storage medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), or the like.
The Processor 30 may be a central processing unit (Central Processing Unit, CPU), other general purpose Processor, digital signal Processor (DIGITAL SIGNAL Processor, DSP), application SPECIFIC INTEGRATED Circuit (ASIC), field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, and the processor 30 is a control center of the virtual test apparatus 100/computer device 1, and connects the respective parts of the entire virtual test apparatus 100/computer device 1 using various interfaces and lines.
The memory 10 is used for storing the computer program and/or the module, and the processor 30 implements various functions of the virtual test apparatus 100/computer device 1 by running or executing the computer program and/or the module stored in the memory 10 and invoking data stored in the memory 10. The memory 10 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required for at least one function, and the like; the storage data area may store data created according to the use of the computer device 1, such as audio data, and the like.
In the several embodiments provided herein, it should be understood that the disclosed computer apparatus and methods may be implemented in other ways. For example, the system embodiments described above are merely illustrative, e.g., the division of the modules is merely a logical function division, and other manners of division may be implemented in practice.
It will be evident to those skilled in the art that the embodiments of the invention are not limited to the details of the foregoing illustrative embodiments, and that the embodiments of the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics thereof. The present embodiments are, therefore, to be considered in all respects as illustrative and not restrictive, the scope of embodiments being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. A plurality of units, modules or means recited in a system, means or computer device claim may also be implemented by means of software or hardware by means of the same unit, module or means.
The foregoing embodiments are merely for illustrating the technical solution of the embodiment of the present invention, but not for limiting the same, although the embodiment of the present invention has been described in detail with reference to the foregoing preferred embodiments, it will be understood by those skilled in the art that modifications and equivalent substitutions may be made to the technical solution of the embodiment of the present invention without departing from the spirit and scope of the technical solution of the embodiment of the present invention.

Claims (10)

1. The virtual test method is applied to an air conditioner test system, wherein the air conditioner test system comprises air conditioner main control equipment and virtual machine integrated equipment, and is characterized by comprising the following steps:
Receiving and analyzing a test request, wherein the test request comprises air conditioner model information;
Determining a target test scheme according to the air conditioner model information, wherein the target test scheme comprises an address and model parameters of a virtual machine;
Determining a target virtual machine in the virtual machine integrated device according to the address and the model parameter, including: training an initial virtual machine through model parameters corresponding to the air conditioner model information to obtain the target virtual machine;
operating the target virtual machine to obtain operation parameters;
judging whether the air conditioner operates abnormally or not according to the operation parameters;
And when the judging result is that the air conditioner is abnormal in operation, acquiring the reason of the abnormal operation of the air conditioner, and determining a solution according to the reason.
2. The virtual testing method of claim 1, wherein the determining a target virtual machine in the virtual machine integrated device from the address and the model parameters comprises:
Acquiring a first address of a virtual machine carried by the target test scheme;
acquiring a second address of a virtual machine in the virtual machine integrated equipment;
determining the initial virtual machine according to the first address and the second address;
and training the initial virtual machine according to the model parameters to obtain the target virtual machine.
3. The virtual testing method of claim 1, wherein the method further comprises:
when the number of the target virtual machines is a plurality of, determining the number of the target virtual machines;
starting a corresponding number of sub threads according to the number of the target virtual machines;
and calling the sub-threads to run the target virtual machine in parallel to obtain the running parameters.
4. The virtual test method of claim 1, wherein the determining whether the air conditioner is abnormally operated according to the operation parameter comprises:
acquiring a target operation parameter of the target virtual machine in normal operation;
determining a normal operation parameter range of the air conditioner according to the target operation parameter;
Judging whether the operating parameters meet the normal operating parameter range or not;
and when the operation parameters do not meet the normal operation parameter range as a result of the judgment, determining that the air conditioner is abnormal in operation.
5. The virtual testing method of claim 4, wherein after the operating parameter does not meet the normal operating parameter range, the method further comprises:
determining a number of abnormal operating parameters that do not meet the normal operating parameter range;
Determining the abnormal degree of the operation of the air conditioner according to the quantity;
detecting whether the abnormality degree exceeds a preset abnormality degree threshold;
and outputting an alarm prompt corresponding to the abnormal degree when the abnormal degree exceeds a preset abnormal degree threshold as a detection result.
6. The virtual testing method of claim 4, wherein the obtaining a cause of an air conditioner operation abnormality and determining a solution based on the cause comprises:
acquiring abnormal operation parameters which do not meet the normal operation parameter range;
Determining an abnormal reason corresponding to the abnormal operation parameter according to a mapping relation between the preset operation parameter and the abnormal reason;
And determining a solution corresponding to the abnormality reason according to the mapping relation between the preset abnormality reason and the solution.
7. The virtual testing method of claim 6, wherein the determining the solution corresponding to the abnormality cause according to the mapping relationship between the preset abnormality cause and the solution comprises:
When the mapping relation between the preset abnormal reasons and the solutions is one-to-many, determining a plurality of solutions corresponding to the abnormal reasons;
reconstructing the target virtual machine according to the solutions respectively;
operating the reconstructed target virtual machine to obtain updated operation parameters;
And determining an optimal solution according to the updated operation parameters.
8. A virtual testing apparatus for use in an air conditioning system, the virtual testing apparatus comprising:
the request receiving module is used for receiving and analyzing a test request, wherein the test request comprises air conditioner model information;
The scheme determining module is used for determining a target test scheme according to the air conditioner model information, wherein the target test scheme comprises an address of a virtual machine and model parameters;
The virtual machine determining module is configured to determine a target virtual machine in a virtual machine integrated device according to the address and the model parameter, and includes: training an initial virtual machine through model parameters corresponding to the air conditioner model information to obtain the target virtual machine;
the virtual machine operation module is used for operating the target virtual machine to obtain operation parameters;
the abnormality judging module is used for judging whether the air conditioner operates abnormally or not according to the operation parameters;
and the abnormality determination module is used for acquiring the reason of the abnormal operation of the air conditioner when the judgment result is that the operation of the air conditioner is abnormal, and determining a solution according to the reason.
9. A computer device, characterized in that it comprises a processor for implementing the virtual test method according to any one of claims 1 to 7 when executing a computer program stored in a memory.
10. A computer readable storage medium having stored thereon a computer program, which when executed by a processor implements the virtual test method according to any of claims 1 to 7.
CN202010346139.7A 2020-04-27 2020-04-27 Virtual testing method, virtual testing device and related equipment Active CN113641444B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010346139.7A CN113641444B (en) 2020-04-27 2020-04-27 Virtual testing method, virtual testing device and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010346139.7A CN113641444B (en) 2020-04-27 2020-04-27 Virtual testing method, virtual testing device and related equipment

Publications (2)

Publication Number Publication Date
CN113641444A CN113641444A (en) 2021-11-12
CN113641444B true CN113641444B (en) 2024-06-07

Family

ID=78415177

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010346139.7A Active CN113641444B (en) 2020-04-27 2020-04-27 Virtual testing method, virtual testing device and related equipment

Country Status (1)

Country Link
CN (1) CN113641444B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118391788A (en) * 2024-03-27 2024-07-26 浙江新奥兰汽车空调有限公司 Air conditioner testing method, system, electronic equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101113942A (en) * 2006-07-26 2008-01-30 珠海格力电器股份有限公司 Automatic testing device and method for air conditioner controller
AU2013219146A1 (en) * 2008-07-22 2013-09-05 Siemens Industry, Inc. The development, test, and demonstration of automation solutions using web-based virtual computers and VPN tunneling
CN103580960A (en) * 2013-11-19 2014-02-12 佛山市络思讯环保科技有限公司 Online pipe network anomaly detection system based on machine learning
CN104765356A (en) * 2015-02-09 2015-07-08 珠海格力电器股份有限公司 Air conditioner after-sale fault data processing method and system
CN105258963A (en) * 2015-10-26 2016-01-20 珠海格力电器股份有限公司 Air conditioning unit testing method, device and system
US9436491B1 (en) * 2015-04-30 2016-09-06 Accelstor, Inc. Computer system and method for testing hardware device based on virtual machine
WO2019070790A1 (en) * 2017-10-04 2019-04-11 Trustees Of Tufts College Systems and methods for ensuring safe, norm-conforming and ethical behavior of intelligent systems
CN110673585A (en) * 2019-10-15 2020-01-10 新誉轨道交通科技有限公司 Test method, test device and test system for train air conditioning system
CN110762769A (en) * 2019-11-04 2020-02-07 珠海格力电器股份有限公司 Unit debugging method and device, debugging equipment, medium and air conditioning system
CN110953690A (en) * 2019-12-23 2020-04-03 珠海格力电器股份有限公司 On-site debugging system and method for central air conditioner

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7716446B1 (en) * 2006-04-27 2010-05-11 Vmware, Inc. System and method for cooperative virtual machine memory scheduling
CN105701012B (en) * 2015-12-30 2019-02-12 Oppo广东移动通信有限公司 A kind of parameter setting method and device
US10409632B2 (en) * 2017-03-31 2019-09-10 The Boeing Company Emulation of hardware components based on interrupt design
CN110567089B (en) * 2019-09-16 2021-03-09 珠海格力电器股份有限公司 Equipment management method and device for air conditioner energy efficiency ratio management and air conditioner system
CN110647075B (en) * 2019-09-26 2021-03-16 广东工业大学 Air conditioner electric control board temperature simulation detection device and system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101113942A (en) * 2006-07-26 2008-01-30 珠海格力电器股份有限公司 Automatic testing device and method for air conditioner controller
AU2013219146A1 (en) * 2008-07-22 2013-09-05 Siemens Industry, Inc. The development, test, and demonstration of automation solutions using web-based virtual computers and VPN tunneling
CN103580960A (en) * 2013-11-19 2014-02-12 佛山市络思讯环保科技有限公司 Online pipe network anomaly detection system based on machine learning
CN104765356A (en) * 2015-02-09 2015-07-08 珠海格力电器股份有限公司 Air conditioner after-sale fault data processing method and system
US9436491B1 (en) * 2015-04-30 2016-09-06 Accelstor, Inc. Computer system and method for testing hardware device based on virtual machine
CN105258963A (en) * 2015-10-26 2016-01-20 珠海格力电器股份有限公司 Air conditioning unit testing method, device and system
WO2019070790A1 (en) * 2017-10-04 2019-04-11 Trustees Of Tufts College Systems and methods for ensuring safe, norm-conforming and ethical behavior of intelligent systems
CN110673585A (en) * 2019-10-15 2020-01-10 新誉轨道交通科技有限公司 Test method, test device and test system for train air conditioning system
CN110762769A (en) * 2019-11-04 2020-02-07 珠海格力电器股份有限公司 Unit debugging method and device, debugging equipment, medium and air conditioning system
CN110953690A (en) * 2019-12-23 2020-04-03 珠海格力电器股份有限公司 On-site debugging system and method for central air conditioner

Also Published As

Publication number Publication date
CN113641444A (en) 2021-11-12

Similar Documents

Publication Publication Date Title
KR100950814B1 (en) System and method to accelerate identification of hardware platform classes
CN109884533B (en) Method and device for diagnosing battery fault, equipment and storage medium
CN109669798B (en) Crash analysis method, crash analysis device, electronic equipment and storage medium
CN113641444B (en) Virtual testing method, virtual testing device and related equipment
CN111023472B (en) Air conditioner detection method and device
CN106021046A (en) Hard disk performance comparison method, device and server
CN110837035A (en) Software and hardware testing system and method for air conditioning system
CN111090553B (en) Test system, test method and test device
CN109539646B (en) Refrigerant filling method, device, equipment and system
CN115111703B (en) Method, terminal and storage medium for detecting filth blockage of water-cooled air conditioner
CN112714152A (en) Display panel control method and device, display panel and marine air conditioner
CN115686978B (en) Aging test method and system and PCB
CN109710521B (en) Multimedia application performance test method and device, computer equipment and storage medium
CN109506322B (en) Air conditioner parameter display method and device, machine room air conditioning system and computer equipment
CN111504673A (en) Fault diagnosis method and system for water chilling unit and air conditioner
CN113639418A (en) Air conditioner debugging method, air conditioner debugging device and related equipment
CN111291239B (en) Method, device, equipment and storage medium for testing unit
CN115185819A (en) System testing method, device, equipment and computer readable storage medium
CN111076373A (en) Display method, display device, terminal and readable storage medium
CN112286573B (en) Method, device and system for modifying configuration parameters of module controller
CN111240963B (en) Information display method and device for software defects, electronic equipment and storage medium
CN114312213A (en) Refrigerant capacity abnormality prediction method, apparatus, device and medium for vehicle
CN114328063A (en) Simulation method and device based on mapping mechanism and electronic equipment
CN112509178A (en) Automobile fault information display method and device, terminal equipment and storage medium
CN110987448A (en) Engine air inlet state monitoring method, device and equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant