CN113434421A - Virtual equipment testing method and device - Google Patents

Virtual equipment testing method and device Download PDF

Info

Publication number
CN113434421A
CN113434421A CN202110738157.4A CN202110738157A CN113434421A CN 113434421 A CN113434421 A CN 113434421A CN 202110738157 A CN202110738157 A CN 202110738157A CN 113434421 A CN113434421 A CN 113434421A
Authority
CN
China
Prior art keywords
instruction
equipment
control instruction
virtual
testing
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.)
Granted
Application number
CN202110738157.4A
Other languages
Chinese (zh)
Other versions
CN113434421B (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.)
Qingdao Haier Technology Co Ltd
Haier Smart Home Co Ltd
Original Assignee
Qingdao Haier Technology Co Ltd
Haier Smart Home 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 Qingdao Haier Technology Co Ltd, Haier Smart Home Co Ltd filed Critical Qingdao Haier Technology Co Ltd
Priority to CN202110738157.4A priority Critical patent/CN113434421B/en
Publication of CN113434421A publication Critical patent/CN113434421A/en
Application granted granted Critical
Publication of CN113434421B publication Critical patent/CN113434421B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • 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/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30094Condition code generation, e.g. Carry, Zero flag

Abstract

The invention discloses a method and a device for testing virtual equipment. Wherein, the method comprises the following steps: acquiring a control instruction, wherein the control instruction is an instruction issued by an application end and used for controlling the testing of virtual equipment, and the virtual equipment is equipment generated based on real equipment; responding to the control instruction, and testing the virtual equipment by using the test information containing the logic rule to obtain a test result; and feeding back the test result to the application terminal, wherein the test result is obtained by the test method of the virtual equipment provided by the embodiment of the invention. The invention solves the technical problem of lower reliability in a mode of replacing real equipment with virtual equipment to shorten debugging period in the product research and development process in the related technology.

Description

