CN111611121A - Hardware simulation test method, device and equipment - Google Patents

Hardware simulation test method, device and equipment Download PDF

Info

Publication number
CN111611121A
CN111611121A CN202010274246.3A CN202010274246A CN111611121A CN 111611121 A CN111611121 A CN 111611121A CN 202010274246 A CN202010274246 A CN 202010274246A CN 111611121 A CN111611121 A CN 111611121A
Authority
CN
China
Prior art keywords
information
simulation
equipment
real
hardware
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
CN202010274246.3A
Other languages
Chinese (zh)
Other versions
CN111611121B (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.)
Zhejiang Koubei Network Technology Co Ltd
Original Assignee
Zhejiang Koubei Network Technology 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 Zhejiang Koubei Network Technology Co Ltd filed Critical Zhejiang Koubei Network Technology Co Ltd
Priority to CN202010274246.3A priority Critical patent/CN111611121B/en
Publication of CN111611121A publication Critical patent/CN111611121A/en
Application granted granted Critical
Publication of CN111611121B publication Critical patent/CN111611121B/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/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing
    • G06F11/261Functional testing by simulating additional hardware, e.g. fault simulation

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application discloses a hardware simulation test method, a hardware simulation test device and hardware simulation test equipment, and relates to the technical field of tests. The method comprises the following steps: firstly, acquiring simulation equipment information and simulation operation information corresponding to the simulation equipment information; then acquiring simulation response information corresponding to real equipment according to the simulation equipment information and the simulation operation information; and finally, testing a first call link of the real equipment according to the simulation response information, wherein the first call link is a call link for the real equipment to respond according to the instruction information of the hardware application system. The whole process does not need to purchase real intelligent hardware equipment, and the cost of on-line development and test is saved. And simulation equipment meeting the standard can be selected according to actual test requirements to replace real equipment with more models and styles for testing, and the test accuracy can be improved.

Description

