CN111104341A - Automatic testing method, device, equipment and storage medium for intelligent household equipment - Google Patents

Automatic testing method, device, equipment and storage medium for intelligent household equipment Download PDF

Info

Publication number
CN111104341A
CN111104341A CN201911422475.9A CN201911422475A CN111104341A CN 111104341 A CN111104341 A CN 111104341A CN 201911422475 A CN201911422475 A CN 201911422475A CN 111104341 A CN111104341 A CN 111104341A
Authority
CN
China
Prior art keywords
equipment
current
test case
tested
automatic
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
CN201911422475.9A
Other languages
Chinese (zh)
Other versions
CN111104341B (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 CN201911422475.9A priority Critical patent/CN111104341B/en
Publication of CN111104341A publication Critical patent/CN111104341A/en
Application granted granted Critical
Publication of CN111104341B publication Critical patent/CN111104341B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases

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)
  • Selective Calling Equipment (AREA)

Abstract

The invention relates to the technical field of intelligent home furnishing, and discloses an automatic testing method, an automatic testing device, an automatic testing equipment and a storage medium for intelligent home furnishing equipment, wherein the method comprises the following steps: acquiring current equipment attributes of the intelligent household equipment to be tested; extracting the current equipment type and the current equipment position from the current equipment attribute, and searching a target automatic test case corresponding to the intelligent household equipment to be tested from a preset test case set; and extracting a target automatic test strategy from the target automatic test case to automatically test the intelligent household equipment to be tested. Therefore, the corresponding target automatic test case is determined according to the current equipment type and the current equipment position, and the target automatic test strategy is selected from the target automatic test case for automatic test, so that the technical problems of how to conveniently and quickly perform proper automatic test on various intelligent household equipment and improve the test efficiency are solved.

Description

