CN113032267A - Intelligent scene testing method and device, electronic equipment and storage medium - Google Patents

Intelligent scene testing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN113032267A
CN113032267A CN202110342833.6A CN202110342833A CN113032267A CN 113032267 A CN113032267 A CN 113032267A CN 202110342833 A CN202110342833 A CN 202110342833A CN 113032267 A CN113032267 A CN 113032267A
Authority
CN
China
Prior art keywords
scene
test
equipment
scene action
action instructions
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
CN202110342833.6A
Other languages
Chinese (zh)
Other versions
CN113032267B (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.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New 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 Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN202110342833.6A priority Critical patent/CN113032267B/en
Publication of CN113032267A publication Critical patent/CN113032267A/en
Application granted granted Critical
Publication of CN113032267B publication Critical patent/CN113032267B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/20Analytics; Diagnosis
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • Biomedical Technology (AREA)
  • General Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The application relates to an intelligent scene testing method, an intelligent scene testing device, electronic equipment and a storage medium, wherein the method comprises the following steps: the method comprises the steps of obtaining scene information of a scene to be tested, wherein the scene information comprises N scene action instructions, test equipment and an execution sequence which correspond to the N scene action instructions, sending the N scene action instructions to the test equipment which corresponds to the N scene action instructions in sequence based on the execution sequence, obtaining running states of the test equipment which respectively respond to the received scene action instructions, and finally integrating all the obtained running states to generate the test of the intelligent scene to be tested.

Description

Intelligent scene testing method and device, electronic equipment and storage medium
Technical Field
The application relates to the technical field of internet of things, in particular to an intelligent scene testing method and device, electronic equipment and a storage medium.
Background
Along with the continuous development of the internet of things technology, the application of the intelligent household equipment is more and more common, in order to improve the experience of a user for using the intelligent household equipment, an intelligent scene can be set according to the habit of the user, the linkage of the intelligent household equipment related to the intelligent scene is controlled, and the control operation of the user on the intelligent household equipment alone is reduced.
Because the types of the intelligent home devices and the types of the intelligent terminals used by the users are more, and the habits of the users are different, a plurality of intelligent scenes can appear, and in order to make the implementation process of the intelligent scenes more stable, research and development personnel are required to test different intelligent scenes.
Generally, when testing different intelligent scenes, research and development personnel respectively operate the intelligent home devices related to the intelligent scenes according to different user habits, and record and analyze the state of each operated intelligent home device. With the increase of intelligent scenes and the increase of models of intelligent furniture devices related to the same intelligent scene, research and development personnel are required to repeatedly perform the above processes to test different intelligent scenes, which results in a large amount of research and development cost.
Disclosure of Invention
The embodiment of the application provides an intelligent scene testing method and device, electronic equipment and a storage medium.
According to a first aspect of the present application, there is provided an intelligent scenario testing method, including:
acquiring scene information of an intelligent scene to be tested, wherein the scene information comprises N scene action instructions, and test equipment and an execution sequence which correspond to the N scene action instructions, and N is a positive integer;
sequentially sending the N scene action instructions to the test equipment corresponding to the N scene action instructions based on the execution sequence;
acquiring the running state of all the test devices in response to the received scene action instruction;
and integrating all the obtained running states to generate a test report of the intelligent scene to be tested.
In an optional implementation manner, the sequentially sending the N scene action instructions to the test devices corresponding to the N scene action instructions based on the execution order includes:
when the ith scene action instruction is sent based on the execution sequence, determining target control equipment corresponding to the ith scene action instruction according to a preset mapping relation between the scene action instruction and the control equipment, wherein i is 1, 2, 3, … …, N;
sending the ith scene action instruction to the target control equipment so that the target control equipment generates a corresponding simulation control instruction, and controlling the test equipment corresponding to the ith scene action instruction according to the simulation control instruction;
the acquiring the running state of all the test devices in response to the received scene action instruction comprises:
and acquiring the running state of all the test equipment in response to the received simulation control instruction.
In an optional implementation manner, before the sequentially sending the N scene action instructions to the test devices corresponding to the N scene action instructions based on the execution order, the method further includes:
acquiring test states of test equipment corresponding to the N scene action instructions;
and if the test states of all the test devices are idle, executing the step of sequentially sending the N scene action instructions to the test devices corresponding to the N scene action instructions based on the execution sequence.
In an optional implementation manner, before the sequentially sending the N scene action instructions to the test devices corresponding to the N scene action instructions based on the execution order, the method further includes:
if the test state of any test equipment is not idle, acquiring the reserved test time range of all the test equipment;
determining an idle time range of all the test equipment in an idle state simultaneously according to the reserved test time range;
and if the current moment is within the idle time range, the step of sequentially sending the N scene action instructions to the test equipment corresponding to the N scene action instructions based on the execution sequence is executed.
In an optional implementation manner, before the sequentially sending the N scene action instructions to the test devices corresponding to the N scene action instructions based on the execution order, the method further includes:
carrying out initialization configuration on the test equipment according to preset configuration information and the corresponding relation between the scene action instruction and the test equipment;
after the test equipment is initialized and configured, the step of sequentially sending the N scene action instructions to the test equipment corresponding to the N scene action instructions based on the execution sequence is executed.
In an optional embodiment, the performing, according to preset configuration information and a corresponding relationship between a scene action instruction and a test device, initialization configuration on the test device includes:
determining target configuration information corresponding to each test device from the preset configuration information;
aiming at any test equipment, configuring the test equipment according to target configuration information corresponding to the test equipment;
determining target test equipment comprising trigger equipment and linkage equipment according to the corresponding relation between the scene action instruction and the test equipment;
and carrying out linkage configuration on the trigger equipment and the linkage equipment in the target test equipment.
In an optional implementation manner, the sequentially sending the N scene action instructions to the test devices corresponding to the N scene action instructions based on the execution order includes:
when the ith scene action instruction is sent based on the execution sequence, if the test equipment corresponding to the ith scene action instruction comprises trigger equipment and linkage equipment, the ith scene action instruction is sent to the corresponding trigger equipment, so that the trigger equipment responds to the ith scene action instruction to control the linkage equipment to be linked.
According to a second aspect of the present application, there is provided an intelligent scenario testing apparatus, comprising:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring scene information of an intelligent scene to be tested, the scene information comprises N scene action instructions, and test equipment and an execution sequence which respectively correspond to the N scene action instructions, and N is a positive integer;
a sending module, configured to send the N scene action instructions to the test devices corresponding to the N scene action instructions in sequence based on the execution order;
the second acquisition module is used for acquiring the running states of all the test devices in response to the received scene action instructions;
and the integration module is used for integrating all the acquired running states and generating a test report of the intelligent scene to be tested.
In an optional embodiment, the sending module includes:
a first determining unit, configured to determine, when an ith scene action instruction is sent based on the execution sequence, a target control device corresponding to the ith scene action instruction according to a preset mapping relationship between the scene action instruction and the control device, where i is 1, 2, 3, … …, N;
the first sending unit is used for sending the ith scene action instruction to the target control equipment so as to enable the target control equipment to generate a corresponding simulation control instruction, and controlling the test equipment corresponding to the ith scene action instruction according to the simulation control instruction;
the second acquisition module includes:
and the acquisition unit is used for acquiring the running state of all the test devices in response to the received simulation control instruction.
In an optional embodiment, the apparatus further comprises:
a third obtaining module, configured to obtain test states of test devices corresponding to the N scene action instructions;
and the first execution module is used for executing the step of sequentially sending the N scene action instructions to the test equipment corresponding to the N scene action instructions based on the execution sequence if the test states of all the test equipment are idle.
In an optional embodiment, the apparatus further comprises:
a fourth obtaining module, configured to obtain a reserved test time range of all the test devices if the test state of any one of the test devices is non-idle;
the determining module is used for determining the idle time range of all the test equipment in the idle state at the same time according to the reserved test time range;
and the second execution module is configured to execute, if the current time is within the idle time range, the step of sequentially sending the N scene action instructions to the test devices corresponding to the N scene action instructions based on the execution sequence.
In an optional embodiment, the apparatus further comprises:
the device comprises an initialization configuration module, a test device and a control module, wherein the initialization configuration module is used for carrying out initialization configuration on the test device according to preset configuration information and the corresponding relation between a scene action instruction and the test device;
and a third execution module, configured to execute, after performing initialization configuration on the test device, the step of sequentially sending the N scene action instructions to the test device corresponding to each of the N scene action instructions based on the execution order.
In an optional embodiment, the initialization module comprises:
the second determining unit is used for determining target configuration information corresponding to each test device from the preset configuration information;
the first configuration unit is used for configuring any test equipment according to target configuration information corresponding to the test equipment;
the third determining unit is used for determining target test equipment comprising trigger equipment and linkage equipment according to the corresponding relation between the scene action instruction and the test equipment;
and the second configuration unit is used for carrying out linkage configuration on the trigger equipment and the linkage equipment in the target test equipment.
In an optional embodiment, the sending module includes:
and the second sending unit is used for sending the ith scene action instruction based on the execution sequence, and if the test equipment corresponding to the ith scene action instruction comprises trigger equipment and linkage equipment, sending the ith scene action instruction to the corresponding trigger equipment so that the trigger equipment responds to the ith scene action instruction to control the linkage equipment to be linked.
According to a third aspect of the present application, there is provided an electronic device comprising: at least one processor and memory;
the processor is configured to execute the intelligent scenario test program stored in the memory, so as to implement the intelligent scenario test method according to the first aspect of the present application.
According to a fourth aspect of the present application, there is provided a storage medium storing one or more programs which, when executed, implement the intelligent scenario testing method of the first aspect of the present application.
The technical scheme provided by the application can comprise the following beneficial effects: firstly, scene information of a scene to be tested is obtained, wherein the scene information comprises N scene action instructions, test equipment and an execution sequence which correspond to the N scene action instructions, then the N scene action instructions are sequentially sent to the test equipment which corresponds to the N scene action instructions based on the execution sequence, the running states of the test equipment which respectively respond to the received scene action instructions are obtained, finally, all the obtained running states are integrated, and the test of the intelligent scene to be tested is generated, wherein based on the above, when the intelligent scene to be tested is tested, the running state of the test equipment can be changed by using the scene action instructions, the running state of the test equipment which responds to the received scene action instructions is automatically obtained, the operation of the test equipment is not required to be carried out manually, and the running state of the test equipment is not required to be recorded manually, the cost of testing the intelligent scene is greatly reduced.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and together with the description, serve to explain the principles of the application.
FIG. 1 is a schematic diagram of an intelligent scenario test architecture provided by an embodiment of the present application;
fig. 2 is a schematic flowchart of an intelligent scenario testing method according to another embodiment of the present application;
FIG. 3 is a schematic flow chart illustrating a process for determining a test status of a test device according to another embodiment of the present application;
FIG. 4 is a schematic flowchart of a method for sending a scene action command to a test device according to another embodiment of the present application;
FIG. 5 is a sample schematic of a test report provided by another embodiment of the present application;
FIG. 6 is a flowchart illustrating an intelligent scenario testing method according to another embodiment of the present application;
fig. 7 is a schematic structural diagram of an intelligent scenario testing apparatus according to another embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device according to another embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
In the research and development process of smart home products, user habits are often required to be simulated to build a simulation scene, after equipment collocation of a user is collected (mobile phone model, testing equipment model and habitual action link of the user aiming at the equipment collocation), a suitable place is searched online to build the scene, research and development personnel simulate the habitual action link of the user to execute the scene, operate the testing equipment, and record and analyze the state of the testing equipment.
At present, in the conventional scheme, after a scene is manually built according to equipment collocation of a user, test equipment is operated according to a habitual action link of the user, then the state of each operated test equipment is analyzed, and when the equipment model, the mobile phone model, the user action and the equipment condition action are increased continuously, the test workload is increased continuously, so that a large amount of research and development cost is generated.
Certainly, in order to reduce the research and development cost, an automatic script is also utilized by a view, and the setting-up speed of scenes is accelerated, but the method requires that the automatic script is independently designed for each intelligent scene, the workload of writing the automatic script is large, the maintenance workload is also large after writing, the burden of research and development personnel is additionally increased, the workload of other links is not reduced, the research and development personnel still need to manually operate the test equipment according to the habitual link of the user, and the effect is even inferior to that of the traditional scheme.
Based on the above problem, the present application provides an intelligent scenario testing architecture, as shown in fig. 1, which is a schematic diagram of an intelligent scenario testing architecture provided in an embodiment of the present application.
As shown in fig. 1, the intelligent scenario test architecture provided by this embodiment includes three modules: web (Web) front desk, middleware, and lab.
The Web foreground is used by a research and development staff to input collected user scenario information, generally, the scenario information may include N scenario action execution instructions and test devices corresponding to the scenario action instructions, where the scenario action instructions generally have an execution sequence to simulate, according to a habitual action link of a user, an operation of the user on the test devices, and the test devices correspond to models of devices and states of the devices to be controlled. The developer can perform identity verification items such as registration and login through the Web foreground, and select or fill in scene information of the intelligent scene to be tested in the Web foreground.
In addition, the middleware is used for storing or forwarding information generated by interaction between the laboratory and the Web foreground, in this embodiment, the middleware may include a MongoDB storage, a Nginx server, Vue, and Django, where the MongoDB storage may store information generated by interaction between the laboratory and the Web foreground, such as scene information, test status of the test equipment, a scene execution result, and a test report; the Nginx server is used for forwarding the configuration information of the Web foreground to relevant entities of a laboratory, and Vue is used for realizing the bottom-layer logic and UI display of the Web foreground; django is used for realizing specific code logics of command execution, command analysis, client configuration information issuing and the like.
And the laboratory simulates the family environment of a user and is divided into a plurality of areas, such as a front door area, a living room (public) area, a bedroom area and the like. And placing corresponding intelligent household equipment (namely test equipment) such as a door magnet, a television, a washing machine, an air conditioner, a curtain and the like in each area. And simultaneously, dividing areas and placing basic networking facilities such as mobile phones, routers and the like.
Besides the special testing equipment, control equipment is further arranged and used for changing the running state of the testing equipment through the control equipment, for example, a door lock needs manual operation, a mechanical arm is needed to simulate the manual operation, and the mechanical arm is placed near the door lock and used for achieving automatic operation of the door lock.
Based on the architecture of the present embodiment, the following embodiments may be referred to for the description of the testing process of the scene to be tested.
Referring to fig. 2, fig. 2 is a schematic flowchart illustrating an intelligent scenario testing method according to another embodiment of the present application.
As shown in fig. 2, the intelligent scenario testing method provided in this embodiment may include:
step S201, obtaining scene information of an intelligent scene to be tested, wherein the scene information comprises N scene action instructions, test equipment and an execution sequence corresponding to the N scene action instructions, and N is a positive integer.
It should be noted that the scene information in this step may include N scene action instructions, and test equipment and an execution sequence corresponding to the N scene action instructions, and after the N scene action instructions are executed according to the execution sequence, the purpose of simulating the habitual action link of the user may be achieved.
In a specific example, the test devices and the execution sequence corresponding to the N scene action instructions and the N scene action instructions may be as shown in table 1.
Figure BDA0003000037250000091
Figure BDA0003000037250000101
TABLE 1
Because many test devices are involved in the intelligent scene to be tested, the intelligent scene test is not only performed on the intelligent scene to be tested, and at this time, other intelligent scenes in test may also use the test devices involved in the intelligent scene to be tested. In order to improve the testing efficiency, in this embodiment, a testing state of the testing device may be determined first, and whether to execute a testing process for the intelligent scene to be tested is determined according to the testing state, specifically, refer to fig. 3, where fig. 3 is a schematic flow diagram for determining the testing state of the testing device according to another embodiment of the present application.
As shown in fig. 3, the process of determining the test state of the test device provided in this embodiment may include:
step S301, obtaining the test state of the test equipment corresponding to each of the N scene action instructions.
In this step, the test state may include whether the test device is in an idle state and a corresponding reserved test time range when the test device is in a non-space state.
It should be noted that, in this embodiment, if a test scenario is tested, after a test device in a laboratory is selected, a test reservation time corresponding to the test device is filled, and after the current time enters the test reservation time range, the test state of the test device is changed to non-idle. In this embodiment, the test state may be stored in the MongoDB storage of the middleware shown in fig. 1.
Step S302, if the test states of all the test devices are idle, the step of sequentially sending the N scene action instructions to the test devices corresponding to the N scene action instructions based on the execution sequence is executed.
If the current test states of all the test devices related to the intelligent scene to be tested are idle, it is indicated that all the test devices related to the intelligent scene to be tested do not reserve the test time, and at this time, the step of sequentially sending the N scene action instructions to the test devices corresponding to the N scene action instructions based on the execution sequence may be directly performed, that is, the following step S202.
Certainly, at this time, it may also happen that the existing test equipment has a reserved test time range, but the current time does not yet enter the reserved test time range, and at this time, it may be determined whether the test on the intelligent scene to be tested conflicts with the reserved test time range according to the time length filled by the research and development staff, for example, it is determined whether a time (after the current time) that is distant from the current time by the time length falls within the reserved test time range, if so, it is determined that the test equipment conflicts, and for this phenomenon that conflicts occur, it may also be determined that the test state of the test equipment is not idle.
Step S303, if the test state of any test equipment is not idle, acquiring the reserved test time range of all the test equipment.
The reserved test time range is also stored in the montodb storage of the middleware shown in fig. 1, and specifically, it can be as shown in table 2.
Test equipment Test time range reservation
Mobile phone
1 month and 1 day of 2021 (8 o 'clock-9 o' clock)
Air conditioner 1 month and 1 day of 2021 (8 o 'clock-9 o' clock)
Puzzle lock door 1 month and 1 day of 2021 (8 o 'clock-9 o' clock)
Infrared inductor 1 month 1 day 2021 (10 o dian-11 o dian)
Lamp with a light source 1 month 1 day 2021 (10 o dian-11 o dian)
Purifying device 1 month 1 day 2021 (10 o dian-11 o dian)
Television receiver 1 month 1 day 2021 (10 o dian-11 o dian)
Water heater 1 month 1 day 2021 (10 o dian-11 o dian)
TABLE 2
And step S304, determining the idle time range of all the test devices in the idle state at the same time according to the reserved test time range.
After the reserved test time range is obtained, the idle time range of the intelligent device related to the intelligent scene to be tested and in the idle state at the same time can be found. If the current time is 2021/1/7/30, the initial idle time ranges obtained according to table 2 include 1/2021 (7/30 to 8), 1/2021 (9 to 10), and 1/2021 (11).
In the foregoing process, the developer fills in the expected test time length of the intelligent scene to be tested, and if the test time length is 1 hour, the time range with the time length greater than or equal to 1 hour, that is, 1 month and 1 day (9 points to 10 points) in 2021 year and 1 month and 1 day (11 points later) in 2021 year can be determined from the initial idle time range.
At this time, the two time ranges may be prompted to the display screen and selected by the developer, or the latest time range may be determined as the final idle time range.
Step S305, if the current time is within the idle time range, sequentially sending the N scene motion instructions to the test devices corresponding to the N scene motion instructions based on the execution sequence.
In this step, as long as the current time is within the finally determined idle time range, the step of sequentially sending the N scene action instructions to the test devices corresponding to the N scene action instructions based on the execution sequence, that is, the following step S202, may be performed.
Based on the approach of fig. 3, the time for the research and development personnel to collect available test equipment can be greatly shortened.
In addition, after the test equipment related to the intelligent scene to be tested is obtained, initialization configuration can be performed on the test equipment, and generally, the initialization configuration needs to be performed on the test equipment according to preset configuration information and the corresponding relation between the scene action instruction and the test equipment.
Specifically, the initialization configuration may be divided into two types, one is to configure the test equipment according to different test equipment, that is, determine the target configuration information corresponding to each test equipment from the preset configuration information, and configure the test equipment according to the target configuration information corresponding to the test equipment for any test equipment.
For example, for a mobile phone, an ADB pre-installed in the mobile phone may be restarted to capture a log of the mobile phone, and then the mobile phone may connect with a home WiFi through remote software or an automated script, open a related application, and log in a preset account password in the application.
Another initialization configuration is a linkage configuration of the test equipment, and generally, if there are a plurality of test equipments corresponding to one scene action instruction, the equipment generally has linkage, for example, the scene action instruction "passing through the infrared sensor" in table 1 corresponds to the test equipments such as the infrared sensor, the lamp, the purifier, the television, and the water heater, so that the target test equipment including the trigger equipment and the linkage equipment can be determined according to the correspondence between the scene action instruction and the test equipment, and the trigger equipment and the linkage equipment in the target test equipment are configured in a linkage manner.
Taking the scene action command of "passing through the infrared sensor" in table 1 as an example, the infrared sensor, the lamp, the purifier, the television, and the water heater are target test devices, wherein the scene action command directly corresponds to the trigger device, that is, the trigger device and the linkage device can be distinguished according to the scene action command. In this example, the triggering device and the linkage device can be configured in a linkage manner, for example, when the infrared sensor senses that the object moves, the lamp, the purifier, the television and the water heater are turned on.
After the initialization configuration is completed, in order to ensure that the subsequent test process can be smoothly performed, self-checking can be performed, for example, whether the ADB of the mobile phone is restarted, whether WiFi connection is successful, whether an application program is opened and whether an account password is successfully logged in are checked; the equipment for checking the air conditioner and the like can control an infrared generator (such as a red mouse) to send an infrared simulation signal (such as turning on and off, increasing and decreasing the temperature and the like) to the air conditioner, or use an application program in a mobile phone to issue a related command, and then detect whether the running state of the air conditioner is changed according to the infrared simulation signal or the related command, wherein the red mouse is a device which can send infrared rays and can move at the same time.
And for linkage configuration, the trigger device can be directly controlled to check whether linkage exists in the linkage device, for example, linkage of the water heater and the curtain, after the water heater is opened, the curtain is automatically closed due to the linkage configuration, at the moment, whether the curtain is closed is checked, and self-checking is passed when the curtain is closed.
If the self-tests pass, the following steps can be executed, and if the self-tests do not pass completely, research personnel and maintenance personnel can be prompted, and the test process can be stopped.
Step S202, sequentially sending the N scene action instructions to the test equipment corresponding to the N scene action instructions based on the execution sequence.
In this step, some test devices may control or record the running state of the test device through cloud control, so that the scene action instruction may be sent to the test device through the cloud, or the scene action instruction may be sent to a middle control device, and the middle control device generates a simulation control instruction according to the scene action instruction, thereby controlling the test device.
Specifically, referring to fig. 4, fig. 4 is a schematic flowchart illustrating a process of sending a scene action command to a testing device according to another embodiment of the present application.
As shown in fig. 4, the sending of the scene action instruction to the testing device according to this embodiment may include:
step S401, when the ith scene action command is sent based on the execution sequence, determining the target control device corresponding to the ith scene action command according to the preset mapping relationship between the scene action command and the control devices, where i is 1, 2, 3, … …, N.
In this step, taking table 1 as an example, sending scene action commands according to the execution sequence may be to sequentially send "open the air conditioner and set the temperature by the mobile phone", "input the door lock password, open the door", "pass through the infrared sensor", "close the door", and "voice control the air conditioner".
The mapping relationship between the preset scene action command and the control device can be shown in table 3.
Scene action instructions Control device
Open the air conditioner and set the temperature through the mobile phone Mobile phone
Inputting door lock password, opening door Mechanical arm
Passing through an infrared sensor Red mouse
Door closing device Mechanical arm
Voice control air conditioner Sound box
TABLE 3
When the target control device is sent to the ith scene action command, the target control device corresponding to the ith scene action command may be determined, for example, if the ith scene action command is "enter door lock password, open door", then the corresponding target control device is the manipulator.
Step S402, the ith scene action instruction is sent to the target control device, so that the target control device generates a corresponding simulation control instruction, and the test device corresponding to the ith scene action instruction is controlled according to the simulation control instruction.
In this step, after the ith scene action instruction is sent to the target control device, the target control device may generate a corresponding simulation control instruction according to the scene action instruction, the simulation control instruction may be expressed in different manners according to different control devices, for the infrared generator, the simulation control instruction may be an infrared signal, for the manipulator, the simulation control instruction may be an instruction for controlling the manipulator to act, and for the sound box, the simulation control instruction may be an instruction for sending a preset voice.
Step S203, acquiring the operation states of all the test devices in response to the received scene action instruction.
In this step, if the target control device is determined in step S202, the operation state of each test device in response to the received simulation control instruction is obtained in this step.
Because the test equipment generally records the equipment log locally and uploads the current state and the instruction interaction information in the operation process to the cloud end, the equipment log can be directly obtained locally in the step, the instruction interaction information and the working state can be obtained from the cloud end, and all the obtained information is collectively called as the operation state in the step.
It should be noted that, when the running state is obtained, the running state may be obtained once every time the scene action instruction is sent, or the running state may be obtained in a unified manner after all the scene action instructions are executed. In the process of acquiring the scene action command once every time the scene action command is sent, the running state of the test equipment corresponding to the scene action command can be acquired, and the running states of all the test equipment can also be acquired.
In a specific example, for each scene action instruction in table 1, the operation state of the corresponding test device is obtained, for example, the scene action instruction with the execution sequence of "1" in table 1, and as the control process is a mobile phone-cloud-air conditioner, the log of the mobile phone application can be collected, and whether the mobile phone application is successfully opened or not and whether the action of opening the air conditioner button is triggered or not is checked; the cloud end is checked, whether an instruction for starting the air conditioner is received and sent to the air conditioner or not is judged, and whether an instruction for adjusting the temperature is received and sent to the equipment or not is judged; and checking an equipment log of the air conditioner, judging whether an air conditioner starting instruction forwarded by the cloud end is received, judging whether an adjusting temperature instruction forwarded by the cloud end is received, and the like.
And S204, integrating all the acquired running states to generate a test report of the intelligent scene to be tested.
After the operation states of all the test devices are obtained, all the operation states can be integrated, and of course, whether the execution of a certain scene action instruction is smooth or not can be judged according to the specific information of the operation states in the integration process, as shown in fig. 5, a sample schematic diagram of a test report provided in another embodiment of the present application is provided. If the scene action command is normal successfully, if all the scene action commands of the intelligent scene to be tested are normal, the conclusion of the test report can be normal, otherwise, the test report is abnormal, and the abnormal situations are listed so as to realize visualization and readability.
In the embodiment, the scene information of the scene to be tested is firstly acquired, wherein the scene information comprises N scene action instructions, and test equipment and an execution sequence corresponding to the N scene action instructions, then the N scene action instructions are sequentially sent to the test equipment corresponding to the N scene action instructions based on the execution sequence, the running states of the test equipment in response to the received scene action instructions are acquired, and finally all the obtained running states are integrated to generate the test of the intelligent scene to be tested, wherein based on the test, the running state of the test equipment can be changed by using the scene action instructions when the intelligent scene to be tested is tested, the running state of the test equipment in response to the received scene action instructions is automatically acquired, the test equipment does not need to be operated manually, and the running state of the test equipment does not need to be recorded manually, the cost of testing the intelligent scene is greatly reduced.
In order to more fully describe the above embodiments, a specific example is taken as an example to further describe the intelligent scenario testing method. Specifically, referring to fig. 6, fig. 6 is a schematic flowchart of an intelligent scenario testing method according to another embodiment of the present application.
As shown in fig. 6, a tester first configures through the Web foreground, and then configures through the middleware in fig. 1 to issue, so as to perform initialization configuration and self-inspection on the mobile phone, other test devices, and a linkage scene, for example, a model module, a mobile phone test driver and an intelligent APP application can be prepared in the mobile phone, for an equipment module, a relevant driver of the test device is prepared (i.e., installation is completed), and inspection of the test device is performed, for a scene module, linkage configuration (i.e., scene issue) is performed, and whether linkage of the test device is successful or not is performed. For this part, reference may be made to the description related to the configuration and the self-check in step S201, and details are not described here.
The smart action instructions, i.e., the execution modules in fig. 6, may then be sent in execution order. Taking the mode of going home as an example, can open air conditioner control interface through the APP of cell-phone, motor switch button, then utilize arm motor door lock password, utilize the arm to push away the door magnetism that the password locked the door, the simulation is opened a door, utilizing red mouse near the action of infrared inductor, trigger infrared induction, reuse arm to close a door magnetism, the simulation is closed a door, utilize intelligent audio amplifier broadcast pronunciation at last, "open the TV", this process specifically can refer to relevant explanation under step S202, and it is no longer repeated here.
And then, acquiring the running state of the test equipment by using an analysis module, matching scene expectation with the running state to obtain whether the intelligent action instruction is smoothly executed, and generating a test report by using a report module according to a matching result. For this process, reference may be specifically made to the relevant descriptions in step S203 and step S204, which are not described herein again.
Referring to fig. 7, fig. 7 is a schematic structural diagram of an intelligent scenario testing apparatus according to another embodiment of the present application.
As shown in fig. 7, the intelligent scenario testing apparatus provided in this embodiment may include:
the first obtaining module 701 is configured to obtain scene information of an intelligent scene to be tested, where the scene information includes N scene action instructions, and test equipment and an execution sequence corresponding to the N scene action instructions, where N is a positive integer;
a sending module 702, configured to send the N scene action instructions to test devices corresponding to the N scene action instructions in sequence based on the execution order;
a second obtaining module 703, configured to obtain an operating state in which all the test devices respectively respond to the received scene action instruction;
and an integrating module 704, configured to integrate all the obtained operating states, and generate a test report of the intelligent scene to be tested.
In an optional embodiment, the sending module includes:
the device comprises a first determining unit, a second determining unit and a control unit, wherein the first determining unit is used for determining target control equipment corresponding to an ith scene action instruction according to a preset mapping relation between the scene action instruction and the control equipment when the ith scene action instruction is sent based on an execution sequence, and i is 1, 2, 3, … … and N;
the first sending unit is used for sending the ith scene action instruction to the target control equipment so that the target control equipment generates a corresponding simulation control instruction, and controlling the test equipment corresponding to the ith scene action instruction according to the simulation control instruction;
the second acquisition module includes:
and the acquisition unit is used for acquiring the running state of all the test devices in response to the received simulation control instruction.
In an alternative embodiment, the apparatus further comprises:
the third acquisition module is used for acquiring the test states of the test equipment corresponding to the N scene action instructions;
and the first execution module is used for executing the step of sequentially sending the N scene action instructions to the test equipment corresponding to the N scene action instructions based on the execution sequence if the test states of all the test equipment are idle.
In an alternative embodiment, the apparatus further comprises:
the fourth acquisition module is used for acquiring the reserved test time range of all the test equipment if the test state of any test equipment is non-idle;
the determining module is used for determining the idle time range of all the test equipment in the idle state at the same time according to the reserved test time range;
and the second execution module is used for executing the step of sequentially sending the N scene action instructions to the test equipment corresponding to the N scene action instructions based on the execution sequence if the current moment is within the idle time range.
In an alternative embodiment, the apparatus further comprises:
the initialization configuration module is used for carrying out initialization configuration on the test equipment according to the preset configuration information and the corresponding relation between the scene action instruction and the test equipment;
and the third execution module is used for executing the step of sequentially sending the N scene action instructions to the test equipment corresponding to the N scene action instructions based on the execution sequence after the test equipment is initialized and configured.
In an alternative embodiment, the initialization module includes:
the second determining unit is used for determining target configuration information corresponding to each test device from the preset configuration information;
the first configuration unit is used for configuring the test equipment according to the target configuration information corresponding to the test equipment aiming at any test equipment;
the third determining unit is used for determining target test equipment comprising trigger equipment and linkage equipment according to the corresponding relation between the scene action instruction and the test equipment;
and the second configuration unit is used for performing linkage configuration on the trigger equipment and the linkage equipment in the target test equipment.
In an optional embodiment, the sending module includes:
and the second sending unit is used for sending the ith scene action instruction based on the execution sequence, if the test equipment corresponding to the ith scene action instruction comprises trigger equipment and linkage equipment, sending the ith scene action instruction to the corresponding trigger equipment so that the trigger equipment responds to the ith scene action instruction to control the linkage equipment to be linked.
Referring to fig. 8, fig. 8 is a schematic structural diagram of an electronic device according to another embodiment of the present application.
As shown in fig. 8, the electronic device provided in this embodiment includes: at least one processor 801, memory 802, at least one network interface 803, and other user interfaces 804. The various components in the electronic device 800 are coupled together by a bus system 805. It is understood that the bus system 805 is used to enable communications among the components connected. The bus system 805 includes a power bus, a control bus, and a status signal bus in addition to a data bus. For clarity of illustration, however, the various buses are labeled as bus system 805 in fig. 8.
The user interface 804 may include, among other things, a display, a keyboard, or a pointing device (e.g., a mouse, trackball, touch pad, or touch screen, among others.
It will be appreciated that the memory 802 in embodiments of the invention may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. Volatile Memory can be Random Access Memory (RAM), which acts as external cache Memory. By way of illustration and not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic Random Access Memory (DRAM), Synchronous Dynamic random access memory (Synchronous DRAM, SDRAM), Double Data Rate Synchronous Dynamic random access memory (ddr Data Rate SDRAM, ddr SDRAM), Enhanced Synchronous SDRAM (ESDRAM), synchlronous SDRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory 802 described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
In some embodiments, memory 802 stores elements, executable units or data structures, or a subset thereof, or an expanded set thereof as follows: an operating system 8021 and second application programs 8022.
The operating system 8021 includes various system programs, such as a framework layer, a core library layer, a driver layer, and the like, and is used for implementing various basic services and processing hardware-based tasks. The second application 8022 includes various second applications, such as a Media Player (Media Player), a Browser (Browser), and the like, for implementing various application services. A program implementing a method according to an embodiment of the present invention may be included in second application program 8022.
In the embodiment of the present invention, the processor 801 is configured to execute the method steps provided by each method embodiment by calling the program or instruction stored in the memory 802, specifically, the program or instruction stored in the second application program 8022, for example, including:
acquiring scene information of an intelligent scene to be tested, wherein the scene information comprises N scene action instructions, test equipment and an execution sequence which correspond to the N scene action instructions, and N is a positive integer;
sequentially sending the N scene action instructions to test equipment corresponding to the N scene action instructions based on the execution sequence;
acquiring the running states of all the test devices in response to the received scene action instructions;
and integrating all the obtained running states to generate a test report of the intelligent scene to be tested.
In an optional implementation manner, sequentially sending the N scene action instructions to the test devices corresponding to the N scene action instructions based on the execution order includes:
when an ith scene action instruction is sent based on an execution sequence, determining target control equipment corresponding to the ith scene action instruction according to a preset mapping relation between the scene action instruction and the control equipment, wherein i is 1, 2, 3, … …, N;
sending the ith scene action instruction to target control equipment so that the target control equipment generates a corresponding simulation control instruction, and controlling test equipment corresponding to the ith scene action instruction according to the simulation control instruction;
acquiring the running state of all the test devices in response to the received scene action instruction, including:
and acquiring the running state of all the test devices in response to the received simulation control instruction.
In an optional implementation manner, before sequentially sending the N scene action instructions to the test devices corresponding to the N scene action instructions based on the execution order, the method further includes:
acquiring test states of test equipment corresponding to the N scene action instructions;
and if the test states of all the test devices are idle, executing a step of sequentially sending the N scene action instructions to the test devices corresponding to the N scene action instructions based on the execution sequence.
In an optional implementation manner, before sequentially sending the N scene action instructions to the test devices corresponding to the N scene action instructions based on the execution order, the method further includes:
if the test state of any test equipment is not idle, acquiring the reserved test time range of all the test equipment;
determining an idle time range of all the test equipment in an idle state simultaneously according to the reserved test time range;
and if the current moment is within the idle time range, executing a step of sequentially sending the N scene action instructions to the test equipment corresponding to the N scene action instructions based on the execution sequence.
In an optional implementation manner, before sequentially sending the N scene action instructions to the test devices corresponding to the N scene action instructions based on the execution order, the method further includes:
carrying out initialization configuration on the test equipment according to the preset configuration information and the corresponding relation between the scene action instruction and the test equipment;
after the test equipment is initialized and configured, the step of sequentially sending the N scene action instructions to the test equipment corresponding to the N scene action instructions based on the execution sequence is executed.
In an optional embodiment, performing initialization configuration on the test device according to preset configuration information and a corresponding relationship between the scene action instruction and the test device includes:
determining target configuration information corresponding to each test device from preset configuration information;
aiming at any test equipment, configuring the test equipment according to target configuration information corresponding to the test equipment;
determining target test equipment comprising trigger equipment and linkage equipment according to the corresponding relation between the scene action instruction and the test equipment;
and carrying out linkage configuration on the trigger equipment and the linkage equipment in the target test equipment.
In an optional implementation manner, sequentially sending the N scene action instructions to the test devices corresponding to the N scene action instructions based on the execution order includes:
when the ith scene action instruction is sent based on the execution sequence, if the test equipment corresponding to the ith scene action instruction comprises trigger equipment and linkage equipment, the ith scene action instruction is sent to the corresponding trigger equipment, so that the trigger equipment responds to the ith scene action instruction to control linkage of the linkage equipment.
The methods disclosed in the embodiments of the present invention described above may be implemented in the processor 801 or implemented by the processor 801. The processor 801 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 801. The Processor 801 may be a general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, or discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software elements in the decoding processor. The software elements may be located in ram, flash, rom, prom, or eprom, registers, among other storage media that are well known in the art. The storage medium is located in the memory 802, and the processor 801 reads the information in the memory 802, and combines the hardware to complete the steps of the method.
It is to be understood that the embodiments described herein may be implemented in hardware, software, firmware, middleware, microcode, or any combination thereof. For a hardware implementation, the Processing units may be implemented in one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units configured to perform the functions of the present Application, or a combination thereof.
For a software implementation, the techniques herein may be implemented by means of units performing the functions herein. The software codes may be stored in a memory and executed by a processor. The memory may be implemented within the processor or external to the processor.
The embodiment of the invention also provides a storage medium (computer readable storage medium). The storage medium herein stores one or more programs. Among others, the storage medium may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as read-only memory, flash memory, a hard disk, or a solid state disk; the memory may also comprise a combination of memories of the kind described above.
When one or more programs in the storage medium can be executed by one or more processors, the intelligent scenario test method executed on the electronic device side is realized.
The processor is used for executing the intelligent scene test program stored in the memory to realize the following steps of the intelligent scene test method executed on the electronic equipment side:
acquiring scene information of an intelligent scene to be tested, wherein the scene information comprises N scene action instructions, test equipment and an execution sequence which correspond to the N scene action instructions, and N is a positive integer;
sequentially sending the N scene action instructions to test equipment corresponding to the N scene action instructions based on the execution sequence;
acquiring the running states of all the test devices in response to the received scene action instructions;
and integrating all the obtained running states to generate a test report of the intelligent scene to be tested.
In an optional implementation manner, sequentially sending the N scene action instructions to the test devices corresponding to the N scene action instructions based on the execution order includes:
when an ith scene action instruction is sent based on an execution sequence, determining target control equipment corresponding to the ith scene action instruction according to a preset mapping relation between the scene action instruction and the control equipment, wherein i is 1, 2, 3, … …, N;
sending the ith scene action instruction to target control equipment so that the target control equipment generates a corresponding simulation control instruction, and controlling test equipment corresponding to the ith scene action instruction according to the simulation control instruction;
acquiring the running state of all the test devices in response to the received scene action instruction, including:
and acquiring the running state of all the test devices in response to the received simulation control instruction.
In an optional implementation manner, before sequentially sending the N scene action instructions to the test devices corresponding to the N scene action instructions based on the execution order, the method further includes:
acquiring test states of test equipment corresponding to the N scene action instructions;
and if the test states of all the test devices are idle, executing a step of sequentially sending the N scene action instructions to the test devices corresponding to the N scene action instructions based on the execution sequence.
In an optional implementation manner, before sequentially sending the N scene action instructions to the test devices corresponding to the N scene action instructions based on the execution order, the method further includes:
if the test state of any test equipment is not idle, acquiring the reserved test time range of all the test equipment;
determining an idle time range of all the test equipment in an idle state simultaneously according to the reserved test time range;
and if the current moment is within the idle time range, executing a step of sequentially sending the N scene action instructions to the test equipment corresponding to the N scene action instructions based on the execution sequence.
In an optional implementation manner, before sequentially sending the N scene action instructions to the test devices corresponding to the N scene action instructions based on the execution order, the method further includes:
carrying out initialization configuration on the test equipment according to the preset configuration information and the corresponding relation between the scene action instruction and the test equipment;
after the test equipment is initialized and configured, the step of sequentially sending the N scene action instructions to the test equipment corresponding to the N scene action instructions based on the execution sequence is executed.
In an optional embodiment, performing initialization configuration on the test device according to preset configuration information and a corresponding relationship between the scene action instruction and the test device includes:
determining target configuration information corresponding to each test device from preset configuration information;
aiming at any test equipment, configuring the test equipment according to target configuration information corresponding to the test equipment;
determining target test equipment comprising trigger equipment and linkage equipment according to the corresponding relation between the scene action instruction and the test equipment;
and carrying out linkage configuration on the trigger equipment and the linkage equipment in the target test equipment.
In an optional implementation manner, sequentially sending the N scene action instructions to the test devices corresponding to the N scene action instructions based on the execution order includes:
when the ith scene action instruction is sent based on the execution sequence, if the test equipment corresponding to the ith scene action instruction comprises trigger equipment and linkage equipment, the ith scene action instruction is sent to the corresponding trigger equipment, so that the trigger equipment responds to the ith scene action instruction to control linkage of the linkage equipment.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
It is understood that the same or similar parts in the above embodiments may be mutually referred to, and the same or similar parts in other embodiments may be referred to for the content which is not described in detail in some embodiments.
It should be noted that, in the description of the present application, the terms "first", "second", etc. are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. Further, in the description of the present application, the meaning of "a plurality" means at least two unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and the scope of the preferred embodiments of the present application includes other implementations in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware that is related to instructions of a program, and the program may be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a separate product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.

Claims (10)

1. An intelligent scene testing method, characterized in that the method comprises:
acquiring scene information of an intelligent scene to be tested, wherein the scene information comprises N scene action instructions, and test equipment and an execution sequence which correspond to the N scene action instructions, and N is a positive integer;
sequentially sending the N scene action instructions to the test equipment corresponding to the N scene action instructions based on the execution sequence;
acquiring the running state of all the test devices in response to the received scene action instruction;
and integrating all the obtained running states to generate a test report of the intelligent scene to be tested.
2. The method of claim 1, wherein the sequentially sending the N scene action instructions to the test equipment corresponding to each of the N scene action instructions based on the execution order comprises:
when the ith scene action instruction is sent based on the execution sequence, determining target control equipment corresponding to the ith scene action instruction according to a preset mapping relation between the scene action instruction and the control equipment, wherein i is 1, 2, 3, … …, N;
sending the ith scene action instruction to the target control equipment so that the target control equipment generates a corresponding simulation control instruction, and sending the simulation control instruction to the test equipment corresponding to the ith scene action instruction;
the acquiring the running state of all the test devices in response to the received scene action instruction comprises:
and acquiring the running state of all the test equipment in response to the received simulation control instruction.
3. The method of claim 1, wherein prior to said sequentially sending the N scene action instructions to the test equipment to which each of the N scene action instructions corresponds based on the execution order, the method further comprises:
acquiring test states of test equipment corresponding to the N scene action instructions;
and if the test states of all the test devices are idle, executing the step of sequentially sending the N scene action instructions to the test devices corresponding to the N scene action instructions based on the execution sequence.
4. The method of claim 3, wherein prior to said sequentially sending the N scene action instructions to the test equipment to which the N scene action instructions correspond based on the execution order, the method further comprises:
if the test state of any test equipment is not idle, acquiring the reserved test time range of all the test equipment;
determining an idle time range of all the test equipment in an idle state simultaneously according to the reserved test time range;
and if the current moment is within the idle time range, the step of sequentially sending the N scene action instructions to the test equipment corresponding to the N scene action instructions based on the execution sequence is executed.
5. The method of claim 1, wherein prior to said sequentially sending the N scene action instructions to the test equipment to which each of the N scene action instructions corresponds based on the execution order, the method further comprises:
carrying out initialization configuration on the test equipment according to preset configuration information and the corresponding relation between the scene action instruction and the test equipment;
after the test equipment is initialized and configured, the step of sequentially sending the N scene action instructions to the test equipment corresponding to the N scene action instructions based on the execution sequence is executed.
6. The method according to claim 5, wherein the performing initialization configuration on the test device according to the preset configuration information and the corresponding relationship between the scene action instruction and the test device comprises:
determining target configuration information corresponding to each test device from the preset configuration information;
aiming at any test equipment, configuring the test equipment according to target configuration information corresponding to the test equipment;
determining target test equipment comprising trigger equipment and linkage equipment according to the corresponding relation between the scene action instruction and the test equipment;
and carrying out linkage configuration on the trigger equipment and the linkage equipment in the target test equipment.
7. The method of claim 1, wherein the sequentially sending the N scene action instructions to the test equipment corresponding to each of the N scene action instructions based on the execution order comprises:
when the ith scene action instruction is sent based on the execution sequence, if the test equipment corresponding to the ith scene action instruction comprises trigger equipment and linkage equipment, the ith scene action instruction is sent to the corresponding trigger equipment, so that the trigger equipment responds to the ith scene action instruction to control the linkage equipment to be linked.
8. An intelligent scenario testing apparatus, the apparatus comprising:
the system comprises a first acquisition module, a second acquisition module and a third acquisition module, wherein the first acquisition module is used for acquiring scene information of an intelligent scene to be tested, the scene information comprises N scene action instructions, and test equipment and an execution sequence which respectively correspond to the N scene action instructions, and N is a positive integer;
a sending module, configured to send the N scene action instructions to the test devices corresponding to the N scene action instructions in sequence based on the execution order;
the second acquisition module is used for acquiring the running states of all the test devices in response to the received scene action instructions;
and the integration module is used for integrating all the acquired running states and generating a test report of the intelligent scene to be tested.
9. An electronic device, comprising: at least one processor and memory;
the processor is configured to execute the intelligent scenario test program stored in the memory to implement the intelligent scenario test method of any one of claims 1-7.
10. A storage medium storing one or more programs which, when executed, implement the intelligent scenario testing method of any of claims 1-7.
CN202110342833.6A 2021-03-30 2021-03-30 Intelligent scene test method and device, electronic equipment and storage medium Active CN113032267B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110342833.6A CN113032267B (en) 2021-03-30 2021-03-30 Intelligent scene test method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110342833.6A CN113032267B (en) 2021-03-30 2021-03-30 Intelligent scene test method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113032267A true CN113032267A (en) 2021-06-25
CN113032267B CN113032267B (en) 2024-03-12

Family

ID=76453250

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110342833.6A Active CN113032267B (en) 2021-03-30 2021-03-30 Intelligent scene test method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113032267B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115277516A (en) * 2022-07-22 2022-11-01 四川虹美智能科技有限公司 Automatic scene testing system and method based on API (application program interface)
CN115378929A (en) * 2022-10-26 2022-11-22 杭州华橙软件技术有限公司 Method, system, device and storage medium for solving multi-scheme execution conflict

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104932456A (en) * 2015-04-27 2015-09-23 小米科技有限责任公司 Intelligent scene realizing method and device, intelligent terminal and controller
US20150268648A1 (en) * 2014-03-24 2015-09-24 Xiaomi Inc. Method and terminal device for controlling smart home appliance
CN110210361A (en) * 2019-05-26 2019-09-06 初速度(苏州)科技有限公司 A kind of creation method and device, car-mounted terminal of test scene
US20190371322A1 (en) * 2018-05-31 2019-12-05 Beijing Baidu Netcom Science And Technology Co., Ltd. Method, apparatus and system for testing intelligent voice device
CN110768863A (en) * 2019-10-10 2020-02-07 南京创维信息技术研究院有限公司 Scheme for simulation test of AIOT equipment
CN111061160A (en) * 2019-11-26 2020-04-24 星络智能科技有限公司 Storage medium, intelligent household control equipment and control method
CN111124911A (en) * 2019-12-20 2020-05-08 苏州浪潮智能科技有限公司 Automatic testing method, device, equipment and readable storage medium
CN111475413A (en) * 2020-04-02 2020-07-31 深圳创维-Rgb电子有限公司 Test method and device
CN111665729A (en) * 2020-05-15 2020-09-15 青岛海尔智能技术研发有限公司 Household equipment control method and device and computer equipment
WO2020228032A1 (en) * 2019-05-16 2020-11-19 深圳市欢太科技有限公司 Scene pushing method, apparatus and system, and electronic device and storage medium
CN112034726A (en) * 2020-09-15 2020-12-04 百度在线网络技术(北京)有限公司 Scene-based control method, device, equipment and storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150268648A1 (en) * 2014-03-24 2015-09-24 Xiaomi Inc. Method and terminal device for controlling smart home appliance
CN104932456A (en) * 2015-04-27 2015-09-23 小米科技有限责任公司 Intelligent scene realizing method and device, intelligent terminal and controller
US20190371322A1 (en) * 2018-05-31 2019-12-05 Beijing Baidu Netcom Science And Technology Co., Ltd. Method, apparatus and system for testing intelligent voice device
WO2020228032A1 (en) * 2019-05-16 2020-11-19 深圳市欢太科技有限公司 Scene pushing method, apparatus and system, and electronic device and storage medium
CN110210361A (en) * 2019-05-26 2019-09-06 初速度(苏州)科技有限公司 A kind of creation method and device, car-mounted terminal of test scene
CN110768863A (en) * 2019-10-10 2020-02-07 南京创维信息技术研究院有限公司 Scheme for simulation test of AIOT equipment
CN111061160A (en) * 2019-11-26 2020-04-24 星络智能科技有限公司 Storage medium, intelligent household control equipment and control method
CN111124911A (en) * 2019-12-20 2020-05-08 苏州浪潮智能科技有限公司 Automatic testing method, device, equipment and readable storage medium
CN111475413A (en) * 2020-04-02 2020-07-31 深圳创维-Rgb电子有限公司 Test method and device
CN111665729A (en) * 2020-05-15 2020-09-15 青岛海尔智能技术研发有限公司 Household equipment control method and device and computer equipment
CN112034726A (en) * 2020-09-15 2020-12-04 百度在线网络技术(北京)有限公司 Scene-based control method, device, equipment and storage medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115277516A (en) * 2022-07-22 2022-11-01 四川虹美智能科技有限公司 Automatic scene testing system and method based on API (application program interface)
CN115378929A (en) * 2022-10-26 2022-11-22 杭州华橙软件技术有限公司 Method, system, device and storage medium for solving multi-scheme execution conflict

Also Published As

Publication number Publication date
CN113032267B (en) 2024-03-12

Similar Documents

Publication Publication Date Title
Nishikawa et al. UbiREAL: Realistic smartspace simulator for systematic testing
US20190391541A1 (en) Technologies for conversational interfaces for system control
CN113032267A (en) Intelligent scene testing method and device, electronic equipment and storage medium
CN111104341A (en) Automatic testing method, device, equipment and storage medium for intelligent household equipment
TW201719333A (en) A voice controlling system and method
WO2022222719A1 (en) Configuration method for internet of things device linkage, terminal, and system
CN109358512A (en) A kind of intelligent home furnishing control method, cloud server, system and storage medium
Hidayat et al. Scheduler and voice recognition on home automation control system
CN109478304A (en) The building system of optimization patient room is controlled to improve the system and method for patient's result
Zaidi et al. Redefining home automation through voice recognition system
Lei et al. SHSim: An OSGI-based smart home simulator
CN106326087A (en) Webpage experiencing method based on robot operating system and system thereof
CN116719969A (en) Intelligent home interaction data analysis method and system based on Internet of things
EP4261692A1 (en) Self-learning application test automation
CN112815610A (en) Control method and device for ion generator in household appliance and household appliance
CN116431852A (en) Environment state visualization method and device, storage medium and electronic device
CN117809629B (en) Interaction system updating method and device based on large model and storage medium
CN114398693B (en) Internet of things system building method and device, electronic equipment and storage medium
EP3457284A1 (en) Technique for testing an electronic device
US20200233405A1 (en) System and method for simulating system operation conditions
CN111949248A (en) Server connection method and terminal equipment
CN114826899B (en) Debugging method and device for equipment control service, storage medium and electronic device
Mudgal et al. Augmented Reality for Advanced Home Applications
CN113791547B (en) Household appliance intelligent control method and device, electronic equipment and storage medium
Park et al. Development of simulation system for validating contextual rule in smart home

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