Hardware simulation test method, device and equipment
Technical Field
The present application relates to the field of test technologies, and in particular, to a hardware simulation test method, apparatus, and device.
Background
The Internet of things (IOT) is an information carrier such as The Internet and a traditional telecommunication network, and enables all common objects capable of performing independent functions to realize an interconnected network. Based on the technology of the internet of things, some intelligent hardware devices (such as an intelligent meal taking cabinet, a mechanical arm and the like) can be applied to life scenes of users, so that the users can feel intelligent use experience.
In order to ensure safe and effective use of the intelligent hardware equipment, the intelligent hardware equipment needs to be subjected to offline development testing of a calling link in the early stage, and the intelligent hardware equipment can be put into operation online after the testing is passed. At present, the traditional test mode is to adopt real intelligent hardware equipment to carry out off-line development and test.
However, the acquisition cost of the smart hardware device is high, so the traditional test method increases the cost of the offline development test. And the model types of the intelligent hardware equipment are various, the updating speed is high, if the intelligent hardware equipment is tested by only adopting real equipment with partial model types, the testing requirement cannot be met, and the testing accuracy is influenced.
Disclosure of Invention
In view of this, the present application provides a hardware simulation test method, apparatus and device, and mainly aims to solve the technical problems of high test cost and influence on test accuracy in the prior art.
According to an aspect of the present application, there is provided a hardware simulation test method, including:
acquiring simulation equipment information and simulation operation information corresponding to the simulation equipment information;
acquiring simulation response information corresponding to real equipment according to the simulation equipment information and the simulation operation information;
and testing a first call link of the real equipment according to the simulation response information, wherein the first call link is a call link which responds to the real equipment according to instruction information of a hardware application system.
Optionally, obtaining simulation response information corresponding to the real device according to the simulation device information and the simulation operation information specifically includes:
and acquiring preset response information which corresponds to the simulation equipment information and corresponds to the simulation operation information as the simulation response information, wherein the preset response information comprises response event information and/or equipment attribute information.
Optionally, the simulation device corresponding to the simulation device information is the same as or similar to the real device.
Optionally, before the acquiring the simulation device information and the simulation operation information corresponding to the simulation device information, the method further includes:
outputting a first interface displayed at the front end, wherein the first interface comprises at least one simulation device which can be selected and at least one operation mode which can be selected correspondingly;
the acquiring of the simulation device information and the simulation operation information corresponding to the simulation device information specifically includes:
acquiring the simulation device information of the selected target simulation device and the simulation operation information of the selected target operation mode corresponding to the target simulation device.
Optionally, the testing the first call link of the real device according to the simulation response information specifically includes:
sending the simulation response information to a cloud server, so that the cloud server forwards the simulation response information to the hardware application system, and simulating first communication process information between the real equipment and the hardware application system;
and performing a functional response test of the real equipment through the first communication process information.
Optionally, the method further includes:
acquiring application service information of hardware application and service parameter information of simulation operation corresponding to the application service information;
acquiring simulated operation instruction information of the real equipment according to the application service information and the service parameter information;
and testing a second call link of the real equipment according to the simulation operation instruction information, wherein the second call link is a call link for sending instruction information of a hardware application system to the real equipment.
Optionally, the obtaining, according to the application service information and the service parameter information, simulated operation instruction information of the real device specifically includes:
and acquiring preset operation instruction information which corresponds to the application service information and corresponds to the service parameter information as the simulated operation instruction information.
Optionally, before the obtaining of the application service information of the hardware application and the service parameter information of the simulation operation corresponding to the application service information, the method further includes:
outputting a second interface displayed by a front end, wherein the second interface comprises at least one application service which can be selected by a hardware application and at least one service parameter which can be selected correspondingly;
the acquiring of the application service information of the hardware application and the service parameter information of the simulation operation corresponding to the application service information specifically includes:
and acquiring the application service information of the selected target application service and the service parameter information of the selected target service parameter corresponding to the target application service.
Optionally, the testing the second call link of the real device according to the simulation operation instruction information specifically includes:
sending the simulation operation instruction information to a cloud server, so that the cloud server forwards the simulation operation instruction information to the real equipment, and second communication process information between a hardware application system and the real equipment is simulated;
and performing function calling test of the real equipment through the second communication process information.
According to another aspect of the present application, there is provided a hardware simulation test apparatus, including:
the acquisition module is used for acquiring the maximum length of the character string which can be displayed in the information display area;
the acquisition module is used for acquiring simulation equipment information and simulation operation information corresponding to the simulation equipment information;
the acquisition module is further configured to acquire simulation response information corresponding to real equipment according to the simulation equipment information and the simulation operation information;
and the testing module is used for testing a first calling link of the real equipment according to the simulation response information, wherein the first calling link is a calling link for the real equipment to respond according to the instruction information of the hardware application system.
Optionally, the obtaining module is specifically configured to obtain preset response information corresponding to the simulation device information and corresponding to the simulation operation information, as the simulation response information, where the preset response information includes response event information and/or device attribute information.
Optionally, the simulation device corresponding to the simulation device information is the same as or similar to the real device.
Optionally, the apparatus further comprises: a first output module;
the first output module is used for outputting a first interface displayed at the front end, and the first interface comprises at least one simulation device which can be selected and at least one operation mode which can be selected correspondingly;
the obtaining module is specifically configured to obtain the simulation device information of the selected target simulation device and the simulation operation information of the target operation mode corresponding to the target simulation device.
Optionally, the test module is specifically configured to send the simulation response information to a cloud server, so that the cloud server forwards the simulation response information to the hardware application system, so as to simulate first communication process information between the real device and the hardware application system;
and performing a functional response test of the real equipment through the first communication process information.
Optionally, the obtaining module is further configured to obtain application service information of the hardware application and service parameter information of the simulation operation corresponding to the application service information;
the obtaining module is further configured to obtain simulated operation instruction information of the real device according to the application service information and the service parameter information;
the testing module is further configured to test a second call link of the real device according to the simulated operation instruction information, where the second call link is a call link that sends instruction information of a hardware application system to the real device.
Optionally, the obtaining module is further specifically configured to obtain preset operation instruction information corresponding to the application service information and corresponding to the service parameter information, as the simulated operation instruction information.
Optionally, the apparatus further comprises: a second output module;
the second output module is used for outputting a second interface displayed at the front end, and the second interface comprises at least one application service which can be selected by a hardware application and at least one service parameter which can be selected correspondingly;
the obtaining module is specifically further configured to obtain the application service information of the selected target application service and the service parameter information of the selected target service parameter corresponding to the target application service.
Optionally, the test module is specifically further configured to send the simulation operation instruction information to a cloud server, so that the cloud server forwards the simulation operation instruction information to the real device, so as to simulate second communication process information between a hardware application system and the real device; and performing function calling test of the real equipment through the second communication process information.
According to yet another aspect of the present application, there is provided a storage medium having stored thereon a computer program which, when executed by a processor, implements the above-described hardware simulation test method.
According to yet another aspect of the present application, there is provided a hardware simulation test apparatus, including a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein the processor implements the hardware simulation test method when executing the program.
Compared with the existing mode of adopting real intelligent hardware equipment to carry out offline development and test, the hardware simulation test method, the hardware simulation test device and the hardware simulation test equipment can utilize simulation equipment to replace real equipment to carry out test, specifically can obtain simulation response information corresponding to the real equipment according to simulation equipment information and simulation operation information, and further can test a calling link of the real equipment responding according to instruction information of a hardware application system according to the simulation response information. The whole process does not need to purchase real intelligent hardware equipment, and the cost of on-line development and test is saved. And simulation equipment meeting the standard can be selected according to actual test requirements to replace real equipment with more models and styles for testing, and the test accuracy can be improved.
The foregoing description is only an overview of the technical solutions of the present application, and the present application can be implemented according to the content of the description in order to make the technical means of the present application more clearly understood, and the following detailed description of the present application is given in order to make the above and other objects, features, and advantages of the present application more clearly understandable.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a schematic flowchart illustrating a hardware simulation testing method according to an embodiment of the present application;
FIG. 2 is a flow chart of another hardware simulation testing method provided in the embodiments of the present application;
FIG. 3 is a schematic diagram illustrating an architecture of an example application of an emulation platform according to an embodiment of the present application;
fig. 4 shows a schematic structural diagram of a hardware simulation test apparatus according to an embodiment of the present application.
Detailed Description
The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
The method aims at the technical problems that the testing cost is high and the testing accuracy is influenced in the mode of carrying out off-line development testing by adopting real intelligent hardware equipment in the prior art. The embodiment provides a hardware simulation test method, as shown in fig. 1, the method includes:
101. and acquiring simulation equipment information and simulation operation information corresponding to the simulation equipment information.
The simulation device information may include information such as a device type, a name, a model, a device state, and the like of the simulation device, and the simulation operation information may include operation mode content of the simulation device. For example, if the simulation device is a cabinet taking device, the simulation operation may include operations of applying for a cabinet, opening the cabinet, releasing the cabinet, and the like; if the simulation equipment is mechanical arm equipment, the simulation operation can comprise the operations of making food and reporting information by the mechanical arm and the like.
It should be noted that, in this embodiment, the simulation device information and the simulation operation information corresponding to the simulation device information may be pre-configured according to the corresponding real device information and the real device operation information, so as to meet the requirement standard of the simulation test.
The execution subject of the embodiment may be a device or equipment for hardware simulation testing, and may be configured on the client side or the server side, and is used to replace real equipment to perform offline development testing and the like. Specifically, the simulation device information selected by the user or the system, etc. and the simulation operation information corresponding to the selected simulation device information may be obtained first to execute the hardware simulation test, that is, the processes shown in steps 102 to 103 are executed.
102. And acquiring simulation response information corresponding to the real equipment according to the acquired simulation equipment information and the corresponding simulation operation information.
For example, a Software Development Kit (SDK) of the simulation device may be configured in advance, and then the simulation device SDK may be utilized to simulate a response process of the corresponding real device, that is, simulated response information of the real device, according to the simulation device information and the corresponding simulation operation information.
103. And testing the first call link of the real equipment according to the acquired simulation response information.
The first call link is a call link which is responded by the real equipment according to the instruction information of the hardware application system. For example, the simulation device communicates with the cloud service end through the simulation device SDK, the simulation device SDK simulates a response process of the real machine device, and sends a related event (a record of a process) or an attribute (a state of the machine) to the cloud service end, and then the cloud service end returns related data uploaded by the simulation device to the hardware application system, so that a process of mutual communication between the real device and the hardware application system is simulated, and further, a related call link (such as a related series of call interfaces and the like) is tested.
Compared with the current mode of performing offline development testing by using real intelligent hardware equipment, the hardware simulation testing method provided by the embodiment can utilize the simulation equipment to replace the real equipment for testing, specifically can obtain the simulation response information corresponding to the real equipment according to the simulation equipment information and the simulation operation information, and further can test the calling link of the real equipment responding according to the instruction information of the hardware application system according to the simulation response information. The whole process does not need to purchase real intelligent hardware equipment, and the cost of on-line development and test is saved. And simulation equipment meeting the standard can be selected according to actual test requirements to replace real equipment with more models and styles for testing, and the test accuracy can be improved.
Further, as a refinement and an extension of the specific implementation of the foregoing embodiment, in order to fully describe the implementation of this embodiment, this embodiment further provides another hardware simulation testing method, as shown in fig. 2, where the method includes:
201. and outputting the first interface displayed by the front end.
The first interface comprises at least one simulation device which can be selected and at least one operation mode which can be selected correspondingly. Through the front-end display mode, a tester can select the simulation equipment meeting the test requirements and the corresponding operation mode more conveniently, humanized design is met more, and the use experience of a user can be improved.
202. And acquiring simulation equipment information of the selected target simulation equipment and simulation operation information of a target operation mode corresponding to the target simulation equipment.
After the user finishes selecting, the simulation equipment information of the target simulation equipment selected by the user and the simulation operation information of the target operation mode corresponding to the target simulation equipment selected by the user can be obtained.
203. And acquiring preset response information corresponding to the simulation equipment information and corresponding to the simulation operation information as simulation response information corresponding to the real equipment.
The preset response information comprises response event information and/or equipment attribute information. In this embodiment, according to response information of different real devices in different operation modes, simulation response information of the corresponding simulation device under different simulation operations may be pre-configured, that is, the preset response information may specifically include response event information (e.g., process records of operation events) and/or device attribute information (state of the machine).
For the embodiment, a Software-as-a-Service (SAAS) simulation laboratory can be pre-established according to actual requirements, and a simulation (mock) scene, mock return data and the like can be managed for an object model operation interface of a specific type of equipment.
If there is no simulation device completely identical to the real device in the real test, in addition to the information such as the corresponding simulation device configured now, in order to improve the test efficiency, optionally, another simulation device (having corresponding preset response information) similar to the real device may be used instead, that is, the simulation device corresponding to the simulation device information and the real device may be the same or similar device. For example, 20 cabinet door cabinet taking devices are needed to perform related tests, and the simulation devices are not completely the same, but the 22 cabinet door cabinet taking devices of the same model exist, so that the 22 cabinet door cabinet taking devices can be selected to replace the 22 cabinet door cabinet taking devices, the 20 cabinet door cabinet taking devices do not need to be created, and then the test operation is rapidly performed, and the test efficiency is improved.
204. And sending the acquired simulation response information to the cloud server, so that the cloud server forwards the simulation response information to the hardware application system, and the first communication process information between the real equipment and the hardware application system is simulated.
205. And performing functional response test of the real equipment through the first communication process information.
As shown in fig. 3, a corresponding intelligent hardware simulation platform is developed based on the method of this embodiment, and performs distributed communication with a plurality of simulation devices SDKs, which may specifically include three parts, namely a model (model), an event (event), and a service (service), which are also recorded when the front end selects. For example, the front end selects corresponding simulation equipment and an operation mode, the front end records and transmits the information data to the background service, the background service is communicated with the cloud service end through the simulation equipment SDK (client), the simulation equipment SDK is equivalent to simulating a response process of real machine equipment, relevant events (record of a process) or attributes (state of a machine) can be sent to the cloud service end system, the cloud service end can return relevant data uploaded by company simulation equipment to the system application of the hardware application, and therefore the process of mutual communication between the hardware machine of the client and the system application of the hardware application is simulated. This process is equivalent to a client emulation link, including: and the front end shows, namely the back end service, the simulation equipment SDK (client), the cloud service end and the hardware application system.
In addition to the above link test, since the actual test process needs to meet the requirement of the test call link of some special operations (such as some unusual operations or abnormal operations, etc.), to achieve this purpose, the method of this embodiment may further optionally include: firstly, acquiring application service information of hardware application and service parameter information of simulation operation corresponding to the application service information; then acquiring simulated operation instruction information of the real equipment according to the application service information and the service parameter information; and finally, testing a second call link of the real equipment according to the simulation operation instruction information, wherein the second call link is a call link for sending instruction information of the hardware application system to the real equipment.
The application service information may be application service content of a specific application in the hardware application system, and the service parameter information may include service parameter content of a simulation operation corresponding to the application service, where the simulation operation may be determined according to an actual test requirement, such as some unusual operations, or abnormal operations, or normal operations.
For example, according to application service information correspondingly selected by simulation operation and service parameter information correspondingly selected by the simulation operation, a corresponding machine operation instruction is simulated and encapsulated through a preconfigured simulation device SDK, and then the encapsulated machine operation instruction is sent to real equipment through a cloud service terminal to complete corresponding actual operation, so that all processes of calling the real equipment by a hardware application system are simulated, and further, a related calling link (such as a related series of calling interfaces and the like) is tested.
Through the optional mode, the hardware application system can be simulated to send the corresponding specific machine operation instruction to realize the test according to the actual test requirement, the requirements of test call links of some special cases of operation are met, and the test efficiency and the test accuracy can be improved.
Optionally, the obtaining of the simulated operation instruction information of the real device according to the application service information and the service parameter information may specifically include: and acquiring preset operation instruction information which corresponds to the application service information and the service parameter information as simulated operation instruction information. In this optional embodiment, the application service information and the corresponding service parameter information, which are required under the respective corresponding simulation operations, may be pre-configured according to the machine operation instruction information sent by different hardware application systems in different operation modes, that is, the preset operation instruction information.
Further, before acquiring application service information of the hardware application and service parameter information of the simulation operation corresponding to the application service information, the method of this embodiment may further include: outputting a second interface displayed by the front end, wherein the second interface can comprise at least one application service selected by the hardware application and at least one service parameter selected correspondingly; correspondingly, acquiring the application service information of the hardware application and the service parameter information of the simulation operation corresponding to the application service information may specifically include: and acquiring the application service information of the selected target application service and the service parameter information of the selected target service parameter corresponding to the target application service.
By the front-end display mode, a tester can select the application service meeting the test requirement and the corresponding service parameter more conveniently, the humanized design is met, and the use experience of a user can be improved.
Optionally, the testing the second call link of the real device according to the simulation operation instruction information may specifically include: sending the simulation operation instruction information to a cloud server so that the cloud server forwards the simulation operation instruction information to real equipment so as to simulate second communication process information between the hardware application system and the real equipment; and finally, carrying out function calling test on the real equipment through second communication process information.
For example, based on the intelligent hardware simulation platform shown in fig. 3, the corresponding application service and the corresponding service parameters are selected by the front end, the data are transmitted to the background service, the background service communicates with the cloud service end through the simulation device SDK (service end), the corresponding machine operation instructions are packaged and transmitted to the cloud service end, and the cloud service end uses the instructions to call the real machine devices to complete the corresponding actual operations. This simulates the entire process of the server invoking the hardware machine. The process is equivalent to a server simulation link and comprises the following steps: front-end display, back-end service, simulation equipment SDK (service end), cloud service end and real machine equipment.
In order to illustrate the specific implementation process of the above embodiments, the following application scenarios are given, but not limited to:
the cloud service end serves as a connection hub for data transmission and communication of the equipment of the smart store, and the cloud service end issues an instruction to control the equipment to perform corresponding operation. Meanwhile, the related operation log of the equipment is uploaded to the Ali cloud storage. As the cabinet taking equipment in an intelligent store, frequent cabinet application and other operations exist in online development and testing, the cabinet taking mode can be really adopted for testing at present, however, the cost is high, and the actually purchased cabinet taking mode cannot meet more testing requirements due to single model.
In order to solve the problems, the SDK provided by the cloud service end is used for simulating the control process locally, and a real meal taking cabinet is replaced for carrying out relevant tests. The method comprises the steps that a specific tester can select corresponding simulation meal cabinet taking equipment and an operation mode through a front end, the front end records and transmits information data to a background service, the background service communicates with a cloud service end through simulation meal cabinet taking equipment SDK (client), the simulation meal cabinet taking equipment SDK is equivalent to simulating a response process of real meal cabinet taking equipment, relevant events (record of a process) or attributes (state of a meal cabinet taking) can be sent to the cloud service end, the cloud service end can return relevant data uploaded by the simulation meal cabinet taking equipment to a system application of the meal cabinet taking application, and therefore the process of mutual communication between a meal cabinet taking hardware machine of the client and the system application of the meal cabinet taking is simulated.
In addition, the tester can select and operate application services and corresponding service parameters corresponding to the food cabinet through the front end and transmit the data to the background service, the background service communicates with the cloud service end through the simulation food cabinet taking device SDK (service end), corresponding food cabinet taking machine operation instructions are packaged and transmitted to the cloud service end, and the cloud service end uses the instructions to call the real food cabinet taking device to complete corresponding actual operation. Thus, the whole process that the server side calls the hardware machine of the meal cabinet is simulated.
Compared with the existing mode of carrying out the off-line development test by adopting real intelligent hardware equipment, by applying the method of the embodiment, the real intelligent hardware equipment does not need to be purchased in the whole process, and the off-line development cost is saved. And simulation equipment meeting the standard can be selected according to actual test requirements to replace real equipment with more models and styles for testing, and the test accuracy can be improved.
Further, as a specific implementation of the method shown in fig. 1 and fig. 2, an embodiment of the present application provides a hardware simulation testing apparatus, as shown in fig. 4, the apparatus includes: an acquisition module 31 and a test module 32.
An obtaining module 31, configured to obtain simulation device information and simulation operation information corresponding to the simulation device information;
the obtaining module 31 may be further configured to obtain simulation response information corresponding to the real device according to the simulation device information and the simulation operation information;
the testing module 32 is configured to test a first call link of the real device according to the simulation response information, where the first call link is a call link in which the real device responds according to instruction information of a hardware application system.
In a specific application scenario, the obtaining module 31 may be specifically configured to obtain preset response information corresponding to the simulation device information and corresponding to the simulation operation information, as the simulation response information, where the preset response information includes response event information and/or device attribute information.
In a specific application scenario, optionally, the simulation device corresponding to the simulation device information is the same as or similar to the real device.
In a specific application scenario, the apparatus may further include: a first output module;
the first output module can be used for outputting a first interface displayed at the front end, and the first interface comprises at least one piece of simulation equipment which can be selected and at least one corresponding operation mode which can be selected;
the obtaining module 31 may be specifically configured to obtain the simulation device information of the selected target simulation device and the simulation operation information of the target operation mode corresponding to the target simulation device.
In a specific application scenario, the test module 32 may be specifically configured to send the simulation response information to a cloud server, so that the cloud server forwards the simulation response information to the hardware application system, so as to simulate first communication process information between the real device and the hardware application system; and performing a functional response test of the real equipment through the first communication process information.
In a specific application scenario, the obtaining module 31 may be further configured to obtain application service information of a hardware application and service parameter information of a simulation operation corresponding to the application service information;
the obtaining module 31 may be further configured to obtain simulated operation instruction information of the real device according to the application service information and the service parameter information;
the test module 32 may be further configured to test a second call link of the real device according to the simulated operation instruction information, where the second call link is a call link that sends instruction information of a hardware application system to the real device.
In a specific application scenario, the obtaining module 31 may be further configured to obtain preset operation instruction information corresponding to the application service information and corresponding to the service parameter information, as the simulated operation instruction information.
In a specific application scenario, the apparatus may further include: a second output module;
the second output module can be used for outputting a second interface displayed at the front end, wherein the second interface comprises at least one application service available for the hardware application and at least one service parameter available for the hardware application;
the obtaining module 31 may be further configured to obtain the application service information of the selected target application service and the service parameter information of the selected target service parameter corresponding to the target application service.
In a specific application scenario, the test module 32 may be further configured to send the simulated operation instruction information to a cloud server, so that the cloud server forwards the simulated operation instruction information to the real device, so as to simulate second communication process information between a hardware application system and the real device; and performing function calling test of the real equipment through the second communication process information.
It should be noted that other corresponding descriptions of the functional units related to the hardware simulation test apparatus provided in this embodiment may refer to the corresponding descriptions in fig. 1 and fig. 2, and are not repeated herein.
Based on the above-mentioned methods shown in fig. 1 and fig. 2, correspondingly, the present embodiment further provides a storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the above-mentioned hardware simulation testing method shown in fig. 1 and fig. 2.
Based on such understanding, the technical solution of the present application may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.), and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method of the embodiments of the present application.
Based on the above-mentioned method shown in fig. 1 and fig. 2 and the virtual device embodiment shown in fig. 4, in order to achieve the above-mentioned object, an embodiment of the present application further provides a hardware simulation testing device, which may specifically be a personal computer, a server, a tablet computer, a smart phone, a smart watch, a smart bracelet, or other network devices, and the device includes a storage medium and a processor; a storage medium for storing a computer program; a processor for executing a computer program to implement the hardware simulation testing method as described above with reference to fig. 1 and 2.
Optionally, the entity device may further include a user interface, a network interface, a camera, a Radio Frequency (RF) circuit, a sensor, an audio circuit, a WI-FI module, and the like. The user interface may include a Display screen (Display), an input unit such as a keypad (Keyboard), etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), etc.
It will be understood by those skilled in the art that the above-described physical device structure provided in the present embodiment is not limited to the physical device, and may include more or less components, or combine some components, or arrange different components.
The storage medium may further include an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of the above-described physical devices, and supports the operation of the information processing program as well as other software and/or programs. The network communication module is used for realizing communication among components in the storage medium and communication with other hardware and software in the information processing entity device.
Through the above description of the embodiments, those skilled in the art will clearly understand that the present application can be implemented by software plus a necessary general hardware platform, and can also be implemented by hardware. By applying the technical scheme of the embodiment, compared with the current mode of performing the off-line development test by adopting real intelligent hardware equipment, the embodiment can utilize the simulation equipment to replace the real equipment for testing, specifically can obtain the simulation response information corresponding to the real equipment according to the simulation equipment information and the simulation operation information, and further can test the calling link of the real equipment responding according to the instruction information of the hardware application system according to the simulation response information. The whole process does not need to purchase real intelligent hardware equipment, and the online development cost is saved. And simulation equipment meeting the standard can be selected according to actual test requirements to replace real equipment with more models and styles for testing, and the test accuracy can be improved.
Those skilled in the art will appreciate that the figures are merely schematic representations of one preferred implementation scenario and that the blocks or flow diagrams in the figures are not necessarily required to practice the present application. Those skilled in the art will appreciate that the modules in the devices in the implementation scenario may be distributed in the devices in the implementation scenario according to the description of the implementation scenario, or may be located in one or more devices different from the present implementation scenario with corresponding changes. The modules of the implementation scenario may be combined into one module, or may be further split into a plurality of sub-modules.
The above application serial numbers are for description purposes only and do not represent the superiority or inferiority of the implementation scenarios. The above disclosure is only a few specific implementation scenarios of the present application, but the present application is not limited thereto, and any variations that can be made by those skilled in the art are intended to fall within the scope of the present application.