Virtual equipment testing method and device
Technical Field
The invention relates to the field of equipment simulation application, in particular to a method and a device for testing virtual equipment.
Background
In the research and development process of a new product, the functions of an electric control board of the product need to be developed, and the applications such as matched development, adaptive APP interface interactive display, voice interactive control and the like also need to be realized. When the application and the electric control board simultaneously start the development process, the application side cannot test and verify the control command and the state interaction data based on the real product, and the time to market of the product is inevitably delayed.
In addition, if the interaction mechanism and the corresponding result of the virtual device are greatly different from those of the real device, the virtual device cannot replace the real device in the product development process so as to shorten the debugging period.
In view of the above problem in the related art that the reliability is low in a manner that a virtual device replaces a real device in a product development process to shorten a debugging period, an effective solution is not proposed at present.
Disclosure of Invention
The embodiment of the invention provides a test method and a test device for virtual equipment, which are used for at least solving the technical problem of lower reliability in a mode of replacing real equipment with virtual equipment to shorten debugging period in the product research and development process in the related art.
According to an aspect of the embodiments of the present invention, there is provided a method for testing a virtual device, including: acquiring a control instruction, wherein the control instruction is an instruction issued by an application end and used for controlling the testing of the virtual equipment, and the virtual equipment is equipment generated based on real equipment; responding to the control instruction, and testing the virtual equipment by using test information containing logic rules to obtain a test result; and feeding back the test result to the application terminal.
Optionally, before testing the virtual device by using the test information containing the logic rule, the method for testing the virtual device further includes: generating the test information based on the functional attribute of the real equipment; transmitting the test information to the virtual device to store the test information with the virtual device.
Optionally, in response to the control instruction, testing the virtual device by using test information including a logic rule, where the testing includes: acquiring a device function model of the real device; when judging whether the function attribute of the control instruction is within the range of the equipment function model based on the equipment function model, obtaining a first judgment result; when the first judgment result shows that the function attribute of the control instruction is not in the range of the equipment function model, generating a first instruction, and feeding back the first instruction to the application end, wherein the first instruction is used for indicating that the function attribute of the control instruction is not in the range of the equipment function model; and when the first judgment result shows that the function attribute of the control instruction is within the range of the equipment function model, acquiring an actual control value of the control instruction, and testing the virtual equipment by using the actual control value and the equipment function model.
Optionally, the testing the virtual device by using the actual control value and the device function model includes: judging whether the actual control value is in a first value range corresponding to the function attribute of the real equipment or not based on the equipment function model to obtain a second judgment result; when the second judgment result indicates that the actual control value is not in the first value range corresponding to the functional attribute of the real device, generating a second instruction, and feeding the second instruction back to the application end, wherein the second instruction is used for indicating that the actual control value is not in the first value range corresponding to the functional attribute of the real device; and when the second judgment result shows that the actual control value is within a first value range corresponding to the functional attribute of the real equipment, testing the virtual equipment by using a logic rule in the test information.
Optionally, the testing the virtual device by using the logic rule in the test information includes: judging whether the virtual equipment generates interference on other functional attributes of the virtual equipment after executing the control instruction based on the logic rule to obtain a third judgment result, wherein the other functional attributes are functional attributes of all the functional attributes of the virtual equipment except for the functional attribute corresponding to the control instruction; when the third judgment result indicates that the virtual device interferes with other functional attributes of the virtual device after executing the control instruction, feeding back the current state of the functional attribute corresponding to the control instruction and the current state of the interfered attribute in the other functional attributes to the application end; and when the third judgment result shows that the virtual equipment does not interfere with other functional attributes of the virtual equipment after executing the control instruction, feeding back the current state of the functional attribute corresponding to the control instruction to the application end.
Optionally, the testing the virtual device by using the test information including the logic rule to obtain a test result, including: acquiring a mutual exclusion rule in the test information; judging whether the control instruction is an executable instruction or not based on the mutual exclusion rule to obtain a fourth judgment result; when the fourth judgment result shows that the control instruction is an executable instruction, adjusting the current function attribute state of the virtual equipment based on the control instruction, obtaining the adjusted current function attribute state after adjusting the current function attribute state of the virtual equipment, and feeding back the adjusted current function attribute state to an application end; and when the fourth judgment result shows that the control instruction is a non-executable instruction, generating a third instruction, and feeding the third instruction back to the application end, wherein the third instruction is used for indicating that the control instruction is the non-executable instruction.
Optionally, the method for testing the virtual device further includes: when the fourth judgment result shows that the control instruction is an unexecutable instruction, acquiring a mutex solving rule in the test information, and acquiring limiting information which enables the control instruction to be an unexecutable instruction; judging whether the limitation information can be eliminated or not according to the mutual exclusion solving rule to obtain a fifth judgment result; when the fifth judgment result shows that the limitation information can be eliminated, eliminating the limitation information and executing the control command; and when the fifth judgment result shows that the limitation information can be eliminated, generating a fourth instruction and feeding the fourth instruction back to the application end, wherein the fourth instruction is used for indicating that the limitation information is the limitation information which can not be eliminated.
According to another aspect of the embodiments of the present invention, there is provided a testing apparatus for a virtual device, including: the device comprises a first acquisition module, a second acquisition module and a control module, wherein the first acquisition module is used for acquiring a control instruction, the control instruction is issued by an application end and used for controlling the test of the virtual equipment, and the virtual equipment is equipment generated based on real equipment; the response module is used for responding to the control instruction and testing the virtual equipment by using test information containing a logic rule to obtain a test result; and the first feedback module is used for feeding back the test result to the application end.
Optionally, the testing apparatus of the virtual device further includes: the generating module is used for generating the testing information based on the functional attribute of the real equipment before testing the virtual equipment by utilizing the testing information containing the logic rule; and the transmission module is used for transmitting the test information to the virtual equipment so as to store the test information by using the virtual equipment.
Optionally, the response module includes: a first obtaining unit, configured to obtain an apparatus function model of the real apparatus; the first value taking unit is used for obtaining a first judgment result when judging whether the function attribute of the control instruction is in the range of the equipment function model based on the equipment function model; a first generating unit, configured to generate a first instruction and feed back the first instruction to the application terminal when the first determination result indicates that the function attribute of the control instruction is not within the range of the device function model, where the first instruction is used to indicate that the function attribute of the control instruction is not within the range of the device function model; and the testing unit is used for acquiring an actual control value of the control instruction when the first judgment result shows that the function attribute of the control instruction is within the range of the equipment function model, and testing the virtual equipment by using the actual control value and the equipment function model.
Optionally, the test unit includes: a determining subunit, configured to determine, based on the device function model, whether the actual control value is within a first value range corresponding to the function attribute of the real device, to obtain a second determination result; a generating subunit, configured to generate a second instruction and feed back the second instruction to the application end when the second determination result indicates that the actual control value is not within a first value range corresponding to the functional attribute of the real device, where the second instruction is used to indicate that the actual control value is not within the first value range corresponding to the functional attribute of the real device; and the testing subunit is configured to, when the second determination result indicates that the actual control value is within a first value range corresponding to the functional attribute of the real device, test the virtual device by using a logic rule in the test information.
Optionally, the test subunit includes: a value taking subunit, configured to determine, based on the logic rule, whether the virtual device interferes with other function attributes of the virtual device after executing the control instruction, so as to obtain a third determination result, where the other function attributes are function attributes of all the function attributes of the virtual device except for a function attribute corresponding to the control instruction; a first feedback subunit, configured to, when the third determination result indicates that the virtual device performs the control instruction and interferes with other function attributes of the virtual device, feed back a current state of a function attribute corresponding to the control instruction and a current state of an interfered attribute of the other function attributes to the application end; and the second feedback subunit is configured to, when the third determination result indicates that the virtual device does not interfere with other functional attributes of the virtual device after executing the control instruction, feed back the current state of the functional attribute corresponding to the control instruction to the application terminal.
Optionally, the response module includes: the second acquisition unit is used for acquiring the mutual exclusion rule in the test information; the second value taking unit is used for judging whether the control instruction is an executable instruction or not based on the mutual exclusion rule to obtain a fourth judgment result; an adjusting unit, configured to adjust a current function attribute state of the virtual device based on the control instruction when the fourth determination result indicates that the control instruction is an executable instruction, obtain the adjusted current function attribute state after adjusting the current function attribute state of the virtual device, and feed back the adjusted current function attribute state to an application end; and a second generating unit, configured to generate a third instruction and feed the third instruction back to the application end when the fourth determination result indicates that the control instruction is an unexecutable instruction, where the third instruction is used to indicate that the control instruction is an unexecutable instruction.
Optionally, the testing apparatus of the virtual device further includes: a second obtaining module, configured to, when the fourth determination result indicates that the control instruction is an unexecutable instruction, obtain a mutex solving rule in the test information, and obtain restriction information that makes the control instruction be an unexecutable instruction; the value taking module is used for judging whether the limitation information can be eliminated or not according to the mutual exclusion solving rule to obtain a fifth judgment result; an execution module, configured to, when the fifth determination result indicates that the restriction information can be eliminated, eliminate the restriction information and execute the control instruction; and a second feedback module, configured to generate a fourth instruction and feed the fourth instruction back to the application terminal when the fifth determination result indicates that the limitation information is eliminable, where the fourth instruction is used to indicate that the limitation information is non-eliminable limitation information.
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium including a stored program, wherein the program executes a method for testing a virtual device described in any one of the above.
According to another aspect of the embodiments of the present invention, there is provided a test system for a virtual device, including a memory and a processor, where the memory stores therein a computer program, and the processor is configured to execute the test method for a virtual device according to any one of the above items by using the computer program.
In the embodiment of the invention, a control instruction is obtained, wherein the control instruction is an instruction which is issued by an application end and used for controlling the test of virtual equipment, and the virtual equipment is equipment generated based on real equipment; responding to the control instruction, and testing the virtual equipment by using the test information containing the logic rule to obtain a test result; the test result is fed back to the application end, and the test method of the virtual equipment provided by the embodiment of the invention achieves the purpose of testing the virtual equipment by using the test information containing the logic rule, thereby realizing the technical effect of improving the test verification reliability of the virtual equipment, and further solving the technical problem of lower reliability in a mode of replacing real equipment with the virtual equipment to shorten the debugging period in the product research and development process in the related technology.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a hardware configuration of a computer terminal of a method for testing virtual devices according to an embodiment of the present invention;
FIG. 2 is a flow chart of a method for testing a virtual device according to an embodiment of the present invention;
FIG. 3 is a flow chart of an alternative method of testing a virtual appliance, according to an embodiment of the invention;
FIG. 4 is a flow chart of a method for testing a virtual device according to an embodiment of the present invention;
fig. 5 is a schematic diagram of a testing apparatus of a virtual device according to an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Because the virtual device replaces the real device in the product development process, the debugging period is shortened, but if the interaction mechanism and the response result of the virtual device are compared with the difference of the real device, the purpose cannot be achieved. The existing virtual equipment uses the function list as a data source to carry out equipment simulation, meets the debugging requirement of application to a certain extent, but has low test reliability because AUI and GUI related logic are not involved.
Aiming at the problems, the testing method of the virtual equipment provided by the invention introduces the incidence relation of the functional attributes, the constraint rule of the functional attributes, the mutual exclusion rule of the functional attributes and the mutual exclusion solving rule of the functional attributes into the operation process of the virtual equipment, so that the problem of the authenticity of the virtual equipment can be well solved.
The following describes a method and an apparatus for testing a virtual device according to an embodiment of the present invention with reference to a specific embodiment.
The method provided by the embodiment of the invention can be executed in a computer terminal, a computer terminal or a similar arithmetic device. Taking an example of the test method running on a computer terminal, fig. 1 is a hardware structure block diagram of a computer terminal of the test method of a virtual device according to the embodiment of the present invention. As shown in fig. 1, the computer terminal may include one or more (only one shown in fig. 1) processors 102 (the processors 102 may include, but are not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, and in an exemplary embodiment, may also include a transmission device 106 for communication functions and an input-output device 108. It will be understood by those skilled in the art that the structure shown in fig. 1 is only an illustration and is not intended to limit the structure of the computer terminal. For example, the computer terminal may also include more or fewer components than shown in FIG. 1, or have a different configuration with equivalent functionality to that shown in FIG. 1 or with more functionality than that shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program and a module of application software, such as a computer program corresponding to the testing method of the virtual device in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, so as to implement the method described above. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to a computer terminal over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal. In one example, the transmission device 106 includes a Network adapter (NIC), which can be connected to other Network devices through a base station so as to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is used for communicating with the internet in a wireless manner.
In accordance with an embodiment of the present invention, there is provided a method embodiment of a method for testing virtual devices, it being noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer-executable instructions and that, although a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than presented herein.
Fig. 2 is a flowchart of a testing method of a virtual device according to an embodiment of the present invention, and as shown in fig. 2, the testing method of the virtual device includes the following steps:
step S202, a control instruction is obtained, wherein the control instruction is an instruction issued by an application end and used for controlling the testing of virtual equipment, and the virtual equipment is equipment generated based on real equipment.
Optionally, the source of the control instruction is mainly the application side, that is, the control instruction is obtained from the application side.
Step S204, responding to the control instruction, testing the virtual equipment by using the test information containing the logic rule to obtain a test result.
Step S206, the test result is fed back to the application terminal.
As can be seen from the above, in this embodiment, a control instruction may be first obtained, where the control instruction is an instruction issued by an application end and used for controlling testing of virtual equipment, and the virtual equipment is equipment generated based on real equipment; responding to the control instruction, and testing the virtual equipment by using the test information containing the logic rule to obtain a test result; and finally, the test result is fed back to the application end, so that the aim of testing the virtual equipment by using the test information containing the logic rule is fulfilled, and the technical effect of improving the test verification reliability of the virtual equipment is realized.
Therefore, the test method of the virtual device provided by the embodiment of the invention solves the technical problem of low reliability in a mode of replacing real equipment with the virtual device to shorten debugging period in the product research and development process in the related technology.
Optionally, before testing the virtual device by using the test information containing the logic rule, the method for testing the virtual device further includes: generating test information based on the functional attributes of the real equipment; and transmitting the test information to the virtual equipment so as to store the test information by using the virtual equipment.
In this embodiment, test information for performing product testing may be generated according to the functional attributes of the real device; next, in the embodiment of the present invention, the virtual device corresponding to the real device is tested to shorten a product development cycle, so that the test information needs to be sent to the virtual device, so that the virtual device can perform a test based on the test information.
As an optional embodiment, in the embodiment of the present invention, a method for testing a virtual device is provided, fig. 3 is a flowchart of the method for testing an optional virtual device according to the embodiment of the present invention, and as shown in fig. 3, it describes in detail "in response to the control instruction, the virtual device is tested by using test information including a logic rule" in the step S204, and specifically includes the following steps:
step S302, acquiring a device function model of the real device.
Alternatively, the above functional model may be a mathematical model describing all the calculations of the system. And also into dynamic models and object models.
Step S304, when judging whether the function attribute of the control instruction is in the range of the equipment function model based on the equipment function model, obtaining a first judgment result.
Step S306, when the first judgment result shows that the function attribute of the control instruction is not in the range of the device function model, generating a first instruction, and feeding the first instruction back to the application end, wherein the first instruction is used for indicating that the function attribute of the control instruction is not in the range of the device function model.
And step S308, when the first judgment result shows that the function attribute of the control instruction is within the range of the equipment function model, acquiring an actual control value of the control instruction, and testing the virtual equipment by using the actual control value and the equipment function model.
In the embodiment of the invention, the device function model of the real device can be obtained firstly; then, when judging whether the function attribute of the control instruction is within the range of the equipment function model based on the equipment function model, obtaining a first judgment result; then when the first judgment result shows that the functional attribute of the control instruction is not in the range of the equipment functional model, generating a first instruction, and feeding the first instruction back to the application end, wherein the first instruction is used for indicating that the functional attribute of the control instruction is not in the range of the equipment functional model; and finally, when the first judgment result shows that the function attribute of the control instruction is within the range of the equipment function model, acquiring the actual control value of the control instruction, and testing the virtual equipment by using the actual control value and the equipment function model, so that the aim of testing the virtual equipment by using the test information containing the logic rule is fulfilled, and the technical effect of improving the test and verification reliability of the virtual equipment is realized.
Therefore, in the embodiment of the present invention, whether the function attribute of the control instruction is within the range of the device function model can be determined according to the device function model of the product, and if the function attribute of the control instruction is not within the defined range, an invalid command (i.e., a first instruction) is returned to the application end.
In the above embodiment, the testing the virtual device by using the actual control value and the device function model includes: judging whether the actual control value is in a first value range corresponding to the functional attribute of the real equipment or not based on the equipment functional model to obtain a second judgment result; when the second judgment result shows that the actual control value is not in the first value range corresponding to the functional attribute of the real equipment, generating a second instruction, and feeding the second instruction back to the application end, wherein the second instruction is used for indicating that the actual control value is not in the first value range corresponding to the functional attribute of the real equipment; and when the second judgment result shows that the actual control value is in the first value range corresponding to the functional attribute of the real equipment, testing the virtual equipment by using the logic rule in the test information.
It should be noted that, as an alternative embodiment, the functional attribute has a certain association relationship, and the specific operation is represented by adjusting an association state, such as a temperature attribute, some devices need to define and set a target temperature and a current temperature for the temperature attribute during modeling, the set target temperature is a temperature value to be reached by the application-side setting device, and the current temperature is a temperature value which is detected by the device and is currently reached, and is generally realized by a temperature sensor. The virtual equipment cannot simulate the sensor, and the current state of the virtual equipment is reflected more truly by setting the functional attribute incidence relation on the open platform when a product is created, and linearly adjusting or jumping at intervals to adjust the current temperature when the target temperature is set.
Optionally, the testing the virtual device by using the logic rule in the test information includes: judging whether the virtual equipment generates interference on other functional attributes of the virtual equipment after executing the control instruction based on the logic rule to obtain a third judgment result, wherein the other functional attributes are functional attributes of all the functional attributes of the virtual equipment except for the functional attribute corresponding to the control instruction; when the third judgment result shows that the virtual equipment generates interference on other functional attributes of the virtual equipment after executing the control instruction, the current state of the functional attribute corresponding to the control instruction and the current state of the interfered attribute in the other functional attributes are fed back to the application end; and when the third judgment result shows that the virtual equipment does not interfere with other functional attributes of the virtual equipment after executing the control instruction, feeding back the current state of the functional attribute corresponding to the control instruction to the application end.
It should be noted that, in the embodiment of the present invention, the logic constraint rule of the function attribute is specifically expressed as adjusting other function response modes and response ranges. The logic constraint rule is how to adjust other functional attributes when controlling the current functional attributes, for example, when the working mode of the equipment is adjusted to heating, the heating temperature is adjusted to 30-100 ℃ from-20 ℃ to 100 ℃ originally; when the working mode of the equipment is adjusted to refrigeration, the heating temperature is adjusted to-20-0 ℃.
Optionally, the testing the virtual device by using the test information including the logic rule to obtain a test result, including: acquiring a mutual exclusion rule in the test information; judging whether the control instruction is an executable instruction or not based on the mutual exclusion rule to obtain a fourth judgment result; when the fourth judgment result shows that the control instruction is an executable instruction, adjusting the current function attribute state of the virtual equipment based on the control instruction, obtaining the adjusted current function attribute state after adjusting the current function attribute state of the virtual equipment, and feeding back the adjusted current function attribute state to the application end; and when the fourth judgment result shows that the control instruction is the non-executable instruction, generating a third instruction, and feeding the third instruction back to the application end, wherein the third instruction is used for indicating that the control instruction is the non-executable instruction.
In this embodiment, the mutual exclusion rule of the function attribute is embodied as instruction mutual exclusion judgment. If the mode can not be set in the shutdown state, when the virtual equipment receives a control instruction of the setting mode in the shutdown state, an invalid command is returned according to the mutual exclusion rule, and the corresponding invalid description is that the operation can not be fed back to the application terminal in the shutdown state.
Optionally, the testing method of the virtual device further includes: when the fourth judgment result shows that the control instruction is the unexecutable instruction, acquiring the mutex solving rule in the test information, and acquiring the limiting information which enables the control instruction to be the unexecutable instruction; judging whether the limitation information can be eliminated or not according to the mutual exclusion solving rule to obtain a fifth judgment result; when the fifth judgment result shows that the limitation information can be eliminated, eliminating the limitation information and executing a control command; and when the fifth judgment result shows that the limitation information can be eliminated, generating a fourth instruction and feeding the fourth instruction back to the application end, wherein the fourth instruction is used for indicating that the limitation information is the limitation information which cannot be eliminated.
In this embodiment, the specific operation of the mutex solving rule of the functional attribute is to execute the instruction after the mutex solving process. The rule is for an interactive experience which does not need user participation, for example, the mutual exclusion solving rule is set to be in a power-off state, the temperature can be adjusted through voice, when the virtual equipment processes the power-off state and a voice platform tests and verifies semantics, the virtual equipment is firstly powered on, and then the temperature is set to be a down-sending control value.
A preferred embodiment of the present invention will be described in detail below with reference to the accompanying drawings. Fig. 4 is a flowchart of another optional method for testing a virtual device according to an embodiment of the present invention, and as shown in fig. 4, an application end first sends a control instruction to the virtual device, the virtual device starts to perform operation judgment after receiving the control instruction, and first judges whether a range of the control instruction exceeds a device function model according to the device function model, and if the range of the control instruction is not within a defined function attribute range, an invalid command is fed back to the application end; and if the functional attribute is within the defined functional attribute range, performing the next judgment.
Then, according to the equipment function model of the product, judging whether the actual control value controlled by the instruction is in the value range corresponding to the function attribute, and if not, returning an invalid command to the application end; if the current state is within the value range, continuing the next step, judging whether other functional attributes are influenced after the instruction is executed according to the logic rule, and if not, directly returning to the current state; if the logic rule corresponding to the control instruction is matched, after the virtual equipment executes the control instruction, the virtual equipment can adjust the influenced state of the influenced function attribute, adjust the value range of the influenced function attribute value and adjust the influenced logic of the influenced function attribute, finally returns to all the current states, judges whether the current instruction can be executed according to the mutual exclusion rule, and returns to the current state after changing the current function attribute state if the current instruction can be executed; if the execution cannot be carried out, an invalid command is returned and fed back to the application end, whether the execution failure in the mutual exclusion rule in the last step can be eliminated or not is judged according to the mutual exclusion solving rule, and if the execution failure can be eliminated, the limitation is removed first and then the application action is executed; if the virtual device can not be eliminated, an invalid command is returned and fed back to the application end, and finally the current function attribute state of the virtual device is reported to the application end.
It should be noted that, in the above alternative embodiment, the entire operation flow supports the state query, the alarm simulation trigger, and the query of the application.
Therefore, the method aims at the defects that the existing virtual equipment does not comprise logic rules, has large difference with real equipment and cannot achieve the expected debugging effect. In the embodiment of the invention, the contents of a device function model, a logic constraint file, a configuration file and the like are dynamically loaded when the virtual device is started by combining the device process of the development platform to simulate a more real actual product, so that a test effect based on the consistency of the real device and the virtual device in the development and debugging process of the application side is achieved, thereby more conveniently accelerating the joint debugging of the product and shortening the period of marketing of the product.
By the virtual equipment testing method provided by the embodiment of the invention, the application is developed and debugged and verified based on the virtual equipment, so that the development efficiency of the application side can be improved. The simultaneous development of the application and the electric control board is met, and the product testing period is shortened. On the basis that the virtual equipment performs simulation of equipment functions and data interaction by taking the equipment function list as a data source, AUI and GUI logic constraint rules are integrated into the operation process of the virtual equipment, so that real equipment is simulated more truly, and the test requirement and the verification effect in product development are achieved.
The embodiment of the present invention further provides a testing apparatus for a virtual device, and it should be noted that the testing apparatus for a virtual device in the embodiment of the present application may be used to execute the testing method for a virtual device provided in the embodiment of the present application. The following describes a test apparatus for virtual devices according to an embodiment of the present invention.
Fig. 5 is a schematic diagram of a testing apparatus for a virtual device according to an embodiment of the present invention, and as shown in fig. 5, the testing apparatus for a virtual device may include: a first obtaining module 51, a response module 53 and a first feedback module 55. The data blood relationship processing device will be explained below.
The first obtaining module 51 is configured to obtain a control instruction, where the control instruction is an instruction issued by an application end and used to control testing of a virtual device, and the virtual device is a device generated based on a real device.
The response module 53 is configured to respond to the control instruction, and test the virtual device by using the test information including the logic rule to obtain a test result.
And a first feedback module 55, configured to feed back the test result to the application end.
It should be noted here that the first obtaining module 51, the response module 53 and the first feedback module 55 correspond to steps S202 to S206 in the embodiment, and the modules are the same as the examples and application scenarios realized by the corresponding steps, but are not limited to the disclosure of the embodiment. It should be noted that the modules described above as part of an apparatus may be implemented in a computer system such as a set of computer-executable instructions.
As can be seen from the above, in the embodiment of the present invention, the first obtaining module 51 may be used to obtain a control instruction, where the control instruction is an instruction issued by an application end and used to control testing of virtual equipment, and the virtual equipment is equipment generated based on real equipment; the reuse response module 53 responds to the control instruction, and tests the virtual device by using the test information containing the logic rule to obtain a test result; finally, the first feedback module 55 is utilized to feed back the test result to the application end. By the testing device of the virtual equipment, the aim of testing the virtual equipment by using the testing information containing the logic rules is fulfilled, so that the technical effect of improving the testing and verifying reliability of the virtual equipment is realized, and the technical problem of lower reliability in a mode of replacing real equipment with the virtual equipment to shorten the debugging period in the product research and development process in the related art is solved.
Optionally, the testing apparatus of the virtual device further includes: the generating module is used for generating test information based on the functional attribute of the real equipment before testing the virtual equipment by using the test information containing the logic rule; and the transmission module is used for transmitting the test information to the virtual equipment so as to store the test information by using the virtual equipment.
Optionally, the response module includes: the first acquisition unit is used for acquiring an equipment function model of real equipment; the first value taking unit is used for obtaining a first judgment result when judging whether the function attribute of the control instruction is in the range of the equipment function model based on the equipment function model; the first generating unit is used for generating a first instruction and feeding the first instruction back to the application end when the first judgment result shows that the functional attribute of the control instruction is not in the range of the device functional model, wherein the first instruction is used for indicating that the functional attribute of the control instruction is not in the range of the device functional model; and the testing unit is used for acquiring the actual control value of the control instruction when the first judgment result shows that the function attribute of the control instruction is within the range of the equipment function model, and testing the virtual equipment by using the actual control value and the equipment function model.
Optionally, the test unit comprises: the judging subunit is configured to judge, based on the device function model, whether the actual control value is within a first value range corresponding to the function attribute of the real device, to obtain a second judgment result; the generating subunit is configured to generate a second instruction and feed back the second instruction to the application end when the second determination result indicates that the actual control value is not within the first value range corresponding to the functional attribute of the real device, where the second instruction is used to indicate that the actual control value is not within the first value range corresponding to the functional attribute of the real device; and the testing subunit is used for testing the virtual equipment by using the logic rule in the test information when the second judgment result indicates that the actual control value is within the first value range corresponding to the functional attribute of the real equipment.
Optionally, the test subunit comprises: the value taking subunit is configured to determine, based on the logic rule, whether the virtual device interferes with other functional attributes of the virtual device after executing the control instruction, and obtain a third determination result, where the other functional attributes are functional attributes of all the functional attributes of the virtual device except for a functional attribute corresponding to the control instruction; the first feedback subunit is configured to, when the third determination result indicates that the virtual device executes the control instruction and then interferes with other function attributes of the virtual device, feed back a current state including a current state of the function attribute corresponding to the control instruction and a current state of an interfered attribute of the other function attributes to the application end; and the second feedback subunit is configured to, when the third determination result indicates that the virtual device does not interfere with other functional attributes of the virtual device after executing the control instruction, feed back the current state of the functional attribute corresponding to the control instruction to the application end.
Optionally, the response module includes: the second acquisition unit is used for acquiring the mutual exclusion rule in the test information; the second value taking unit is used for judging whether the control instruction is an executable instruction or not based on the mutual exclusion rule to obtain a fourth judgment result; the adjusting unit is used for adjusting the current function attribute state of the virtual equipment based on the control instruction when the fourth judgment result shows that the control instruction is an executable instruction, acquiring the adjusted current function attribute state after adjusting the current function attribute state of the virtual equipment, and feeding back the adjusted current function attribute state to the application end; and the second generating unit is used for generating a third instruction when the fourth judgment result shows that the control instruction is the non-executable instruction, and feeding the third instruction back to the application end, wherein the third instruction is used for indicating that the control instruction is the non-executable instruction.
Optionally, the testing apparatus of the virtual device further includes: the second obtaining module is used for obtaining the mutex solving rule in the test information and obtaining the limiting information which enables the control instruction to be the unexecutable instruction when the fourth judgment result shows that the control instruction is the unexecutable instruction; the value taking module is used for judging whether the limitation information can be eliminated or not according to the mutual exclusion solving rule to obtain a fifth judgment result; the execution module is used for eliminating the limitation information and executing the control instruction when the fifth judgment result shows that the limitation information can be eliminated; and the second feedback module is used for generating a fourth instruction when the fifth judgment result shows that the limitation information can be eliminated, and feeding back the fourth instruction to the application end, wherein the fourth instruction is used for indicating that the limitation information is the limitation information which cannot be eliminated.
According to another aspect of the embodiments of the present invention, there is also provided a computer-readable storage medium including a stored program, wherein the program executes a method for testing a virtual device in any one of the above.
Alternatively, in the present embodiment, the storage medium may be configured to store program codes for performing the following steps: acquiring a control instruction, wherein the control instruction is an instruction issued by an application end and used for controlling the testing of virtual equipment, and the virtual equipment is equipment generated based on real equipment; responding to the control instruction, and testing the virtual equipment by using the test information containing the logic rule to obtain a test result; and feeding back the test result to the application terminal.
Alternatively, in the present embodiment, the storage medium may be configured to store program codes for performing the following steps: generating test information based on the functional attributes of the real equipment before testing the virtual equipment by using the test information containing the logic rules; and transmitting the test information to the virtual equipment so as to store the test information by using the virtual equipment.
Alternatively, in the present embodiment, the storage medium may be configured to store program codes for performing the following steps: acquiring a device function model of real equipment; when judging whether the function attribute of the control instruction is within the range of the equipment function model based on the equipment function model, obtaining a first judgment result; when the first judgment result shows that the functional attribute of the control instruction is not in the range of the equipment functional model, generating a first instruction, and feeding the first instruction back to the application end, wherein the first instruction is used for indicating that the functional attribute of the control instruction is not in the range of the equipment functional model; and when the first judgment result shows that the function attribute of the control instruction is within the range of the equipment function model, acquiring an actual control value of the control instruction, and testing the virtual equipment by using the actual control value and the equipment function model.
Alternatively, in the present embodiment, the storage medium may be configured to store program codes for performing the following steps: judging whether the actual control value is in a first value range corresponding to the functional attribute of the real equipment or not based on the equipment functional model to obtain a second judgment result; when the second judgment result shows that the actual control value is not in the first value range corresponding to the functional attribute of the real equipment, generating a second instruction, and feeding the second instruction back to the application end, wherein the second instruction is used for indicating that the actual control value is not in the first value range corresponding to the functional attribute of the real equipment; and when the second judgment result shows that the actual control value is in the first value range corresponding to the functional attribute of the real equipment, testing the virtual equipment by using the logic rule in the test information.
Alternatively, in the present embodiment, the storage medium may be configured to store program codes for performing the following steps: judging whether the virtual equipment generates interference on other functional attributes of the virtual equipment after executing the control instruction based on the logic rule to obtain a third judgment result, wherein the other functional attributes are functional attributes of all the functional attributes of the virtual equipment except for the functional attribute corresponding to the control instruction; when the third judgment result shows that the virtual equipment generates interference on other functional attributes of the virtual equipment after executing the control instruction, the current state of the functional attribute corresponding to the control instruction and the current state of the interfered attribute in the other functional attributes are fed back to the application end; and when the third judgment result shows that the virtual equipment does not interfere with other functional attributes of the virtual equipment after executing the control instruction, feeding back the current state of the functional attribute corresponding to the control instruction to the application end.
Alternatively, in the present embodiment, the storage medium may be configured to store program codes for performing the following steps: acquiring a mutual exclusion rule in the test information; judging whether the control instruction is an executable instruction or not based on the mutual exclusion rule to obtain a fourth judgment result; when the fourth judgment result shows that the control instruction is an executable instruction, adjusting the current function attribute state of the virtual equipment based on the control instruction, obtaining the adjusted current function attribute state after adjusting the current function attribute state of the virtual equipment, and feeding back the adjusted current function attribute state to the application end; and when the fourth judgment result shows that the control instruction is the non-executable instruction, generating a third instruction, and feeding the third instruction back to the application end, wherein the third instruction is used for indicating that the control instruction is the non-executable instruction.
Alternatively, in the present embodiment, the storage medium may be configured to store program codes for performing the following steps: when the fourth judgment result shows that the control instruction is the unexecutable instruction, acquiring the mutex solving rule in the test information, and acquiring the limiting information which enables the control instruction to be the unexecutable instruction; judging whether the limitation information can be eliminated or not according to the mutual exclusion solving rule to obtain a fifth judgment result; when the fifth judgment result shows that the limitation information can be eliminated, eliminating the limitation information and executing a control command; and when the fifth judgment result shows that the limitation information can be eliminated, generating a fourth instruction and feeding the fourth instruction back to the application end, wherein the fourth instruction is used for indicating that the limitation information is the limitation information which cannot be eliminated.
According to another aspect of the embodiments of the present invention, there is provided a test system for a virtual device, including a memory and a processor, where the memory stores a computer program, and the processor is configured to execute a test method for a virtual device in any one of the above items by the computer program.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program: acquiring a control instruction, wherein the control instruction is an instruction issued by an application end and used for controlling the testing of virtual equipment, and the virtual equipment is equipment generated based on real equipment; responding to the control instruction, and testing the virtual equipment by using the test information containing the logic rule to obtain a test result; and feeding back the test result to the application terminal.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program: generating test information based on the functional attributes of the real equipment before testing the virtual equipment by using the test information containing the logic rules; and transmitting the test information to the virtual equipment so as to store the test information by using the virtual equipment.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program: acquiring a device function model of real equipment; when judging whether the function attribute of the control instruction is within the range of the equipment function model based on the equipment function model, obtaining a first judgment result; when the first judgment result shows that the functional attribute of the control instruction is not in the range of the equipment functional model, generating a first instruction, and feeding the first instruction back to the application end, wherein the first instruction is used for indicating that the functional attribute of the control instruction is not in the range of the equipment functional model; and when the first judgment result shows that the function attribute of the control instruction is within the range of the equipment function model, acquiring an actual control value of the control instruction, and testing the virtual equipment by using the actual control value and the equipment function model.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program: judging whether the actual control value is in a first value range corresponding to the functional attribute of the real equipment or not based on the equipment functional model to obtain a second judgment result; when the second judgment result shows that the actual control value is not in the first value range corresponding to the functional attribute of the real equipment, generating a second instruction, and feeding the second instruction back to the application end, wherein the second instruction is used for indicating that the actual control value is not in the first value range corresponding to the functional attribute of the real equipment; and when the second judgment result shows that the actual control value is in the first value range corresponding to the functional attribute of the real equipment, testing the virtual equipment by using the logic rule in the test information.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program: judging whether the virtual equipment generates interference on other functional attributes of the virtual equipment after executing the control instruction based on the logic rule to obtain a third judgment result, wherein the other functional attributes are functional attributes of all the functional attributes of the virtual equipment except for the functional attribute corresponding to the control instruction; when the third judgment result shows that the virtual equipment generates interference on other functional attributes of the virtual equipment after executing the control instruction, the current state of the functional attribute corresponding to the control instruction and the current state of the interfered attribute in the other functional attributes are fed back to the application end; and when the third judgment result shows that the virtual equipment does not interfere with other functional attributes of the virtual equipment after executing the control instruction, feeding back the current state of the functional attribute corresponding to the control instruction to the application end.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program: acquiring a mutual exclusion rule in the test information; judging whether the control instruction is an executable instruction or not based on the mutual exclusion rule to obtain a fourth judgment result; when the fourth judgment result shows that the control instruction is an executable instruction, adjusting the current function attribute state of the virtual equipment based on the control instruction, obtaining the adjusted current function attribute state after adjusting the current function attribute state of the virtual equipment, and feeding back the adjusted current function attribute state to the application end; and when the fourth judgment result shows that the control instruction is the non-executable instruction, generating a third instruction, and feeding the third instruction back to the application end, wherein the third instruction is used for indicating that the control instruction is the non-executable instruction.
Optionally, in this embodiment, the processor may be configured to execute the following steps by a computer program: when the fourth judgment result shows that the control instruction is the unexecutable instruction, acquiring the mutex solving rule in the test information, and acquiring the limiting information which enables the control instruction to be the unexecutable instruction; judging whether the limitation information can be eliminated or not according to the mutual exclusion solving rule to obtain a fifth judgment result; when the fifth judgment result shows that the limitation information can be eliminated, eliminating the limitation information and executing a control command; and when the fifth judgment result shows that the limitation information can be eliminated, generating a fourth instruction and feeding the fourth instruction back to the application end, wherein the fourth instruction is used for indicating that the limitation information is the limitation information which cannot be eliminated.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A method for testing virtual equipment is characterized by comprising the following steps:
acquiring a control instruction, wherein the control instruction is an instruction issued by an application end and used for controlling the testing of the virtual equipment, and the virtual equipment is equipment generated based on real equipment;
responding to the control instruction, and testing the virtual equipment by using test information containing logic rules to obtain a test result;
and feeding back the test result to the application terminal.
2. The method of claim 1, wherein prior to testing the virtual device using the test information comprising the logic rule, the method further comprises:
generating the test information based on the functional attribute of the real equipment;
transmitting the test information to the virtual device to store the test information with the virtual device.
3. The method of claim 1, wherein testing the virtual device using test information containing logic rules in response to the control instruction comprises:
acquiring a device function model of the real device;
when judging whether the function attribute of the control instruction is within the range of the equipment function model based on the equipment function model, obtaining a first judgment result;
when the first judgment result shows that the function attribute of the control instruction is not in the range of the equipment function model, generating a first instruction, and feeding back the first instruction to the application end, wherein the first instruction is used for indicating that the function attribute of the control instruction is not in the range of the equipment function model;
and when the first judgment result shows that the function attribute of the control instruction is within the range of the equipment function model, acquiring an actual control value of the control instruction, and testing the virtual equipment by using the actual control value and the equipment function model.
4. The method of claim 3, wherein testing the virtual device using the actual control values and the device functional model comprises:
judging whether the actual control value is in a first value range corresponding to the function attribute of the real equipment or not based on the equipment function model to obtain a second judgment result;
when the second judgment result indicates that the actual control value is not in the first value range corresponding to the functional attribute of the real device, generating a second instruction, and feeding the second instruction back to the application end, wherein the second instruction is used for indicating that the actual control value is not in the first value range corresponding to the functional attribute of the real device;
and when the second judgment result shows that the actual control value is within a first value range corresponding to the functional attribute of the real equipment, testing the virtual equipment by using a logic rule in the test information.
5. The method of claim 4, wherein testing the virtual device using the logic rule in the test information comprises:
judging whether the virtual equipment generates interference on other functional attributes of the virtual equipment after executing the control instruction based on the logic rule to obtain a third judgment result, wherein the other functional attributes are functional attributes of all the functional attributes of the virtual equipment except for the functional attribute corresponding to the control instruction;
when the third judgment result indicates that the virtual device interferes with other functional attributes of the virtual device after executing the control instruction, feeding back the current state of the functional attribute corresponding to the control instruction and the current state of the interfered attribute in the other functional attributes to the application end;
and when the third judgment result shows that the virtual equipment does not interfere with other functional attributes of the virtual equipment after executing the control instruction, feeding back the current state of the functional attribute corresponding to the control instruction to the application end.
6. The method according to any one of claims 1 to 5, wherein testing the virtual device using test information containing logic rules to obtain a test result comprises:
acquiring a mutual exclusion rule in the test information;
judging whether the control instruction is an executable instruction or not based on the mutual exclusion rule to obtain a fourth judgment result;
when the fourth judgment result shows that the control instruction is an executable instruction, adjusting the current function attribute state of the virtual equipment based on the control instruction, obtaining the adjusted current function attribute state after adjusting the current function attribute state of the virtual equipment, and feeding back the adjusted current function attribute state to an application end;
and when the fourth judgment result shows that the control instruction is a non-executable instruction, generating a third instruction, and feeding the third instruction back to the application end, wherein the third instruction is used for indicating that the control instruction is the non-executable instruction.
7. The method of claim 6, further comprising:
when the fourth judgment result shows that the control instruction is an unexecutable instruction, acquiring a mutex solving rule in the test information, and acquiring limiting information which enables the control instruction to be an unexecutable instruction;
judging whether the limitation information can be eliminated or not according to the mutual exclusion solving rule to obtain a fifth judgment result;
when the fifth judgment result shows that the limitation information can be eliminated, eliminating the limitation information and executing the control command;
and when the fifth judgment result shows that the limitation information can be eliminated, generating a fourth instruction and feeding the fourth instruction back to the application end, wherein the fourth instruction is used for indicating that the limitation information is the limitation information which can not be eliminated.
8. An apparatus for testing a virtual device, comprising:
the device comprises a first acquisition module, a second acquisition module and a control module, wherein the first acquisition module is used for acquiring a control instruction, the control instruction is issued by an application end and used for controlling the test of the virtual equipment, and the virtual equipment is equipment generated based on real equipment;
the response module is used for responding to the control instruction and testing the virtual equipment by using test information containing a logic rule to obtain a test result;
and the first feedback module is used for feeding back the test result to the application end.
9. A computer-readable storage medium, comprising a stored program, wherein the program executes a method of testing a virtual device according to any one of claims 1 to 7.
10. A test system for a data virtual device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute a test method for a virtual device according to any one of claims 1 to 7 by the computer program.
CN202110738157.4A 2021-06-30 2021-06-30 Virtual equipment testing method and device Active CN113434421B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110738157.4A CN113434421B (en) 2021-06-30 2021-06-30 Virtual equipment testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110738157.4A CN113434421B (en) 2021-06-30 2021-06-30 Virtual equipment testing method and device

Publications (2)

Publication Number Publication Date
CN113434421A true CN113434421A (en) 2021-09-24
CN113434421B CN113434421B (en) 2023-10-24

Family

ID=77758135

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110738157.4A Active CN113434421B (en) 2021-06-30 2021-06-30 Virtual equipment testing method and device

Country Status (1)

Country Link
CN (1) CN113434421B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115460117A (en) * 2022-08-01 2022-12-09 青岛海尔科技有限公司 Device testing method and apparatus, storage medium, and electronic apparatus

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102193553A (en) * 2010-03-02 2011-09-21 珠海格力电器股份有限公司 Method, device and system for testing function of air conditioning controller
CN103091573A (en) * 2011-11-03 2013-05-08 珠海格力电器股份有限公司 Testing method, testing device and testing system of air conditioner
CN103809582A (en) * 2012-11-14 2014-05-21 北京北方微电子基地设备工艺研究中心有限责任公司 Method, system and device for control system simulation testing in semiconductor manufacturing process
CN103822326A (en) * 2012-11-19 2014-05-28 珠海格力电器股份有限公司 Outdoor unit performance test method, server and system
CN107870271A (en) * 2016-11-03 2018-04-03 珠海市杰理科技股份有限公司 Automated testing method and device
CN108228407A (en) * 2018-01-31 2018-06-29 深圳市证通电子股份有限公司 Apparatus function test method, apparatus and readable storage medium storing program for executing
CN108626856A (en) * 2018-05-02 2018-10-09 广东美的制冷设备有限公司 The control method and control device of air-conditioning equipment, storage medium and air-conditioning equipment
CN110601871A (en) * 2019-07-31 2019-12-20 华为技术有限公司 Virtual equipment testing method and device
CN110618944A (en) * 2019-09-20 2019-12-27 百度在线网络技术(北京)有限公司 Device simulation method, device, electronic device and storage medium
CN111200535A (en) * 2018-11-16 2020-05-26 阿里巴巴集团控股有限公司 Simulation system and method for equipment
CN111381575A (en) * 2018-12-28 2020-07-07 成都鼎桥通信技术有限公司 Automatic test method, device, server, electronic equipment and storage medium
US10771316B1 (en) * 2017-11-30 2020-09-08 Amazon Technologies, Inc. Debugging of a network device through emulation
CN111814354A (en) * 2020-07-23 2020-10-23 展讯通信(上海)有限公司 Simulation test method, system, medium and electronic device for instrument performance
CN111830390A (en) * 2019-04-18 2020-10-27 中科寒武纪科技股份有限公司 Test method and related product
CN111865708A (en) * 2019-12-30 2020-10-30 北京嘀嘀无限科技发展有限公司 Performance test method, platform, equipment and storage medium of Internet of things system
CN112219195A (en) * 2019-08-30 2021-01-12 深圳市大疆创新科技有限公司 Application program testing method, device and storage medium
CN112287456A (en) * 2020-10-29 2021-01-29 中国航空工业集团公司洛阳电光设备研究所 Modularized configurable flight simulator for engineering
CN112702225A (en) * 2020-12-10 2021-04-23 树根互联技术有限公司 Cloud platform performance testing device and method, computer terminal and readable storage medium

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102193553A (en) * 2010-03-02 2011-09-21 珠海格力电器股份有限公司 Method, device and system for testing function of air conditioning controller
CN103091573A (en) * 2011-11-03 2013-05-08 珠海格力电器股份有限公司 Testing method, testing device and testing system of air conditioner
CN103809582A (en) * 2012-11-14 2014-05-21 北京北方微电子基地设备工艺研究中心有限责任公司 Method, system and device for control system simulation testing in semiconductor manufacturing process
CN103822326A (en) * 2012-11-19 2014-05-28 珠海格力电器股份有限公司 Outdoor unit performance test method, server and system
CN107870271A (en) * 2016-11-03 2018-04-03 珠海市杰理科技股份有限公司 Automated testing method and device
US10771316B1 (en) * 2017-11-30 2020-09-08 Amazon Technologies, Inc. Debugging of a network device through emulation
CN108228407A (en) * 2018-01-31 2018-06-29 深圳市证通电子股份有限公司 Apparatus function test method, apparatus and readable storage medium storing program for executing
CN108626856A (en) * 2018-05-02 2018-10-09 广东美的制冷设备有限公司 The control method and control device of air-conditioning equipment, storage medium and air-conditioning equipment
CN111200535A (en) * 2018-11-16 2020-05-26 阿里巴巴集团控股有限公司 Simulation system and method for equipment
CN111381575A (en) * 2018-12-28 2020-07-07 成都鼎桥通信技术有限公司 Automatic test method, device, server, electronic equipment and storage medium
CN111830390A (en) * 2019-04-18 2020-10-27 中科寒武纪科技股份有限公司 Test method and related product
CN110601871A (en) * 2019-07-31 2019-12-20 华为技术有限公司 Virtual equipment testing method and device
CN112219195A (en) * 2019-08-30 2021-01-12 深圳市大疆创新科技有限公司 Application program testing method, device and storage medium
CN110618944A (en) * 2019-09-20 2019-12-27 百度在线网络技术(北京)有限公司 Device simulation method, device, electronic device and storage medium
CN111865708A (en) * 2019-12-30 2020-10-30 北京嘀嘀无限科技发展有限公司 Performance test method, platform, equipment and storage medium of Internet of things system
CN111814354A (en) * 2020-07-23 2020-10-23 展讯通信(上海)有限公司 Simulation test method, system, medium and electronic device for instrument performance
CN112287456A (en) * 2020-10-29 2021-01-29 中国航空工业集团公司洛阳电光设备研究所 Modularized configurable flight simulator for engineering
CN112702225A (en) * 2020-12-10 2021-04-23 树根互联技术有限公司 Cloud platform performance testing device and method, computer terminal and readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115460117A (en) * 2022-08-01 2022-12-09 青岛海尔科技有限公司 Device testing method and apparatus, storage medium, and electronic apparatus

Also Published As

Publication number Publication date
CN113434421B (en) 2023-10-24

Similar Documents

Publication Publication Date Title
CN107943707B (en) Behavior tree testing method and device, storage medium and terminal
CN109783340B (en) SoC test code programming method, IP test method and device
CN111611121B (en) Hardware simulation test method, device and equipment
CN109460361B (en) Performance test method and device, storage medium and electronic device
CN113434255B (en) Virtual device creation method and device
CN110493812A (en) Processing method, device, system, processor and the main control device of distribution test
CN111934908A (en) Internet of things simulation method, device and system and storage medium
CN113434421A (en) Virtual equipment testing method and device
CN113434422B (en) Virtual device debugging method and device and virtual device debugging system
CN111901155B (en) Internet of things debugging method, device and system and storage medium
CN113191114B (en) Method and apparatus for validating a system
CN110781084B (en) Method and device for determining stuck identification parameter, storage medium and electronic device
CN113452556A (en) Product skill configuration method and device, storage medium and electronic device
CN108829495A (en) Verification method, device, equipment and the storage medium of multiple database modification affairs
CN114253823A (en) Distributed test method and related equipment
CN109600781B (en) WiFi module test system and method
CN107203471B (en) Joint debugging method, service platform and computer storage medium
CN113312254A (en) Kernel code testing method and device, storage medium and processor
CN113297072A (en) Container testing method and device
CN113760750B (en) Intelligent device testing method and device, electronic device and storage medium
CN111124592A (en) Simulation task execution method and device
CN113973060A (en) Internet of things simulation method, device and system and storage medium
CN111068315A (en) Method and device for positioning frame synchronization problem and electronic equipment
CN111082984A (en) Method and device for simulating login of network equipment to carry out command line interaction
CN110188491B (en) Processing method and device for improving calculation efficiency in simulation calculation process

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
GR01 Patent grant