CN110618944A - Device simulation method, device, electronic device and storage medium - Google Patents

Device simulation method, device, electronic device and storage medium Download PDF

Info

Publication number
CN110618944A
CN110618944A CN201910896839.0A CN201910896839A CN110618944A CN 110618944 A CN110618944 A CN 110618944A CN 201910896839 A CN201910896839 A CN 201910896839A CN 110618944 A CN110618944 A CN 110618944A
Authority
CN
China
Prior art keywords
instruction
user
simulation
test
test instruction
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.)
Pending
Application number
CN201910896839.0A
Other languages
Chinese (zh)
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.)
Baidu Online Network Technology Beijing Co Ltd
Shanghai Xiaodu Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201910896839.0A priority Critical patent/CN110618944A/en
Publication of CN110618944A publication Critical patent/CN110618944A/en
Pending legal-status Critical Current

Links

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
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Abstract

The application discloses a device simulation method, a device, a storage medium and a terminal device, and relates to the technical field of computers. The specific implementation scheme is as follows: receiving a device selection instruction, and determining simulation parameters of target devices according to the device selection instruction; displaying the simulation display effect of the target equipment according to the simulation parameters; acquiring a test instruction of the target equipment; and updating the simulation display effect of the target equipment according to the simulation parameters and the test instruction. The application reduces the testing workload and improves the testing efficiency.

Description