Claims (10)

1. A hardware simulation test method is characterized by comprising the following steps:
acquiring simulation equipment information and simulation operation information corresponding to the simulation equipment information;
acquiring simulation response information corresponding to real equipment according to the simulation equipment information and the simulation operation information;
and testing a first call link of the real equipment according to the simulation response information, wherein the first call link is a call link which responds to the real equipment according to instruction information of a hardware application system.
2. The method according to claim 1, wherein obtaining simulated response information corresponding to real equipment according to the simulated equipment information and the simulated operation information specifically includes:
and acquiring preset response information which corresponds to the simulation equipment information and corresponds to the simulation operation information as the simulation response information, wherein the preset response information comprises response event information and/or equipment attribute information.
3. The method according to claim 1, wherein the simulated device corresponding to the simulated device information is the same or similar device as the real device.
4. The method of claim 1, wherein prior to said obtaining emulated device information and emulated operation information corresponding to said emulated device information, said method further comprises:
outputting a first interface displayed at the front end, wherein the first interface comprises at least one simulation device which can be selected and at least one operation mode which can be selected correspondingly;
the acquiring of the simulation device information and the simulation operation information corresponding to the simulation device information specifically includes:
acquiring the simulation device information of the selected target simulation device and the simulation operation information of the selected target operation mode corresponding to the target simulation device.
5. The method according to claim 1, wherein the testing the first call link of the real device according to the simulation response information specifically includes:
sending the simulation response information to a cloud server, so that the cloud server forwards the simulation response information to the hardware application system, and simulating first communication process information between the real equipment and the hardware application system;
and performing a functional response test of the real equipment through the first communication process information.
6. The method of claim 1, further comprising:
acquiring application service information of hardware application and service parameter information of simulation operation corresponding to the application service information;
acquiring simulated operation instruction information of the real equipment according to the application service information and the service parameter information;
and testing a second call link of the real equipment according to the simulation operation instruction information, wherein the second call link is a call link for sending instruction information of a hardware application system to the real equipment.
7. The method according to claim 6, wherein the obtaining, according to the application service information and the service parameter information, simulated operation instruction information for the real device specifically includes:
and acquiring preset operation instruction information which corresponds to the application service information and corresponds to the service parameter information as the simulated operation instruction information.
8. A hardware simulation test apparatus, comprising:
the acquisition module is used for acquiring simulation equipment information and simulation operation information corresponding to the simulation equipment information;
the acquisition module is further configured to acquire simulation response information corresponding to real equipment according to the simulation equipment information and the simulation operation information;
and the testing module is used for testing a first calling link of the real equipment according to the simulation response information, wherein the first calling link is a calling link for the real equipment to respond according to the instruction information of the hardware application system.
9. A storage medium on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the method of any one of claims 1 to 7.
10. Hardware simulation test device comprising a storage medium, a processor and a computer program stored on the storage medium and executable on the processor, characterized in that the processor implements the method of any of claims 1 to 7 when executing the program.
CN202010274246.3A 2020-04-09 2020-04-09 Hardware simulation test method, device and equipment Active CN111611121B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010274246.3A CN111611121B (en) 2020-04-09 2020-04-09 Hardware simulation test method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010274246.3A CN111611121B (en) 2020-04-09 2020-04-09 Hardware simulation test method, device and equipment