Automatic testing method, device, equipment and storage medium for intelligent household equipment
Technical Field
The invention relates to the technical field of intelligent home, in particular to an automatic testing method, device, equipment and storage medium for intelligent home equipment.
Background
The intelligent home equipment is various, large objects comprise air conditioners, washing machines, televisions and the like, small objects comprise alarms, intelligent bulbs, cameras and the like, the shapes, functions and use modes of all types of equipment are uniformly distributed and the same, interaction is generated by relying on physical media such as touch panels, infrared rays, voice and the like, so that the test workload is large, for the intelligent home equipment, automation is difficult to realize by the traditional network technology, the problem that an automation case depends on code capability, the readability is poor, the maintenance cost is high and the like exists.
Therefore, the technical problem of how to conveniently and quickly carry out proper automatic test on various intelligent household devices and improve the test efficiency exists essentially.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide an automatic testing method, device, equipment and storage medium for intelligent household equipment, and aims to solve the technical problems of how to conveniently and quickly perform proper automatic testing on various intelligent household equipment and improve testing efficiency to a certain extent.
In order to achieve the above object, the present invention provides an automatic testing method for smart home devices, which comprises the following steps:
acquiring current equipment attributes of the intelligent household equipment to be tested;
extracting the current equipment type and the current equipment position of the intelligent household equipment to be tested from the current equipment attribute;
searching a target automatic test case corresponding to the intelligent household equipment to be tested from a preset test case set according to the current equipment type and the current equipment position;
extracting a target automation test strategy from the target automation test case;
and automatically testing the intelligent household equipment to be tested according to the target automatic testing strategy.
Preferably, the searching for the target automation test case corresponding to the smart home device to be tested from a preset test case set according to the current device type and the current device position specifically includes:
determining a current home scene where the intelligent home equipment to be tested is located according to the current equipment position;
selecting a current test case set corresponding to the current home scene from a preset test case set;
and searching a target automatic test case corresponding to the intelligent household equipment to be tested from the current test case set according to the current equipment type.
Preferably, the determining the current home scene where the to-be-tested smart home device is located according to the current device location specifically includes:
matching the current device position with a device position in a preset home scene mapping list, wherein the preset home scene mapping list comprises: home scenes and device locations;
determining a target home scene corresponding to the current equipment position according to the matching result;
and taking the target home scene as the current home scene of the intelligent home equipment to be tested.
Preferably, the searching for the target automation test case corresponding to the smart home device to be tested from the current test case set according to the current device type specifically includes:
traversing the automatic test cases in the current test case set;
the traversed automatic test case is used as an automatic test case to be selected;
obtaining the type of equipment to be selected corresponding to the automatic test case to be selected;
and determining a target automatic test case corresponding to the intelligent household equipment to be tested according to the current equipment type, the equipment type to be tested and the automatic test case to be tested.
Preferably, the determining a target automatic test case corresponding to the smart home device to be tested according to the current device type, the device type to be tested, and the automatic test case to be tested specifically includes:
judging whether the current equipment type is the same as the equipment type to be selected;
and if the current equipment type is the same as the type of the equipment to be selected, taking the automatic test case to be selected as a target automatic test case corresponding to the intelligent household equipment to be tested.
Preferably, before the obtaining of the current device attribute of the smart home device to be tested, the method further includes:
acquiring home scenes in a preset area, and acquiring intelligent home equipment in each home scene;
searching a manual test strategy corresponding to each intelligent household device;
and establishing a preset test case set according to the manual test strategy.
Preferably, the establishing a preset test case set according to the manual test strategy specifically includes:
converting the manual testing strategy into an automated testing strategy;
generating an automatic test case according to the automatic test strategy;
and establishing a preset test case set according to the automatic test cases.
In addition, in order to achieve the above object, the present invention further provides an automatic testing apparatus for smart home devices, including:
the attribute acquisition module is used for acquiring the current equipment attribute of the intelligent household equipment to be tested;
the information extraction module is used for extracting the current equipment type and the current equipment position of the intelligent household equipment to be tested from the current equipment attribute;
the target case module is used for searching a target automatic test case corresponding to the intelligent home equipment to be tested from a preset test case set according to the current equipment type and the current equipment position;
the target method module is used for extracting a target automation test strategy from the target automation test case;
and the target testing module is used for automatically testing the intelligent household equipment to be tested according to the target automatic testing strategy.
In addition, in order to achieve the above object, the present invention further provides an automatic testing device for smart home devices, where the automatic testing device for smart home devices includes: the automatic testing method comprises a memory, a processor and an automatic testing program of the intelligent household equipment, wherein the automatic testing program of the intelligent household equipment is stored in the memory and can run on the processor, and the automatic testing program of the intelligent household equipment is configured with steps for realizing the automatic testing method of the intelligent household equipment.
In addition, in order to achieve the above object, the present invention further provides a storage medium, where the storage medium stores an automatic testing program for smart home devices, and the automatic testing program for smart home devices, when executed by a processor, implements the steps of the automatic testing method for smart home devices as described above.
According to the automatic testing method of the intelligent household equipment, the current equipment attribute of the intelligent household equipment to be tested is obtained; extracting the current equipment type and the current equipment position of the intelligent household equipment to be tested from the current equipment attribute; searching a target automatic test case corresponding to the intelligent household equipment to be tested from a preset test case set according to the current equipment type and the current equipment position; extracting a target automation test strategy from the target automation test case; and automatically testing the intelligent household equipment to be tested according to the target automatic testing strategy. Therefore, the corresponding target automatic test case is determined according to the current equipment type and the current equipment position of the intelligent home equipment to be tested, and the target automatic test strategy is selected from the target automatic test case for automatic test, so that the technical problem of how to conveniently and quickly perform proper automatic test on various intelligent home equipment and improve the test efficiency is solved.
Drawings
Fig. 1 is a schematic structural diagram of an automatic testing device for smart home devices in a hardware operating environment according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a first embodiment of an automatic testing method for smart home devices according to the present invention;
fig. 3 is a schematic flow chart of a second embodiment of the automatic testing method for smart home devices according to the present invention;
fig. 4 is a schematic flow chart of a third embodiment of an automatic testing method for smart home devices according to the present invention;
fig. 5 is a functional module diagram of the first embodiment of the automatic testing apparatus for smart home devices according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an automatic testing device of an intelligent home device in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the automatic testing device for smart home devices may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may comprise a Display screen (Display), an input unit such as keys, and the optional user interface 1003 may also comprise a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The Memory 1005 may be a Random Access Memory (RAM) Memory or a non-volatile Memory (e.g., a magnetic disk Memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the device configuration shown in fig. 1 does not constitute a limitation of the smart home device automation test device, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, a memory 1005 as a storage medium may include an operating system, a network communication module, a user interface module, and an intelligent home device automation test program.
In the automatic testing device for smart home devices shown in fig. 1, the network interface 1004 is mainly used for connecting an external network and performing data communication with other network devices; the user interface 1003 is mainly used for connecting to a user equipment and performing data communication with the user equipment; the device calls the automatic testing program of the intelligent home equipment stored in the memory 1005 through the processor 1001, and executes the automatic testing method of the intelligent home equipment provided by the embodiment of the invention.
Based on the hardware structure, the embodiment of the automatic testing method for the intelligent household equipment is provided.
Referring to fig. 2, fig. 2 is a schematic flow chart of a first embodiment of an automatic testing method for smart home devices according to the present invention.
In a first embodiment, the automatic testing method for the smart home devices includes the following steps:
and step S10, acquiring the current equipment attribute of the intelligent household equipment to be tested.
It should be noted that the execution main body in this embodiment may be an automatic testing device for smart home devices, and may also be other devices that can achieve the same or similar functions.
It can be understood that each smart home device has its own device attribute, where the device attribute includes a device type, a device location, and the like, the device type includes an air conditioner, a washing machine, a television, an alarm, an intelligent bulb, and the like, and the device location represents a specific location of the smart home device.
Step S20, extracting the current device type and the current device position of the intelligent household device to be tested from the current device attribute.
It should be understood that after the current device attributes of the to-be-tested smart home devices are obtained, the current device types and the current device positions are extracted from the current device attributes, and the target automated test cases corresponding to the to-be-tested smart home devices are determined according to the current device types and the current device positions.
And step S30, searching a target automatic test case corresponding to the intelligent household equipment to be tested from a preset test case set according to the current equipment type and the current equipment position.
It should be noted that, a traditional automated testing framework, such as selenium, relies on the webdriver provided by its framework, and then, through its corresponding API interface, realizes automated operation and automated inspection, for the internet of things equipment, it is impossible to use webdriver driver for driving, and there is no existing framework in the industry that can adapt to different testing methods of the internet of things, so that a new framework needs to be designed for replacement, on the premise of satisfying readability and extensibility, the realization and efficiency of automation are guaranteed, selection is performed on the basis of the existing cases, a part of cases is selected as automated cases, then according to the automated flow, an environment is built, the automated cases are converted, corresponding automated services are written, the automated cases are debugged, analysis is performed according to the test report, a test is issued according to the version progress, subsequent continuous automated maintenance is performed, and the like, and the framework is used as an automated bridge, and bridging the test case with the corresponding test strategy to form automation.
It can be understood that the current home scene where the to-be-tested smart home device is located may be determined according to the current device location, for example, when the current device location is a bedroom, the current home scene where the to-be-tested smart home device is located may be determined to be a bedroom scene, then the current test case set corresponding to the bedroom scene is searched from the preset test case set, and then the target automated test case corresponding to the current device type is searched from the current test case set.
And step S40, extracting a target automation test strategy from the target automation test case.
It should be understood that the target automation test case is composed of a plurality of automation test strategies, and specifically, an automation test case requires a plurality of steps to complete the test, and each step is a test method, which is taken as an automation test strategy.
It can be understood that the target automatic test strategy is extracted from the target automatic test case and combined to form an automatic test step to automatically test the intelligent home equipment to be tested.
And step S50, automatically testing the intelligent household equipment to be tested according to the target automatic testing strategy.
It can be understood that a plurality of target automatic test cases corresponding to the intelligent home equipment to be tested may be obtained according to the above steps, target automatic test strategies are extracted from the target automatic test cases, the target automatic test strategies are combined respectively, and an automatic test step is generated, wherein the automatic test step can simulate human behaviors to perform automatic tests on the intelligent home equipment to be tested, and generate corresponding automatic test reports according to the detection results.
It can be understood that, in the automatic test process, the intelligent home equipment to be tested can be tested according to a plurality of target automatic test strategies in sequence, and the intelligent home equipment to be tested can also be tested repeatedly according to one automatic test strategy.
In the embodiment, the current equipment attribute of the intelligent household equipment to be tested is obtained; extracting the current equipment type and the current equipment position of the intelligent household equipment to be tested from the current equipment attribute; searching a target automatic test case corresponding to the intelligent household equipment to be tested from a preset test case set according to the current equipment type and the current equipment position; extracting a target automation test strategy from the target automation test case; and automatically testing the intelligent household equipment to be tested according to the target automatic testing strategy. Therefore, the corresponding target automatic test case is determined according to the current equipment type and the current equipment position of the intelligent home equipment to be tested, and the target automatic test strategy is selected from the target automatic test case for automatic test, so that the technical problem of how to conveniently and quickly perform proper automatic test on various intelligent home equipment and improve the test efficiency is solved.
In an embodiment, as shown in fig. 3, a second embodiment of the automatic testing method for smart home devices of the present invention is provided based on the first embodiment, where the step S30 includes:
step S301, determining the current home scene where the intelligent home equipment to be tested is located according to the current equipment position.
It can be understood that the current home scene where the to-be-tested home equipment is located can be determined according to the current equipment position, for example, if the current equipment position is a bedroom, the current home scene where the to-be-tested home equipment is located is determined to be a bedroom scene; if the current equipment position is a living room, the current home scene is a living room scene; if the current device location is a kitchen, the current home scene may be a kitchen scene, or other locations and other home scenes, which is not limited in this embodiment.
Further, the step S301 includes:
matching the current device position with a device position in a preset home scene mapping list, wherein the preset home scene mapping list comprises: home scenes and device locations; determining a target home scene corresponding to the current equipment position according to the matching result; and taking the target home scene as the current home scene of the intelligent home equipment to be tested.
It should be understood that a preset home scene mapping list is established in advance according to a home scene and a device position, after a current device position of an intelligent home device to be tested is obtained, a target home scene corresponding to the intelligent home device to be tested can be searched from the preset home scene mapping list according to the current device position, and the target home scene is used as a current home scene where the intelligent home device to be tested is located.
Step S302, selecting a current test case set corresponding to the current home scene from a preset test case set.
It can be understood that the current home scene is matched with the home scene labels corresponding to the respective automated test cases in the preset test case set, so that the current test case set can be obtained, and the automated test cases in the current test case set are all the test cases used for the current home scene.
Step S303, searching a target automatic test case corresponding to the intelligent household equipment to be tested from the current test case set according to the current equipment type.
Further, the step S303 includes:
traversing the automatic test cases in the current test case set; the traversed automatic test case is used as an automatic test case to be selected; obtaining the type of equipment to be selected corresponding to the automatic test case to be selected; and determining a target automatic test case corresponding to the intelligent household equipment to be tested according to the current equipment type, the equipment type to be tested and the automatic test case to be tested.
It should be understood that the automatic test cases in the current test case set are traversed, the traversed automatic test cases are used as the automatic test cases to be selected, then the types of the devices to be selected corresponding to the automatic test cases to be selected are obtained, the types of the devices to be selected are compared with the types of the current devices, whether the types of the devices to be selected are the same or not is judged according to the comparison result, if the types of the current devices are the same as the types of the devices to be selected, the automatic test cases to be selected are used as the target automatic test cases corresponding to the intelligent home devices to be tested, and the corresponding target automatic test cases are selected for the intelligent home devices to be tested through the traversing and comparing mode.
In the embodiment, the current home scene where the intelligent home equipment to be tested is located is determined according to the current equipment position, the current test case set corresponding to the current home scene is selected from the preset test case set, the target automatic test case corresponding to the intelligent home equipment to be tested is searched from the current test case set according to the current equipment type, so that the current test case set is selected from the preset test case set according to the current home scene, and then the target automatic test case is selected from the current test case set according to the current equipment type, so that the accuracy of test case selection is improved, and the automatic test efficiency is also improved.
In an embodiment, as shown in fig. 4, a third embodiment of an automatic testing method for smart home devices according to the present invention is provided based on the first embodiment or the second embodiment, and in this embodiment, based on the first embodiment, before the step S10, the method further includes:
and S001, acquiring home scenes in a preset area, and acquiring intelligent home equipment in each home scene.
It is to be understood that the preset area may be a home area, an office area, a restaurant area, or other areas, which is not limited in this embodiment.
It should be understood that, when the preset area is a residential home area, the home scene includes a bedroom scene, a study room scene, a living room scene, a kitchen scene, a toilet scene, and the like, and may also include other scenes, which is not limited in this embodiment.
In a specific implementation, the smart home devices in each home scene are acquired, for example, the smart home devices in the bedroom scene are acquired by an air conditioner, a smart bulb, a television and the like, and the washing machine in the toilet scene is acquired.
And S002, searching for a manual test strategy corresponding to each intelligent household device.
It should be noted that each kind of smart home device has a corresponding manual test strategy, and a manual test case is generated according to the manual test strategy, and the execution process of the manual test case can be decomposed into three layers of input, response and output.
In a particular implementation, for example, the input layer may include: the response layer can comprise simulation operations such as infrared input programmable equipment, serial port input shell environment commands, network input data packet sending instructions, physical input mechanical arms and the like: air conditioner, camera, refrigerator, the output layer can include: visual output OCR image recognition, serial port output debugging logs and the like, network output data packet response reporting server, state variable memory register data, other output sounds and the like, when the manual test case is executed, an operation is selected from an input layer, such as infrared operation, an infrared remote controller key is used, and the like, an intermediate response layer, such as air conditioning equipment and the like, is operated, and then an operation is selected from an output layer, such as checking the temperature value of an air conditioning panel and the like.
And S003, establishing a preset test case set according to the manual test strategy.
Further, the step S003 includes:
and converting the manual test strategy into an automatic test strategy, generating an automatic test case according to the automatic test strategy, and establishing a preset test case set according to the automatic test case.
It can be understood that the manual test strategy in the manual test case can be simulated to generate the automatic test strategy, for example, the input layer is a simulated infrared remote controller, the output layer is a simulated human eye to check the air conditioner panel, so that various automatic test strategies can be derived, and then the automatic test case can be generated according to the automatic test strategy.
In a specific implementation, for example, the manual test case is: 1. controlling the air conditioner to start by using a remote controller; 2. looking at the air conditioner panel, a figure of temperature appears. The automatic test case generated by simulating the manual test case is as follows: 1. simulating an infrared remote controller to control the air conditioner to start; 2. the simulation personnel check the air conditioner panel, so that the automatic test case is similar to the manual test case, the readability of the automatic test case is ensured, and the automation capacity of the automatic test case is also ensured.
It should be understood that after obtaining a plurality of automatic test cases of the smart home, a preset test case set is established according to the automatic test cases, each automatic test case in the preset test case set is provided with a corresponding device type label and a home scene label, and a suitable target automatic test case can be selected for the smart home device to be tested from the preset test set according to the device type label and the home scene label.
In the embodiment, the intelligent home devices in each home scene are obtained, the manual test strategies corresponding to the intelligent home devices are converted into the automatic test strategies, the automatic test cases are generated according to the automatic test strategies, the preset test case set is established according to the automatic test cases, so that when the intelligent home devices to be tested need to be tested, the automatic test cases corresponding to the intelligent home devices to be tested can be found in the preset test case set, the intelligent home devices to be tested are tested according to the automatic test cases, the readability of the manual test cases is maintained by the automatic test cases, the automatic test cases can be adapted to different types of intelligent home devices to be tested, and the test efficiency and the readability of the intelligent home devices to be tested are improved.
In addition, an embodiment of the present invention further provides a storage medium, where the storage medium stores an automatic testing program for smart home devices, and the automatic testing program for smart home devices, when executed by a processor, implements the steps of the automatic testing method for smart home devices as described above.
Since the storage medium adopts all technical solutions of all the embodiments, at least all the beneficial effects brought by the technical solutions of the embodiments are achieved, and no further description is given here.
In addition, referring to fig. 5, an embodiment of the present invention further provides an automatic testing apparatus for smart home devices, where the automatic testing apparatus for smart home devices includes:
the attribute obtaining module 10 is configured to obtain a current device attribute of the smart home device to be tested.
It can be understood that each smart home device has its own device attribute, where the device attribute includes a device type, a device location, and the like, the device type includes an air conditioner, a washing machine, a television, an alarm, an intelligent bulb, and the like, and the device location represents a specific location of the smart home device.
And the information extraction module 20 is configured to extract the current device type and the current device position of the smart home device to be tested from the current device attribute.
It should be understood that after the current device attributes of the to-be-tested smart home devices are obtained, the current device types and the current device positions are extracted from the current device attributes, and the target automated test cases corresponding to the to-be-tested smart home devices are determined according to the current device types and the current device positions.
And the target case module 30 is configured to search a target automation test case corresponding to the to-be-tested smart home device from a preset test case set according to the current device type and the current device position.
It should be noted that, a traditional automated testing framework, such as selenium, relies on the webdriver provided by its framework, and then, through its corresponding API interface, realizes automated operation and automated inspection, for the internet of things equipment, it is impossible to use webdriver driver for driving, and there is no existing framework in the industry that can adapt to different testing methods of the internet of things, so that a new framework needs to be designed for replacement, on the premise of satisfying readability and extensibility, the realization and efficiency of automation are guaranteed, selection is performed on the basis of the existing cases, a part of cases is selected as automated cases, then according to the automated flow, an environment is built, the automated cases are converted, corresponding automated services are written, the automated cases are debugged, analysis is performed according to the test report, a test is issued according to the version progress, subsequent continuous automated maintenance is performed, and the like, and the framework is used as an automated bridge, and bridging the test case with the corresponding test strategy to form automation.
It can be understood that the current home scene where the to-be-tested smart home device is located may be determined according to the current device location, for example, when the current device location is a bedroom, the current home scene where the to-be-tested smart home device is located may be determined to be a bedroom scene, then the current test case set corresponding to the bedroom scene is searched from the preset test case set, and then the target automated test case corresponding to the current device type is searched from the current test case set.
And the target method module 40 is used for extracting a target automation test strategy from the target automation test case.
It should be understood that the target automation test case is composed of a plurality of automation test strategies, and specifically, an automation test case requires a plurality of steps to complete the test, and each step is a test method, which is taken as an automation test strategy.
It can be understood that the target automatic test strategy is extracted from the target automatic test case and combined to form an automatic test step to automatically test the intelligent home equipment to be tested.
And the target testing module 50 is used for automatically testing the intelligent household equipment to be tested according to the target automatic testing strategy.
It can be understood that a plurality of target automatic test cases corresponding to the intelligent home equipment to be tested may be obtained according to the above steps, target automatic test strategies are extracted from the target automatic test cases, the target automatic test strategies are combined respectively, and an automatic test step is generated, wherein the automatic test step can simulate human behaviors to perform automatic tests on the intelligent home equipment to be tested, and generate corresponding automatic test reports according to the detection results.
It can be understood that, in the automatic test process, the intelligent home equipment to be tested can be tested according to a plurality of target automatic test strategies in sequence, and the intelligent home equipment to be tested can also be tested repeatedly according to one automatic test strategy.
In the embodiment, the current equipment attribute of the intelligent household equipment to be tested is obtained; extracting the current equipment type and the current equipment position of the intelligent household equipment to be tested from the current equipment attribute; searching a target automatic test case corresponding to the intelligent household equipment to be tested from a preset test case set according to the current equipment type and the current equipment position; extracting a target automation test strategy from the target automation test case; and automatically testing the intelligent household equipment to be tested according to the target automatic testing strategy. Therefore, the corresponding target automatic test case is determined according to the current equipment type and the current equipment position of the intelligent home equipment to be tested, and the target automatic test strategy is selected from the target automatic test case for automatic test, so that the technical problem of how to conveniently and quickly perform proper automatic test on various intelligent home equipment and improve the test efficiency is solved.
In an embodiment, the target use case module 30 is further configured to determine, according to the current device position, a current home scene where the smart home device to be tested is located; selecting a current test case set corresponding to the current home scene from a preset test case set; and searching a target automatic test case corresponding to the intelligent household equipment to be tested from the current test case set according to the current equipment type.
In an embodiment, the target use case module 30 is further configured to match the current device location with a device location in a preset home scene mapping list, where the preset home scene mapping list includes: home scenes and device locations; determining a target home scene corresponding to the current equipment position according to the matching result; and taking the target home scene as the current home scene of the intelligent home equipment to be tested.
In an embodiment, the target use case module 30 is further configured to traverse the automated test cases in the current test case set; the traversed automatic test case is used as an automatic test case to be selected; obtaining the type of equipment to be selected corresponding to the automatic test case to be selected; and determining a target automatic test case corresponding to the intelligent household equipment to be tested according to the current equipment type, the equipment type to be tested and the automatic test case to be tested.
In an embodiment, the target use case module 30 is further configured to determine whether the current device type is the same as the device type to be selected; and if the current equipment type is the same as the type of the equipment to be selected, taking the automatic test case to be selected as a target automatic test case corresponding to the intelligent household equipment to be tested.
In an embodiment, the automatic testing device for the intelligent home equipment further comprises a set establishing module, configured to obtain home scenes in a preset area and obtain the intelligent home equipment in each home scene; searching a manual test strategy corresponding to each intelligent household device; and establishing a preset test case set according to the manual test strategy.
In an embodiment, the set creating module is further configured to convert the manual testing policy into an automated testing policy; generating an automatic test case according to the automatic test strategy; and establishing a preset test case set according to the automatic test cases.
Other embodiments or specific implementation methods of the automatic testing apparatus for smart home devices according to the present invention may refer to the above embodiments, and are not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in an estimator readable storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling an intelligent device (such as a mobile phone, an estimator, an automatic testing device for smart home devices, an air conditioner, or an automatic testing device for network smart home devices) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. An automatic testing method for intelligent household equipment is characterized by comprising the following steps:
acquiring current equipment attributes of the intelligent household equipment to be tested;
extracting the current equipment type and the current equipment position of the intelligent household equipment to be tested from the current equipment attribute;
searching a target automatic test case corresponding to the intelligent household equipment to be tested from a preset test case set according to the current equipment type and the current equipment position;
extracting a target automation test strategy from the target automation test case;
and automatically testing the intelligent household equipment to be tested according to the target automatic testing strategy.
2. The automatic testing method for the intelligent home equipment according to claim 1, wherein the searching for the target automatic test case corresponding to the intelligent home equipment to be tested from a preset test case set according to the current equipment type and the current equipment position specifically comprises:
determining a current home scene where the intelligent home equipment to be tested is located according to the current equipment position;
selecting a current test case set corresponding to the current home scene from a preset test case set;
and searching a target automatic test case corresponding to the intelligent household equipment to be tested from the current test case set according to the current equipment type.
3. The automatic testing method of intelligent home equipment according to claim 2, wherein the determining a current home scene where the intelligent home equipment to be tested is located according to the current equipment location specifically includes:
matching the current device position with a device position in a preset home scene mapping list, wherein the preset home scene mapping list comprises: home scenes and device locations;
determining a target home scene corresponding to the current equipment position according to the matching result;
and taking the target home scene as the current home scene of the intelligent home equipment to be tested.
4. The automatic testing method for the smart home devices according to claim 2, wherein the searching for the target automatic test case corresponding to the smart home device to be tested from the current test case set according to the current device type specifically includes:
traversing the automatic test cases in the current test case set;
the traversed automatic test case is used as an automatic test case to be selected;
obtaining the type of equipment to be selected corresponding to the automatic test case to be selected;
and determining a target automatic test case corresponding to the intelligent household equipment to be tested according to the current equipment type, the equipment type to be tested and the automatic test case to be tested.
5. The automatic testing method of intelligent home equipment according to claim 4, wherein the determining of the target automatic test case corresponding to the intelligent home equipment to be tested according to the current equipment type, the equipment type to be selected, and the automatic test case to be selected specifically comprises:
judging whether the current equipment type is the same as the equipment type to be selected;
and if the current equipment type is the same as the type of the equipment to be selected, taking the automatic test case to be selected as a target automatic test case corresponding to the intelligent household equipment to be tested.
6. The automatic testing method for the intelligent household equipment according to any one of claims 1 to 5, wherein before obtaining the current equipment attribute of the intelligent household equipment to be tested, the method further comprises:
acquiring home scenes in a preset area, and acquiring intelligent home equipment in each home scene;
searching a manual test strategy corresponding to each intelligent household device;
and establishing a preset test case set according to the manual test strategy.
7. The automatic testing method for the intelligent home equipment according to claim 6, wherein the establishing of the preset test case set according to the manual testing strategy specifically comprises:
converting the manual testing strategy into an automated testing strategy;
generating an automatic test case according to the automatic test strategy;
and establishing a preset test case set according to the automatic test cases.
8. The utility model provides an automatic testing arrangement of intelligent home equipment, its characterized in that, automatic testing arrangement of intelligent home equipment includes:
the attribute acquisition module is used for acquiring the current equipment attribute of the intelligent household equipment to be tested;
the information extraction module is used for extracting the current equipment type and the current equipment position of the intelligent household equipment to be tested from the current equipment attribute;
the target case module is used for searching a target automatic test case corresponding to the intelligent home equipment to be tested from a preset test case set according to the current equipment type and the current equipment position;
the target method module is used for extracting a target automation test strategy from the target automation test case;
and the target testing module is used for automatically testing the intelligent household equipment to be tested according to the target automatic testing strategy.
9. The utility model provides an automatic test equipment of intelligent home equipment, its characterized in that, automatic test equipment of intelligent home equipment includes: the intelligent home equipment automatic testing system comprises a memory, a processor and an intelligent home equipment automatic testing program which is stored on the memory and can run on the processor, wherein the intelligent home equipment automatic testing program is configured with steps for realizing the intelligent home equipment automatic testing method according to any one of claims 1 to 7.
10. A storage medium, wherein the storage medium stores thereon an automatic testing program for smart home devices, and the automatic testing program for smart home devices, when executed by a processor, implements the steps of the automatic testing method for smart home devices according to any one of claims 1 to 7.
CN201911422475.9A 2019-12-30 2019-12-30 Automatic testing method, device, equipment and storage medium for intelligent household equipment Active CN111104341B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911422475.9A CN111104341B (en) 2019-12-30 2019-12-30 Automatic testing method, device, equipment and storage medium for intelligent household equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911422475.9A CN111104341B (en) 2019-12-30 2019-12-30 Automatic testing method, device, equipment and storage medium for intelligent household equipment

Publications (2)

Publication Number Publication Date
CN111104341A true CN111104341A (en) 2020-05-05
CN111104341B CN111104341B (en) 2024-01-19

Family

ID=70426541

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911422475.9A Active CN111104341B (en) 2019-12-30 2019-12-30 Automatic testing method, device, equipment and storage medium for intelligent household equipment

Country Status (1)

Country Link
CN (1) CN111104341B (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111338328A (en) * 2020-05-19 2020-06-26 北京易诚高科科技发展有限公司 Method for testing working state of intelligent household link product
CN111737136A (en) * 2020-06-24 2020-10-02 海尔优家智能科技(北京)有限公司 Object testing method and device based on Internet of things platform
CN111795799A (en) * 2020-06-17 2020-10-20 深圳市华星光电半导体显示技术有限公司 Test method and device
CN112202951A (en) * 2020-09-29 2021-01-08 中国银行股份有限公司 Mobile phone compatibility testing method and related device
CN112306880A (en) * 2020-11-02 2021-02-02 百度在线网络技术(北京)有限公司 Test method, test device, electronic equipment and computer readable storage medium
CN112327768A (en) * 2020-10-27 2021-02-05 深圳Tcl新技术有限公司 Intelligent scene building system, method and computer readable storage medium
CN112835802A (en) * 2021-02-09 2021-05-25 深圳市晨北科技有限公司 Equipment testing method, device, equipment and storage medium
CN112994989A (en) * 2021-05-20 2021-06-18 北京智芯微电子科技有限公司 Evaluation method, device and system for internet of things terminal and storage medium
CN113407455A (en) * 2021-06-30 2021-09-17 四川虹美智能科技有限公司 Automatic evaluation method and device for intelligent white power products
CN114664074A (en) * 2022-03-10 2022-06-24 深圳市百泰实业股份有限公司 Test method and system of Bluetooth remote controller
CN114885156A (en) * 2022-07-13 2022-08-09 龙旗电子(惠州)有限公司 Identification method, device, equipment, storage medium and program product
CN115190057A (en) * 2022-05-24 2022-10-14 深圳绿米联创科技有限公司 Automatic testing method and device and electronic equipment
CN116049020A (en) * 2023-04-03 2023-05-02 深圳市明源云科技有限公司 Automatic test method, device and equipment for software products and readable storage medium
CN117007897A (en) * 2023-10-07 2023-11-07 山西省安装集团股份有限公司 Electrical equipment testing system applied to electrotometer laboratory

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103412818A (en) * 2013-08-14 2013-11-27 迈普通信技术股份有限公司 Automation testing method and system
KR101414720B1 (en) * 2013-05-31 2014-07-04 한국철도기술연구원 Functional safety testing device for train control system software and the method thereof
US20140258989A1 (en) * 2011-10-10 2014-09-11 Onycom, Inc. Method and system for automating a scene-based test
CN104717670A (en) * 2013-12-13 2015-06-17 ***通信集团公司 Business quality testing method, device and system
CN104794034A (en) * 2015-03-24 2015-07-22 青岛海尔智能家电科技有限公司 Acceptance check method and device for equipment
KR101554424B1 (en) * 2014-05-02 2015-09-30 (주)씽크포비엘 Method and apparatus for auto generation of test case
CN106411637A (en) * 2016-09-13 2017-02-15 四川长虹电器股份有限公司 Internet-of-things device scenario testing method
US20170293550A1 (en) * 2016-04-08 2017-10-12 Electronics And Telecommunications Research Institute Apparatus and method for testing interoperability of robot software
CN107766194A (en) * 2017-11-17 2018-03-06 深圳市泉眼网络科技有限公司 Method of testing, device, system, terminal device and computer-readable recording medium
EP3382550A1 (en) * 2017-03-29 2018-10-03 Vestel Elektronik Sanayi ve Ticaret A.S. Test apparatus und method
CN108920046A (en) * 2018-07-17 2018-11-30 珠海格力电器股份有限公司 A kind of control method of smart home device, device computer storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140258989A1 (en) * 2011-10-10 2014-09-11 Onycom, Inc. Method and system for automating a scene-based test
KR101414720B1 (en) * 2013-05-31 2014-07-04 한국철도기술연구원 Functional safety testing device for train control system software and the method thereof
CN103412818A (en) * 2013-08-14 2013-11-27 迈普通信技术股份有限公司 Automation testing method and system
CN104717670A (en) * 2013-12-13 2015-06-17 ***通信集团公司 Business quality testing method, device and system
KR101554424B1 (en) * 2014-05-02 2015-09-30 (주)씽크포비엘 Method and apparatus for auto generation of test case
CN104794034A (en) * 2015-03-24 2015-07-22 青岛海尔智能家电科技有限公司 Acceptance check method and device for equipment
US20170293550A1 (en) * 2016-04-08 2017-10-12 Electronics And Telecommunications Research Institute Apparatus and method for testing interoperability of robot software
CN106411637A (en) * 2016-09-13 2017-02-15 四川长虹电器股份有限公司 Internet-of-things device scenario testing method
EP3382550A1 (en) * 2017-03-29 2018-10-03 Vestel Elektronik Sanayi ve Ticaret A.S. Test apparatus und method
CN107766194A (en) * 2017-11-17 2018-03-06 深圳市泉眼网络科技有限公司 Method of testing, device, system, terminal device and computer-readable recording medium
CN108920046A (en) * 2018-07-17 2018-11-30 珠海格力电器股份有限公司 A kind of control method of smart home device, device computer storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈丽芬;赵鹏;李禹翔;马庆;储成诚;: "一种智能家电通信可靠性测试***的实现", 家电科技, no. 10 *

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111338328A (en) * 2020-05-19 2020-06-26 北京易诚高科科技发展有限公司 Method for testing working state of intelligent household link product
CN111795799A (en) * 2020-06-17 2020-10-20 深圳市华星光电半导体显示技术有限公司 Test method and device
CN111737136A (en) * 2020-06-24 2020-10-02 海尔优家智能科技(北京)有限公司 Object testing method and device based on Internet of things platform
CN112202951A (en) * 2020-09-29 2021-01-08 中国银行股份有限公司 Mobile phone compatibility testing method and related device
CN112327768A (en) * 2020-10-27 2021-02-05 深圳Tcl新技术有限公司 Intelligent scene building system, method and computer readable storage medium
CN112327768B (en) * 2020-10-27 2023-09-19 深圳Tcl新技术有限公司 Intelligent scene building system, method and computer readable storage medium
CN112306880A (en) * 2020-11-02 2021-02-02 百度在线网络技术(北京)有限公司 Test method, test device, electronic equipment and computer readable storage medium
CN112835802A (en) * 2021-02-09 2021-05-25 深圳市晨北科技有限公司 Equipment testing method, device, equipment and storage medium
CN112994989B (en) * 2021-05-20 2021-08-06 北京智芯微电子科技有限公司 Evaluation method, device and system for internet of things terminal and storage medium
CN112994989A (en) * 2021-05-20 2021-06-18 北京智芯微电子科技有限公司 Evaluation method, device and system for internet of things terminal and storage medium
CN113407455A (en) * 2021-06-30 2021-09-17 四川虹美智能科技有限公司 Automatic evaluation method and device for intelligent white power products
CN114664074A (en) * 2022-03-10 2022-06-24 深圳市百泰实业股份有限公司 Test method and system of Bluetooth remote controller
CN115190057A (en) * 2022-05-24 2022-10-14 深圳绿米联创科技有限公司 Automatic testing method and device and electronic equipment
CN114885156A (en) * 2022-07-13 2022-08-09 龙旗电子(惠州)有限公司 Identification method, device, equipment, storage medium and program product
CN116049020A (en) * 2023-04-03 2023-05-02 深圳市明源云科技有限公司 Automatic test method, device and equipment for software products and readable storage medium
CN116049020B (en) * 2023-04-03 2023-08-04 深圳市明源云科技有限公司 Automatic test method, device and equipment for software products and readable storage medium
CN117007897A (en) * 2023-10-07 2023-11-07 山西省安装集团股份有限公司 Electrical equipment testing system applied to electrotometer laboratory
CN117007897B (en) * 2023-10-07 2023-12-08 山西省安装集团股份有限公司 Electrical equipment testing system applied to electrotometer laboratory

Also Published As

Publication number Publication date
CN111104341B (en) 2024-01-19

Similar Documents

Publication Publication Date Title
CN111104341B (en) Automatic testing method, device, equipment and storage medium for intelligent household equipment
CN106777751A (en) Architecture information processing method and processing device
CN104780407A (en) Automatic testing method and automatic testing system for set top box
CN114024948B (en) Intelligent Building Integrated Management System
WO2019223056A1 (en) Gesture recognition-based teaching and learning method and apparatus
CN110768863A (en) Scheme for simulation test of AIOT equipment
CN105677574A (en) Android application vulnerability detection method and system based on function control flow
CN109558297A (en) EMS memory management process and device
CN107175674B (en) Robot interaction method and device
CN114201144A (en) Micro service system construction method, device and medium based on domain-driven design
CN116719969A (en) Intelligent home interaction data analysis method and system based on Internet of things
CN106326087A (en) Webpage experiencing method based on robot operating system and system thereof
CN109613349A (en) A kind of fault visual method and terminal device
CN210016474U (en) Distribution network test control equipment and system
CN113032267A (en) Intelligent scene testing method and device, electronic equipment and storage medium
CN117277552A (en) Smart power grid one-key sequential control checking system and method
CN111880977A (en) Fault self-healing method and device, equipment and storage medium
US20200059798A1 (en) Configuration method of wireless network system, configuration terminal and configuration system
CN110610631A (en) Virtual intelligent home practical training system and virtual practical training method thereof
CN115357493A (en) Test method, test device, electronic equipment and storage medium
CN113419652A (en) Intelligent equipment interaction method, server and client
CN113033821A (en) Load identification machine learning system applied to algorithm core unit
RU2651142C1 (en) Method and system of automated programming using the expert system, intellectual management systems based on program-logic controllers (plcs) and on microcontrollers
CN110968519A (en) Game testing method, device, server and storage medium
CN114826615B (en) Mobile terminal acquisition method and system based on mobile phone simulator

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