Device simulation method, device, electronic device and storage medium
Technical Field
The application relates to the technical field of computers, in particular to the field of computer vision.
Background
In the development process of the intelligent device skills, developers want to obtain the display effect of the device skills (such as voice skills) on different types of intelligent devices, and the development process needs to be established on the basis of physical intelligent devices, so that the test workload is large, and the test efficiency is low.
Disclosure of Invention
The embodiment of the application provides a device simulation method, a device, a storage medium and a terminal device, so as to solve or alleviate one or more technical problems in the prior art.
In a first aspect, an embodiment of the present application provides an apparatus simulation method, including:
receiving a device selection instruction, and determining simulation parameters of target devices according to the device selection instruction;
displaying the simulation display effect of the target equipment according to the simulation parameters;
acquiring a test instruction of target equipment;
and updating the simulation display effect of the target equipment according to the simulation parameters and the test instruction.
According to the embodiment, the test effect of the equipment skill on various target equipment is realized by simulating the effect of various target equipment on the test instruction, the test workload is reduced, and the test efficiency is improved.
In one embodiment, determining simulation parameters of a target device according to a device selection instruction includes:
determining target equipment according to the equipment identification in the equipment selection instruction, and acquiring a prestored simulation parameter of the target equipment; alternatively, the first and second electrodes may be,
and determining the simulation parameters of the target equipment according to the parameter setting information in the equipment selection instruction.
Through the embodiment, the simulation parameters of various devices are stored in advance, so that a user can conveniently and directly select the corresponding device for simulation, the test workload can be reduced, and the efficiency can be improved. The user is supported to carry out the self-defining setting of parameters, such as the size of the device, on the simulation device, and the range of the device which can be tested by the user is enlarged.
In one embodiment, the parameter setting information includes at least one of a device shape, a device height, a device width, and a device pixel.
In one embodiment, obtaining test instructions for a target device includes:
identifying user expression information;
determining a user intention corresponding to the user expression information according to a first mapping relation between the user expression information and the user intention;
and generating a test instruction for the target equipment according to the user intention.
In one embodiment, the method further comprises:
receiving a mapping relation establishing instruction, wherein the mapping relation establishing instruction comprises user expression information and user intention;
establishing a first mapping relation between user expression information and user intention according to a mapping relation establishing instruction; in the first mapping relationship, one user intention corresponds to at least one user expression information.
The above-described embodiments provide a mapping function of establishing expressions and intentions so that a user can directly implement, through the function, a process of adding generalized expressions to intentions. The method is efficient and rapid, reduces the test adjustment workload of developers, and improves the user experience.
In one embodiment, obtaining test instructions for a target device includes:
receiving test instruction selection information;
and selecting the test instruction of the target equipment from a plurality of pre-stored test instructions according to the test instruction selection information.
A plurality of commonly used test instructions are stored in advance for a user to select, the user directly selects the test instructions to test, repeated input is not needed, and test workload is reduced.
In one embodiment, the method further comprises:
receiving a video recording instruction, and recording and storing video contents simulating display effects; alternatively, the first and second electrodes may be,
and receiving an image storage instruction, and storing the image content of the simulation display effect.
By the implementation mode, video recording or screenshot of the test effect is supported, and the test effect is stored in a video or image form for a user.
In a second aspect, an embodiment of the present application provides an apparatus simulation apparatus, including:
the simulation parameter determining module is used for receiving the equipment selection instruction and determining the simulation parameters of the target equipment according to the equipment selection instruction;
the effect determining module is used for displaying the simulation display effect of the target equipment according to the simulation parameters;
the test instruction acquisition module is used for acquiring a test instruction of the target equipment;
and the effect updating module is used for updating the simulation display effect of the target equipment according to the simulation parameters and the test instructions.
In one embodiment, the test instruction obtaining module includes:
the identification submodule is used for identifying the user expression information;
the mapping submodule is used for determining the user intention corresponding to the user expression information according to a first mapping relation between the user expression information and the user intention;
and the test instruction submodule is used for generating a test instruction for the target equipment according to the user intention.
In one embodiment, the method further comprises:
the mapping instruction module is used for receiving a mapping relation establishment instruction, and the mapping relation establishment instruction comprises user expression information and user intention;
the mapping establishing module is used for establishing a first mapping relation between the user expression information and the user intention according to the mapping relation establishing instruction; in the first mapping relationship, one user intention corresponds to at least one user expression information.
In one embodiment, the test instruction obtaining module includes:
the selection information receiving submodule is used for receiving the test instruction selection information;
and the test instruction selection submodule is used for selecting the test instruction of the target equipment from a plurality of pre-stored test instructions according to the test instruction selection information.
In one embodiment, the method further comprises:
the recording module is used for receiving a recording instruction, recording and storing the video content simulating the display effect; alternatively, the first and second electrodes may be,
and the image storage module is used for receiving the image storage instruction and storing the image content of the simulation display effect.
In a third aspect, an embodiment of the present application provides an electronic device, where functions of the electronic device may be implemented by hardware, or may be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above-described functions.
In one possible design, the electronic device includes a processor and a memory, the memory is used for the electronic device to execute the program of the device simulation method, and the processor is configured to execute the program stored in the memory. The electronic device may also include a communication interface for the electronic device to communicate with other devices or a communication network.
In a fourth aspect, the present application further provides a computer-readable storage medium for computer software instructions for a device simulation apparatus, where the computer software instructions include a program for executing the device simulation method.
One embodiment in the above application has the following advantages or benefits: by simulating the effect of the target equipment on the test instruction, the test effect of the equipment skill on various target equipment can be realized without the need of an entity target equipment, the test workload is reduced, and the test efficiency is improved.
Other effects of the above-described alternative will be described below with reference to specific embodiments.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
FIG. 1 is a schematic flow diagram of a plant simulation method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a visualization management interface provided by a platform simulator in accordance with an embodiment of the present application;
FIG. 3 is a schematic diagram of a custom parameter entry interface according to an embodiment of the present application;
fig. 4 is a first flowchart of step S13 in the device simulation method according to the embodiment of the present application;
fig. 5 is a second flowchart illustrating the step S13 in the device simulation method according to the embodiment of the present application;
fig. 6 is a third schematic flowchart of step S13 in the device simulation method according to the embodiment of the present application;
FIG. 7 is a block diagram of a device simulation apparatus according to an embodiment of the present application;
fig. 8 is a first block diagram of a test instruction obtaining module 703 in the device simulation apparatus according to the embodiment of the present application;
FIG. 9 is a block diagram of a second configuration of the device simulation apparatus according to the embodiment of the present application;
fig. 10 is a block diagram of a second structure of the test instruction obtaining module 73 in the device simulation apparatus according to the embodiment of the present application;
FIG. 11 is a block diagram of a third configuration of a device simulation apparatus according to an embodiment of the present application;
fig. 12 is a block diagram of an electronic device for implementing a device simulation method according to an embodiment of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a flowchart illustrating an apparatus simulation method according to an embodiment of the present application. Referring to fig. 1, the method includes:
s101, receiving a device selection instruction, and determining a simulation parameter of a target device according to the device selection instruction;
s102, displaying the simulation display effect of the target equipment according to the simulation parameters;
s103, acquiring a test instruction of the target equipment;
and S104, updating the simulation display effect of the target equipment according to the simulation parameters and the test instruction.
Through the embodiment, the effect of various target devices on the test instruction is simulated, the test effect of the device skill on various target devices can be realized without the need of an entity target device, the test workload is reduced, and the test efficiency is improved.
In one embodiment, the determining the simulation parameters of the target device according to the device selection instruction in step S101 includes: and determining the target equipment according to the equipment identifier in the equipment selection instruction, and acquiring the prestored simulation parameters of the target equipment.
In one example, a platform simulator, which may be a client simulator or a web page simulator, may be constructed according to the methods of embodiments of the present application. Referring to fig. 2, fig. 2 is a visual management interface provided by the platform simulator, a plurality of device icons are provided in a device selection area of the interface, and simulation parameters of devices corresponding to each device icon are prestored. And clicking the equipment identifier on the simulation management interface by the user to generate an equipment selection instruction, wherein the equipment selection instruction comprises the equipment identifier. According to the device selection instruction, the target device to be simulated and the simulation parameters corresponding to the target device can be determined.
In one example, the target device may be a smart speaker, a television, a smart robot, a smart phone, a smart wearable device, or a smart vehicle-mounted device, etc.
Through the embodiment, the simulation parameters of various devices are stored in advance, so that a user can conveniently and directly select the corresponding device for simulation, the test workload is reduced, and the efficiency is improved.
In one embodiment, the determining the simulation parameters of the target device according to the device selection instruction in step S101 includes: and determining the simulation parameters of the target equipment according to the parameter setting information in the equipment selection instruction.
In one example, a parameter customization request instruction is received, and a customized parameter input interface is provided according to the parameter customization request instruction. The customized parameter input interface can be as shown in fig. 3, and provides a plurality of parameter input boxes for a user to input parameter setting information. The user can trigger the generation of a device selection instruction by clicking an 'application' option of the custom parameter interface, wherein the device selection instruction comprises parameter setting information input by the user in the custom parameter input interface.
In one embodiment, the parameter setting information includes at least one of a device shape, a device height, a device width, and a device pixel.
Through the embodiment, the user can perform customized setting of parameters, such as the size of the device, on the simulation device, and the range of the device which can be tested by the user is enlarged.
In one embodiment, referring to fig. 4, step S103 includes:
s401, identifying user expression information; the input mode of the user expressed information can comprise voice input or text input;
s402, determining the user intention corresponding to the user expression information according to the first mapping relation between the user expression information and the user intention;
and S403, generating a test instruction for the target device according to the user intention.
In one example, reference may be made to the interface of FIG. 2, whose expression input area provides an input channel for both text input and voice input of user expressed information. The user can input the text information in the input box of the expression input area, and the input of the expression information of the user is realized by clicking the 'confirm' button or the enter key. Or the user may input the user utterance information by voice by clicking a voice input icon expressing the input area.
In one example, the identifying of step S401 includes: and for the user expression information input by voice, carrying out conversion processing of voice and characters to obtain the user expression information in a character form.
In one example, after step S401, displaying the user expression information in the expression recording area is further included. As shown in fig. 2, in the expression recording area, a plurality of user expression information such as "first", "baby bus", "play game" and the like are displayed.
The problem often existing in speech recognition is that the expression of the user is different because of different speech recognition services, the analyzed result is different frequently, or the dialect of the user is different. Such as: the information input by the user is watermelon, and the result of voice recognition is western flower. And the expression is recorded and displayed, so that a developer can know the voice recognition effect conveniently.
In one embodiment, referring to fig. 5, the method further comprises:
s501, receiving a mapping relation establishment instruction, wherein the mapping relation establishment instruction comprises user expression information and a user intention;
s502, establishing a first mapping relation between user expression information and user intention according to a mapping relation establishing instruction; in the first mapping relationship, one user intention corresponds to at least one user expression information.
For an example, referring to fig. 2, in the expression recording area, a user may select at least one user expression information, select a corresponding user intention in the pull-down user intention selection list, and click "add", then a mapping relationship between the user expression information and the user intention may be established. For example, the user may select user expression information such as "turn on tv" and "watch tv" to be added to the user intention of "turn on tv".
The above-described embodiments provide a mapping function of establishing expressions and intentions so that a user can directly implement, through the function, a process of adding generalized expressions to intentions. The method is efficient and rapid, reduces the test adjustment workload of developers, and improves the user experience.
In one embodiment, the method further comprises: and receiving an empty user expression information instruction, and deleting at least one piece of user expression information in the expression recording area according to the user expression information selected in the empty user expression information instruction.
In one embodiment, referring to fig. 6, step S103 includes:
s601, receiving test instruction selection information;
s602, according to the test instruction selection information, selecting a test instruction of the target device from a plurality of pre-stored test instructions.
During the test, some instructions are often input by the user multiple times, such as "return", "turn up volume", "exit", etc. At the moment, a plurality of commonly used test instructions are pre-stored for the user to select, and the user directly selects the test instructions to test without repeated input, so that the test workload is reduced.
In one example, pre-stored marks of a plurality of test instructions are displayed in a preset test instruction area, so that a user clicks the mark of the test instruction to generate test instruction selection information.
In one example, the pre-saving of the plurality of test instructions may include: and receiving the test instruction adding information, and storing the test instruction in the adding information according to the test instruction adding information. Referring to fig. 2, a test instruction adding box and a test instruction display area are provided in the test instruction area, and the test instruction adding box is used for receiving test instruction adding information input by a user.
In one embodiment, the method further comprises: receiving a video recording instruction, and recording and storing video contents simulating display effects; or receiving an image saving instruction, and saving the image content simulating the display effect.
In one example, referring to FIG. 2, when a user click on a "record" icon in the video tool area is detected, an operation is initiated to record and save video content simulating a display effect. And when the user is detected to click the 'stop' icon, finishing the operation of recording and storing the video content simulating the display effect, and displaying the video content in a video display frame of the video tool area. When detecting that the user clicks the 'save' icon, at least one video in the video display box selected by the user is downloaded to the default path or the path designated by the user.
In one example, referring to FIG. 2, when it is detected that the user has clicked on the "screenshot" icon in the screenshot tool area, the image content of the simulated display effect is saved and the image content is displayed in the screenshot display area at a preset size.
By the implementation mode, video recording or screenshot of the test effect is supported, and a user can store test data in a video or image mode.
Fig. 7 shows a block diagram of a device simulation apparatus according to an embodiment of the present application. Referring to fig. 7, the apparatus 700 includes:
a simulation parameter determining module 701, configured to receive a device selection instruction, and determine a simulation parameter of a target device according to the device selection instruction;
an effect determination module 702, configured to display a simulation display effect of the target device according to the simulation parameter;
a test instruction obtaining module 703, configured to obtain a test instruction for a target device;
and the effect updating module 704 is configured to update the simulation display effect of the target device according to the simulation parameter and the test instruction.
In one embodiment, referring to fig. 8, the test instruction obtaining module 703 includes:
an identification submodule 801 for identifying user expression information;
the mapping sub-module 802 is configured to determine a user intention corresponding to the user expression information according to a first mapping relationship between the user expression information and the user intention;
and the test instruction sub-module 803 is used for generating a test instruction for the target device according to the user intention.
In one embodiment, referring to fig. 9, the device simulation apparatus 900 further includes:
a mapping instruction module 901, configured to receive a mapping relationship establishing instruction, where the mapping relationship establishing instruction includes user expression information and a user intention;
a mapping establishing module 902, configured to establish a first mapping relationship between the user expression information and the user intention according to the mapping relationship establishing instruction; in the first mapping relationship, one user intention corresponds to at least one user expression information.
In one embodiment, referring to fig. 10, the test instruction obtaining module 703 includes:
a selection information receiving submodule 1001 configured to receive test instruction selection information;
the test instruction selecting sub-module 1002 is configured to select a test instruction of a target device from a plurality of pre-stored test instructions according to the test instruction selecting information.
In one embodiment, referring to fig. 11, the device simulation apparatus 1100 further comprises:
the recording module 1101 is configured to receive a recording instruction, record and store video content with a simulated display effect;
the image saving module 1102 is configured to receive an image saving instruction and save image content of the analog display effect.
According to an embodiment of the present application, an electronic device and a readable storage medium are also provided.
As shown in fig. 12, fig. 12 is a block diagram of an electronic device implementing the device simulation method according to the embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.
As shown in fig. 12, the electronic apparatus includes: one or more processors 1201, memory 1202, and interfaces for connecting the various components, including a high speed interface and a low speed interface. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the electronic device, including instructions stored in or on the memory to display Graphical information for a Graphical User Interface (GUI) on an external input/output device, such as a display device coupled to the Interface. In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple electronic devices may be connected, with each device providing portions of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). Fig. 12 illustrates an example of one processor 1201.
Memory 1202 is a non-transitory computer readable storage medium as provided herein. Wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the device simulation method provided herein. The non-transitory computer-readable storage medium of the present application stores computer instructions for causing a computer to perform the device simulation method provided herein.
The memory 1202 is a non-transitory computer readable storage medium, and can be used for storing non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the device simulation method in the embodiment of the present application (for example, the simulation parameter determination module 701, the effect determination module 702, the test instruction acquisition module 703, and the effect update module 704 shown in fig. 7). The processor 1201 executes various functional applications of the server and data processing by executing non-transitory software programs, instructions, and modules stored in the memory 1202, that is, implements the device simulation method in the above-described method embodiment.
The memory 1202 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the device simulation electronic device, and the like. Further, the memory 1202 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 1202 may optionally include memory located remotely from processor 1201, which may be connected to the device emulation electronics via 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 electronic device of the device simulation method may further include: an input device 1203 and an output device 1204. The processor 1201, the memory 1202, the input device 1203, and the output device 1204 may be connected by a bus or other means, and the bus connection is exemplified in fig. 11.
The input device 1203 may receive input numeric or character information and generate key signal inputs related to user settings and function controls of the device analog electronics, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, a pointing stick, one or more mouse buttons, a track ball, a joystick, or other input device. The output devices 1204 may include a display device, auxiliary lighting devices (e.g., LEDs), tactile feedback devices (e.g., vibrating motors), and the like. The Display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) Display, and a plasma Display. In some implementations, the display device can be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, Integrated circuitry, Application Specific Integrated Circuits (ASICs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (Cathode Ray Tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
According to the technical scheme of the embodiment of the application, the effect of various target devices on the test instruction is simulated, the test effect of the device skill on various target devices can be realized without the need of an entity target device, the test workload is reduced, and the test efficiency is improved.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, and the present invention is not limited thereto as long as the desired results of the technical solutions disclosed in the present application can be achieved.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (14)

1. A device simulation method, comprising:
receiving a device selection instruction, and determining simulation parameters of target devices according to the device selection instruction;
displaying the simulation display effect of the target equipment according to the simulation parameters;
acquiring a test instruction of the target equipment;
and updating the simulation display effect of the target equipment according to the simulation parameters and the test instruction.
2. The method of claim 1, wherein determining simulation parameters for a target device according to the device selection instruction comprises:
determining the target equipment according to the equipment identification in the equipment selection instruction, and acquiring a prestored simulation parameter of the target equipment; alternatively, the first and second electrodes may be,
and determining the simulation parameters of the target equipment according to the parameter setting information in the equipment selection instruction.
3. The method of claim 2, wherein the parameter setting information comprises at least one of a device shape, a device height, a device width, and a device pixel.
4. The method of claim 1, wherein the obtaining the test instruction for the target device comprises:
identifying user expression information;
determining a user intention corresponding to the user expression information according to a first mapping relation between the user expression information and the user intention;
generating a test instruction for the target device according to the user intention.
5. The method of claim 4, further comprising:
receiving a mapping relation establishing instruction, wherein the mapping relation establishing instruction comprises user expression information and user intention;
establishing a first mapping relation between the user expression information and the user intention according to the mapping relation establishing instruction; in the first mapping relationship, one user intention corresponds to at least one user expression information.
6. The method of claim 1, wherein the obtaining the test instruction for the target device comprises:
receiving test instruction selection information;
and selecting the test instruction of the target equipment from a plurality of pre-stored test instructions according to the test instruction selection information.
7. The method of any of claims 1 to 6, further comprising:
receiving a video recording instruction, and recording and storing the video content of the analog display effect; alternatively, the first and second electrodes may be,
and receiving an image storage instruction, and storing the image content of the simulation display effect.
8. An equipment simulation apparatus, comprising:
the simulation parameter determining module is used for receiving a device selection instruction and determining the simulation parameters of the target device according to the device selection instruction;
the effect determining module is used for displaying the simulation display effect of the target equipment according to the simulation parameters;
the test instruction acquisition module is used for acquiring a test instruction of the target equipment;
and the effect updating module is used for updating the simulation display effect of the target equipment according to the simulation parameters and the test instruction.
9. The apparatus of claim 8, wherein the test instruction obtaining module comprises:
the identification submodule is used for identifying the user expression information;
the mapping submodule is used for determining the user intention corresponding to the user expression information according to a first mapping relation between the user expression information and the user intention;
and the test instruction submodule is used for generating a test instruction for the target equipment according to the user intention.
10. The apparatus of claim 9, further comprising:
the mapping instruction module is used for receiving a mapping relation establishment instruction, and the mapping relation establishment instruction comprises user expression information and user intention;
the mapping establishing module is used for establishing a first mapping relation between the user expression information and the user intention according to the mapping relation establishing instruction; in the first mapping relationship, one user intention corresponds to at least one user expression information.
11. The apparatus of claim 8, wherein the test instruction obtaining module comprises:
the selection information receiving submodule is used for receiving the test instruction selection information;
and the test instruction selection submodule is used for selecting the test instruction of the target equipment from a plurality of pre-stored test instructions according to the test instruction selection information.
12. The apparatus of any one of claims 8 to 11, further comprising:
the recording module is used for receiving a recording instruction, recording and storing the video content of the simulation display effect; alternatively, the first and second electrodes may be,
and the image storage module is used for receiving an image storage instruction and storing the image content of the simulation display effect.
13. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
14. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-7.
CN201910896839.0A 2019-09-20 2019-09-20 Device simulation method, device, electronic device and storage medium Pending CN110618944A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910896839.0A CN110618944A (en) 2019-09-20 2019-09-20 Device simulation method, device, electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910896839.0A CN110618944A (en) 2019-09-20 2019-09-20 Device simulation method, device, electronic device and storage medium

Publications (1)

Publication Number Publication Date
CN110618944A true CN110618944A (en) 2019-12-27

Family

ID=68923813

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910896839.0A Pending CN110618944A (en) 2019-09-20 2019-09-20 Device simulation method, device, electronic device and storage medium

Country Status (1)

Country Link
CN (1) CN110618944A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113434421A (en) * 2021-06-30 2021-09-24 青岛海尔科技有限公司 Virtual equipment testing method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577320A (en) * 2012-08-07 2014-02-12 卓望数码技术(深圳)有限公司 Testing method and system of remote terminals
CN105453033A (en) * 2013-05-02 2016-03-30 亚马逊技术股份有限公司 Program testing service
CN105573902A (en) * 2014-10-10 2016-05-11 阿里巴巴集团控股有限公司 Application testing method and system
CN105955888A (en) * 2016-05-04 2016-09-21 腾讯科技(深圳)有限公司 Page debugging and previewing method and system
CN106383872A (en) * 2016-09-06 2017-02-08 北京百度网讯科技有限公司 Artificial intelligence-based information processing method and apparatus
CN109840205A (en) * 2018-12-20 2019-06-04 平安科技(深圳)有限公司 Applied program testing method, device, readable storage medium storing program for executing and terminal device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103577320A (en) * 2012-08-07 2014-02-12 卓望数码技术(深圳)有限公司 Testing method and system of remote terminals
CN105453033A (en) * 2013-05-02 2016-03-30 亚马逊技术股份有限公司 Program testing service
CN105573902A (en) * 2014-10-10 2016-05-11 阿里巴巴集团控股有限公司 Application testing method and system
CN105955888A (en) * 2016-05-04 2016-09-21 腾讯科技(深圳)有限公司 Page debugging and previewing method and system
CN106383872A (en) * 2016-09-06 2017-02-08 北京百度网讯科技有限公司 Artificial intelligence-based information processing method and apparatus
CN109840205A (en) * 2018-12-20 2019-06-04 平安科技(深圳)有限公司 Applied program testing method, device, readable storage medium storing program for executing and terminal device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113434421A (en) * 2021-06-30 2021-09-24 青岛海尔科技有限公司 Virtual equipment testing method and device
CN113434421B (en) * 2021-06-30 2023-10-24 青岛海尔科技有限公司 Virtual equipment testing method and device

Similar Documents

Publication Publication Date Title
KR102484617B1 (en) Method and apparatus for generating model for representing heterogeneous graph node, electronic device, storage medium and program
CN110795195A (en) Webpage rendering method and device, electronic equipment and storage medium
CN110704136A (en) Rendering method of small program assembly, client, electronic device and storage medium
JP7030177B2 (en) Test method and equipment
CN110727434B (en) Rendering method, rendering device, electronic equipment and storage medium
JP2022505015A (en) Vector representation generation method of knowledge graph, equipment and electronic equipment
CN111858360A (en) Applet test method, device, equipment and storage medium
CN103984626A (en) Method and device for generating test-case script
CN111897619A (en) Browser page display method and device, electronic equipment and storage medium
CN111913884A (en) Distributed test method, device, equipment, system and readable storage medium
CN112015468A (en) Interface document processing method and device, electronic equipment and storage medium
CN111610972A (en) Page generation method, device, equipment and storage medium
CN110674338B (en) Voice skill recommendation method, device, equipment and storage medium
CN110618944A (en) Device simulation method, device, electronic device and storage medium
WO2023169193A1 (en) Method and device for generating smart contract
CN111767691A (en) Calculation method, device, equipment and storage medium
CN111274520B (en) Webpage resource auditing method, device, equipment and medium
KR20190012492A (en) Apparatus and method for generating automatic sentence
CN111651229A (en) Font changing method, device and equipment
CN112035210A (en) Method, apparatus, device and medium for outputting color information
CN111177558A (en) Channel service construction method and device
CN112579032A (en) Intelligent equipment guiding method and device
CN112231336A (en) Method, device, storage medium and electronic equipment for identifying user
CN113407241A (en) Interactive configuration method, device and system and electronic equipment
CN111967492A (en) Method and device for training classification model, electronic equipment 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
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20210512

Address after: 100085 Baidu Building, 10 Shangdi Tenth Street, Haidian District, Beijing

Applicant after: BAIDU ONLINE NETWORK TECHNOLOGY (BEIJING) Co.,Ltd.

Applicant after: Shanghai Xiaodu Technology Co.,Ltd.

Address before: 100085 Baidu Building, 10 Shangdi Tenth Street, Haidian District, Beijing

Applicant before: BAIDU ONLINE NETWORK TECHNOLOGY (BEIJING) Co.,Ltd.

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20191227