Publications (2)

Publication Number Publication Date
CN111611121A true CN111611121A (en) 2020-09-01
CN111611121B CN111611121B (en) 2023-11-07

Family

ID=72199364

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010274246.3A Active CN111611121B (en) 2020-04-09 2020-04-09 Hardware simulation test method, device and equipment

Country Status (1)

Country Link
CN (1) CN111611121B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112052179A (en) * 2020-09-21 2020-12-08 华云数据控股集团有限公司 Simulation method, simulation system and computer readable medium for software system
CN112614403A (en) * 2020-12-25 2021-04-06 深圳市小喵科技有限公司 Hardware simulation method and device
CN112637008A (en) * 2020-12-14 2021-04-09 广州品唯软件有限公司 Link simulation test method, device, system, computer equipment and storage medium
CN112685310A (en) * 2020-12-31 2021-04-20 杭州当虹科技股份有限公司 Method for simulation test of cloud host
CN113157382A (en) * 2020-12-16 2021-07-23 建信金融科技有限责任公司 Virtual drive-based equipment calling method and device
CN114928565A (en) * 2022-01-29 2022-08-19 浙江浩瀚能源科技有限公司 Internet of things testing method and system for simulating hardware equipment
CN116248567A (en) * 2023-02-21 2023-06-09 深圳绿米联创科技有限公司 Intelligent device testing method and device, electronic device and testing system

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040127212A1 (en) * 2002-12-27 2004-07-01 Wang Jian Chung Apparatus, system and method for network testing
US20070226542A1 (en) * 2006-03-24 2007-09-27 International Business Machines Corporation Simulated message generation for simulation testing of a node operation
US20090119084A1 (en) * 2007-11-05 2009-05-07 Advantest Corporation System, method, and program product for simulating test equipment
CN102841837A (en) * 2012-06-26 2012-12-26 中国科学院声学研究所 Software and hardware co-verification method based on simulator and system thereof
US20140047417A1 (en) * 2012-08-13 2014-02-13 Bitbar Technologies Oy System for providing test environments for executing and analysing test routines
CN103957053A (en) * 2014-05-20 2014-07-30 重庆邮电大学 Link testing device and method based on EPON
US20140282436A1 (en) * 2013-03-14 2014-09-18 International Business Machines Corporation Testing a software interface for a streaming hardware device
CN105183482A (en) * 2015-09-23 2015-12-23 浪潮(北京)电子信息产业有限公司 Network simulation development testing method and system
CN108803571A (en) * 2018-06-20 2018-11-13 天津英创汇智汽车技术有限公司 ECU desktop hardware assemblage on-orbits test system and hardware-in-the-loop test system
US20190155721A1 (en) * 2017-11-20 2019-05-23 International Business Machines Corporation Automated integration testing with mock microservices
US10305962B1 (en) * 2015-12-30 2019-05-28 EMC IP Holding Company LLC Unit testing clients of web services
CN110458379A (en) * 2018-05-08 2019-11-15 阿里巴巴集团控股有限公司 Pressure testing system, method, apparatus and electronic equipment
CN110941252A (en) * 2018-09-25 2020-03-31 比亚迪股份有限公司 Vehicle-mounted equipment testing method and system

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040127212A1 (en) * 2002-12-27 2004-07-01 Wang Jian Chung Apparatus, system and method for network testing
US20070226542A1 (en) * 2006-03-24 2007-09-27 International Business Machines Corporation Simulated message generation for simulation testing of a node operation
US20090119084A1 (en) * 2007-11-05 2009-05-07 Advantest Corporation System, method, and program product for simulating test equipment
CN102841837A (en) * 2012-06-26 2012-12-26 中国科学院声学研究所 Software and hardware co-verification method based on simulator and system thereof
US20140047417A1 (en) * 2012-08-13 2014-02-13 Bitbar Technologies Oy System for providing test environments for executing and analysing test routines
US20140282436A1 (en) * 2013-03-14 2014-09-18 International Business Machines Corporation Testing a software interface for a streaming hardware device
CN103957053A (en) * 2014-05-20 2014-07-30 重庆邮电大学 Link testing device and method based on EPON
CN105183482A (en) * 2015-09-23 2015-12-23 浪潮(北京)电子信息产业有限公司 Network simulation development testing method and system
US10305962B1 (en) * 2015-12-30 2019-05-28 EMC IP Holding Company LLC Unit testing clients of web services
US20190155721A1 (en) * 2017-11-20 2019-05-23 International Business Machines Corporation Automated integration testing with mock microservices
CN110458379A (en) * 2018-05-08 2019-11-15 阿里巴巴集团控股有限公司 Pressure testing system, method, apparatus and electronic equipment
CN108803571A (en) * 2018-06-20 2018-11-13 天津英创汇智汽车技术有限公司 ECU desktop hardware assemblage on-orbits test system and hardware-in-the-loop test system
CN110941252A (en) * 2018-09-25 2020-03-31 比亚迪股份有限公司 Vehicle-mounted equipment testing method and system

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112052179A (en) * 2020-09-21 2020-12-08 华云数据控股集团有限公司 Simulation method, simulation system and computer readable medium for software system
CN112052179B (en) * 2020-09-21 2022-03-04 华云数据控股集团有限公司 Simulation method, simulation system and computer readable medium for software system
CN112637008A (en) * 2020-12-14 2021-04-09 广州品唯软件有限公司 Link simulation test method, device, system, computer equipment and storage medium
CN112637008B (en) * 2020-12-14 2022-08-09 广州品唯软件有限公司 Link simulation test method, device, system, computer equipment and storage medium
CN113157382A (en) * 2020-12-16 2021-07-23 建信金融科技有限责任公司 Virtual drive-based equipment calling method and device
CN113157382B (en) * 2020-12-16 2023-03-28 建信金融科技有限责任公司 Virtual drive-based equipment calling method and device
CN112614403A (en) * 2020-12-25 2021-04-06 深圳市小喵科技有限公司 Hardware simulation method and device
CN112685310A (en) * 2020-12-31 2021-04-20 杭州当虹科技股份有限公司 Method for simulation test of cloud host
CN112685310B (en) * 2020-12-31 2024-04-23 杭州当虹科技股份有限公司 Method for simulating and testing cloud host
CN114928565A (en) * 2022-01-29 2022-08-19 浙江浩瀚能源科技有限公司 Internet of things testing method and system for simulating hardware equipment
CN116248567A (en) * 2023-02-21 2023-06-09 深圳绿米联创科技有限公司 Intelligent device testing method and device, electronic device and testing system

Also Published As

Publication number Publication date
CN111611121B (en) 2023-11-07

Similar Documents

Publication Publication Date Title
CN111611121B (en) Hardware simulation test method, device and equipment
CN111200535B (en) Simulation system and method for equipment
US9015654B2 (en) System for providing test environments for executing and analysing test routines
CN106021095B (en) A kind of Android application automated testing method based on push-mechanism
US9645910B1 (en) Cross platform mobile HTML debugging
US9652364B1 (en) Cloud service for mobile testing and debugging
CN107707986B (en) A kind of method and device for simulating barrage message in the exploitation of live streaming software
US10747656B2 (en) Systems and methods for mobile automation testing by emulating human behaviors
CN111934908A (en) Internet of things simulation method, device and system and storage medium
CN110708214B (en) Service data display method, device, equipment and computer readable storage medium
CN108228444A (en) A kind of test method and device
CN109284227A (en) A kind of automation method for testing pressure and device calculate equipment and storage medium
CN111782524A (en) Application testing method and device, storage medium and electronic device
CN111143223A (en) Server pressure testing method and device
CN105760300B (en) A kind of automated testing method and test macro of STK/UTK business
CN106682910B (en) Information processing method, system and related equipment
CN114253823A (en) Distributed test method and related equipment
CN111901155A (en) Internet of things debugging method, device and system and storage medium
CN109922484A (en) A kind of test method and test device
CN112306857A (en) Method and apparatus for testing applications
CN112131112A (en) Operation information acquisition method and device, storage medium and electronic equipment
CN107391354B (en) Method and system for automatically monitoring terminal performance and storage device
CN116431504A (en) Automatic test method, system and device
CN109985387B (en) Automatic testing method and device
CN113973060A (en) Internet of things simulation method, device and system and storage medium

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