Smart home equipment testing method, device, equipment and medium

文档序号:1345007 发布日期:2020-07-21 浏览:14次 中文

阅读说明:本技术 一种智能家居设备测试方法、装置、设备及介质 (Smart home equipment testing method, device, equipment and medium ) 是由 白翠琴 颜慧强 许一骅 高发展 于 2018-12-25 设计创作,主要内容包括:本发明公开了一种智能家居设备测试方法、装置、设备及介质,用以解决现有技术存在的测试成本高、定位问题困难、测试效率低的问题。具体为:在智能家居设备的测试过程中,确定当前测试的智能家居设备的设备类型后,获取与该设备类型对应的测试框架,并按照测试框架包含的各个测试模块之间的调用顺序,依次调用测试框架包含的各个测试模块分别对智能家居设备在运行过程中的相应阶段进行测试,从而实现了对智能家居设备的全方位自动化测试,而且,按照各个测试模块之间的调用顺序,依次调用各个测试模块对智能家居设备在运行过程中的相应阶段进行测试,能够确保对后一阶段测试不会受到前一阶段测试的影响,从而保证了智能家居设备测试的顺利进行。(The invention discloses a method, a device, equipment and a medium for testing intelligent household equipment, which are used for solving the problems of high testing cost, difficulty in positioning and low testing efficiency in the prior art. The method specifically comprises the following steps: in the testing process of the intelligent household equipment, after the equipment type of the intelligent household equipment to be tested at present is determined, a testing frame corresponding to the equipment type is obtained, and according to the calling sequence among the testing modules contained in the testing frame, the testing modules contained in the testing frame are called in sequence to respectively test the corresponding stages of the intelligent household equipment in the operation process, so that the all-round automatic testing of the intelligent household equipment is realized, in addition, according to the calling sequence among the testing modules, the testing modules are called in sequence to test the corresponding stages of the intelligent household equipment in the operation process, the testing of the later stage can be ensured not to be influenced by the testing of the previous stage, and the smooth running of the testing of the intelligent household equipment is ensured.)

1. The intelligent household equipment testing method is characterized by comprising the following steps:

determining the equipment type of the intelligent household equipment currently tested;

acquiring a test frame corresponding to the equipment type, wherein the test frame comprises test modules respectively configured for each stage of the intelligent household equipment in the operation process and a calling sequence among the test modules;

and according to the calling sequence among the test modules, calling the test modules corresponding to the intelligent household equipment in sequence to test the corresponding stages of the intelligent household equipment in the operation process respectively.

2. The smart home device testing method according to claim 1, wherein determining the device type of the smart home device currently being tested comprises:

determining a test interface connected with the intelligent household equipment to be tested at present;

and determining the equipment type associated with the test interface connected with the intelligent household equipment to be tested at present based on the association relationship between the test interface and the equipment type, and taking the determined equipment type as the equipment type of the intelligent household equipment to be tested at present.

3. The smart home device testing method according to claim 1 or 2, wherein the testing modules respectively configured for the smart home devices at each stage in the operation process include: the device comprises a communication preposition test module, an instruction issuing test module and a state reporting test module.

4. The smart home device testing method according to claim 3, wherein if the currently called testing module is the communication pre-testing module, testing the communication phase includes:

acquiring client version information of an intelligent home control client for controlling the intelligent home equipment, and determining that the version test of the intelligent home control client passes when the intelligent home control client is determined to be the latest version based on the client version information; and the number of the first and second electrodes,

testing the communication connection between the intelligent home control client and the intelligent home service end, and determining that the communication test between the intelligent home control client and the intelligent home service end passes when the communication connection between the intelligent home control client and the intelligent home service end is determined to be normal; and the number of the first and second groups,

and testing the network connection between the intelligent home control client and the intelligent home equipment, further determining that the communication prepositive test is passed when the network connection between the intelligent home control client and the intelligent home equipment is determined to be normal, and quitting the calling process of the communication prepositive test module.

5. The smart home device testing method according to claim 3, wherein if the currently called testing module is the instruction issuing testing module, the testing of the instruction issuing stage includes:

sending a test instruction to an intelligent home control client for controlling the intelligent home equipment, and instructing the intelligent home control client to send a set control instruction to the intelligent home equipment through an intelligent home service terminal;

monitoring communication between the intelligent home control client and the intelligent home service terminal, and capturing a control instruction forwarded by the intelligent home control client through the intelligent home service terminal;

and when the control content corresponding to the captured control instruction is determined to be the same as the control content corresponding to the set control instruction and the intercepted control instruction conforms to the communication protocol between the intelligent home control client and the intelligent home service end, determining that the instruction issuing test is passed and exiting the calling process of the instruction issuing test module.

6. The smart home device testing method according to claim 3, wherein if the currently called testing module is the state reporting testing module, the testing of the state reporting stage includes:

sending a state reporting instruction to the intelligent home equipment, and indicating the intelligent home equipment to report a current execution state through the intelligent home control client after executing corresponding operation based on the received control instruction;

monitoring communication between the intelligent home equipment and the intelligent home control client, and capturing a current execution state reported to the intelligent home control client by the intelligent home equipment;

and when the captured current execution state is determined to be the same as the expected state corresponding to the control instruction and the captured current execution state conforms to a network communication protocol between the intelligent home equipment and the intelligent home control client, determining that the state reporting test is passed, and exiting the calling process of the state reporting test module.

7. The utility model provides an intelligence house equipment testing arrangement which characterized in that includes:

the determining unit is used for determining the equipment type of the intelligent household equipment which is currently tested;

the system comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a test frame corresponding to the equipment type, and the test frame comprises test modules respectively configured for each stage of the intelligent household equipment in the operation process and a calling sequence among the test modules;

and the testing unit is used for sequentially calling each testing module corresponding to the intelligent home equipment according to the calling sequence among the testing modules to respectively test the corresponding stage of the intelligent home equipment in the operation process.

8. A test control apparatus, characterized by comprising: a memory, a processor, and computer instructions stored on the memory, the processor executing the computer instructions to implement the smart home device testing method of any of claims 1-6.

9. A computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and when executed by a processor, the computer instructions implement the smart home device testing method according to any one of claims 1 to 6.

Technical Field

The invention relates to the technical field of testing, in particular to a method, a device, equipment and a medium for testing intelligent household equipment.

Background

The intelligent home is also called an intelligent home, and is an intelligent home control system integrating an automatic control system, a computer network system and a network communication technology, so that the family life is more intelligent, convenient and comfortable, specifically, various intelligent home devices can be controlled by using an intelligent home controller in a room, and various intelligent home devices can be controlled by an intelligent home control client when the house and the intelligent home are far away, for example: the curtain is pulled, the water is discharged to the bathing pool, the water temperature is automatically heated and adjusted, and the states of the curtain, the light, the sound and the like are adjusted.

Disclosure of Invention

The embodiment of the invention provides a method, a device, equipment and a medium for testing intelligent household equipment, which are used for solving the problems of high testing cost, difficulty in positioning and low testing efficiency of the method for testing the intelligent household equipment in the prior art.

The embodiment of the invention provides the following specific technical scheme:

in one aspect, an embodiment of the present invention provides a method for testing smart home devices, including:

determining the equipment type of the intelligent household equipment currently tested;

acquiring a test frame corresponding to the equipment type, wherein the test frame comprises test modules respectively configured for each stage of the intelligent household equipment in the operation process and a calling sequence among the test modules;

and according to the calling sequence among the test modules, calling the test modules corresponding to the intelligent household equipment in sequence to test the intelligent household equipment at the corresponding stages in the operation process.

In one possible implementation, determining the device type of the currently tested smart home device includes:

determining a test interface connected with the intelligent household equipment to be tested at present;

and determining the equipment type associated with the test interface connected with the intelligent household equipment to be tested at present based on the association relationship between the test interface and the equipment type, and taking the determined equipment type as the equipment type of the intelligent household equipment to be tested at present.

In a possible implementation manner, the test modules respectively configured for each stage of the smart home device in the operation process include: the device comprises a communication preposition test module, an instruction issuing test module and a state reporting test module.

In a possible embodiment, if the currently called test module is a communication pretest module, the testing the communication phase includes:

the method comprises the steps of obtaining client version information of an intelligent home control client for controlling the intelligent home equipment, and determining that the version test of the intelligent home control client passes when the intelligent home control client is determined to be the latest version based on the client version information; and the number of the first and second electrodes,

testing the communication connection between the intelligent home control client and the intelligent home service end, and determining that the communication test between the intelligent home control client and the intelligent home service end passes when the communication connection between the intelligent home control client and the intelligent home service end is determined to be normal; and the number of the first and second groups,

and testing the network connection between the intelligent home control client and the intelligent home equipment, further determining that the communication prepositive test is passed when the network connection between the intelligent home control client and the intelligent home equipment is determined to be normal, and quitting the calling process of the communication prepositive test module.

In a possible implementation manner, if the currently called test module is an instruction issue test module, the step of testing the instruction issue stage includes:

sending a test instruction to an intelligent home control client for controlling the intelligent home equipment, and instructing the intelligent home control client to send a set control instruction to the intelligent home equipment through an intelligent home service terminal;

monitoring communication between the intelligent home control client and the intelligent home service terminal, and capturing a control instruction forwarded by the intelligent home control client through the intelligent home service terminal;

and when the control content corresponding to the captured control instruction is determined to be the same as the control content corresponding to the set control instruction and the intercepted control instruction conforms to the communication protocol between the intelligent home control client and the intelligent home service end, determining that the instruction issuing test is passed and exiting the call flow of the instruction issuing test module.

In a possible implementation manner, if the currently called test module is a state reporting test module, the testing the state reporting stage includes:

sending a state reporting instruction to the intelligent home equipment, and indicating the intelligent home equipment to report a current execution state through the intelligent home control client after executing corresponding operation based on the received control instruction;

monitoring communication between the intelligent home equipment and the intelligent home control client, and capturing a current execution state reported by the intelligent home equipment to the intelligent home control client;

and when the captured current execution state is determined to be the same as the expected state corresponding to the control instruction and the captured current execution state conforms to the network communication protocol between the intelligent home equipment and the intelligent home control client, determining that the state reporting test is passed, and exiting the calling process of the state reporting test module.

On the other hand, an embodiment of the present invention provides an intelligent home device testing apparatus, including:

the determining unit is used for determining the equipment type of the intelligent household equipment which is currently tested;

the intelligent home equipment comprises an acquisition unit, a processing unit and a processing unit, wherein the acquisition unit is used for acquiring a test frame corresponding to the equipment type, and the test frame comprises test modules which are respectively configured aiming at each stage of the intelligent home equipment in the operation process and a calling sequence among the test modules;

and the testing unit is used for sequentially calling each testing module corresponding to the intelligent home equipment according to the calling sequence among the testing modules to respectively test the intelligent home equipment at the corresponding stage in the operation process.

In a possible implementation manner, when determining the device type of the smart home device currently being tested, the determining unit is configured to:

determining a test interface connected with the intelligent household equipment to be tested at present;

and determining the equipment type associated with the test interface connected with the intelligent household equipment to be tested at present based on the association relationship between the test interface and the equipment type, and taking the determined equipment type as the equipment type of the intelligent household equipment to be tested at present.

In a possible implementation manner, the test modules respectively configured for each stage of the smart home device in the operation process include: the device comprises a communication preposition test module, an instruction issuing test module and a state reporting test module.

In a possible embodiment, if the currently invoked test module is a communication pretest module, the test unit is configured to, during the test of the communication phase:

the method comprises the steps of obtaining client version information of an intelligent home control client for controlling the intelligent home equipment, and determining that the version test of the intelligent home control client passes when the intelligent home control client is determined to be the latest version based on the client version information; and the number of the first and second electrodes,

testing the communication connection between the intelligent home control client and the intelligent home service end, and determining that the communication test between the intelligent home control client and the intelligent home service end passes when the communication connection between the intelligent home control client and the intelligent home service end is determined to be normal; and the number of the first and second groups,

and testing the network connection between the intelligent home control client and the intelligent home equipment, further determining that the communication prepositive test is passed when the network connection between the intelligent home control client and the intelligent home equipment is determined to be normal, and quitting the calling process of the communication prepositive test module.

In a possible implementation manner, if the currently called test module is an instruction issue test module, when testing the instruction issue stage, the test unit is configured to:

sending a test instruction to an intelligent home control client for controlling the intelligent home equipment, and instructing the intelligent home control client to send a set control instruction to the intelligent home equipment through an intelligent home service terminal;

monitoring communication between the intelligent home control client and the intelligent home service terminal, and capturing a control instruction forwarded by the intelligent home control client through the intelligent home service terminal;

and when the control content corresponding to the captured control instruction is determined to be the same as the control content corresponding to the set control instruction and the intercepted control instruction conforms to the communication protocol between the intelligent home control client and the intelligent home service end, determining that the instruction issuing test is passed and exiting the call flow of the instruction issuing test module.

In a possible implementation manner, if the currently called test module is a state reporting test module, the test unit is configured to, during the test of the state reporting stage:

sending a state reporting instruction to the intelligent home equipment, and indicating the intelligent home equipment to report a current execution state through the intelligent home control client after executing corresponding operation based on the received control instruction;

monitoring communication between the intelligent home equipment and the intelligent home control client, and capturing a current execution state reported by the intelligent home equipment to the intelligent home control client;

and when the captured current execution state is determined to be the same as the expected state corresponding to the control instruction and the captured current execution state conforms to the network communication protocol between the intelligent home equipment and the intelligent home control client, determining that the state reporting test is passed, and exiting the calling process of the state reporting test module.

In a third aspect, an embodiment of the present invention provides a test control apparatus, including: the intelligent home equipment testing method comprises a memory, a processor and computer instructions stored on the memory, wherein the processor executes the computer instructions to realize the intelligent home equipment testing method provided by the embodiment of the invention.

In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, where computer instructions are stored, and when the computer instructions are executed by a processor, the method for testing smart home devices provided in an embodiment of the present invention is implemented.

The embodiment of the invention has the following beneficial effects:

in the embodiment of the invention, corresponding test frames are respectively configured for different types of intelligent household equipment in advance, so that the test frame corresponding to the equipment type can be obtained after the equipment type of the intelligent household equipment currently tested is determined in the test process of the intelligent household equipment, each test module contained in the determined test frame can be called to test each stage of the intelligent household equipment in the operation process, the comprehensive automatic test on the intelligent household equipment is realized, and each test module is sequentially called according to the calling sequence among the test modules to test the corresponding stage of the intelligent household equipment in the operation process, so that the test of the next stage can be ensured not to be influenced by the test of the previous stage, and the test of the intelligent household equipment is ensured to be smoothly carried out.

Drawings

Fig. 1A is a schematic system architecture diagram of a smart home device testing system in an embodiment of the present invention;

fig. 1B is a schematic flow chart of a testing method for smart home devices in an embodiment of the present invention;

fig. 2 is a schematic flow chart of a method for testing smart home devices according to an embodiment of the present invention;

fig. 3 is a functional structure schematic diagram of the smart home device testing apparatus in the embodiment of the present invention;

fig. 4 is a schematic diagram of a hardware structure of the test control device in the embodiment of the present invention.

Detailed Description

In order to make the objects, technical solutions and advantages of the present invention more clearly and clearly apparent, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

In the specific practice process, the inventor of the present application finds that the current smart home device testing party mainly takes manual testing as a main part, the testing cost is high, the positioning problem is difficult, and the testing efficiency is low, and for this reason, the inventor of the present application considers that, by respectively configuring corresponding testing frames for different types of smart home devices in advance, in the testing process of the smart home devices, after determining the device type of the currently tested smart home devices, the testing frame corresponding to the device type can be obtained, and according to the calling sequence among the testing modules included in the testing frame, the testing modules included in the testing frame are sequentially called to respectively test the smart home devices at corresponding stages in the operation process, so that the omnibearing automatic testing of the smart home devices is realized, and according to the calling sequence among the testing modules, the testing modules are sequentially called to test the intelligent household equipment at the corresponding stages in the operation process, so that the testing at the later stage can not be influenced by the testing at the previous stage, and the smooth implementation of the testing of the intelligent household equipment is ensured.

The present invention will be described in detail with reference to specific examples, but it is to be understood that the present invention is not limited to the examples.

An embodiment of the present invention provides an intelligent home device testing system, and as shown in fig. 1A, the intelligent home device testing system 100 at least includes: each intelligent home device 110, an intelligent home control client 120 installed on the intelligent terminal for controlling the intelligent home device, an intelligent home service server 130 corresponding to the intelligent home control client 120, and a test control device 140 for testing each intelligent home device 110; each smart home device 110 is in communication connection with a smart home control client 120 installed on the smart terminal, the smart home control client 120 installed on the smart terminal is in communication connection with a corresponding smart home service terminal 130, and the test control device 140 is in communication connection with each smart home device 110, the smart home control client 120, and the smart home service terminal 130, so that the test control device 140 can implement automatic testing on each smart home device 110 by executing the smart home device testing method provided by the embodiment of the present invention.

In specific implementation, referring to fig. 1B, a flow of the smart home device testing method provided by the embodiment of the present invention is as follows:

step 101: the device type of the smart home device 110 currently being tested is determined.

In practical application, different test interfaces may be set on the test control device 140, and an association relationship between the test interfaces and device types is pre-established, so that the test control device 140 may determine, after determining the test interface to which the currently tested smart home device is connected, the device type associated with the test interface to which the currently tested smart home device is connected based on the association relationship between the test interface and the device type, and use the determined device type as the device type of the currently tested smart home device.

Step 102: obtaining a test framework corresponding to the device type, where the test framework includes test modules configured for each stage of the smart home device 110 in the operation process, and a calling sequence between the test modules.

In specific implementation, corresponding test frames may be respectively configured for different types of smart home devices 110, and specifically, the test frames corresponding to the different types of smart home devices 110 may include but are not limited to: test modules respectively configured at each stage in the operation process of the intelligent home equipment 110 of the type and a calling sequence among the test modules; wherein, each test module may include but is not limited to: in the embodiment of the present invention, the call sequence among the test modules may be, but is not limited to: the communication prepositive test module has the highest calling priority, the instruction issuing test module has the next calling priority, and the state reporting test module has the lowest calling priority.

Step 103: and according to the calling sequence among the test modules, calling the test modules corresponding to the intelligent household equipment in sequence to test the intelligent household equipment at the corresponding stages in the operation process.

In specific implementation, the test control device 140 may sequentially call each test module corresponding to the smart home device according to the call sequence represented by the call priority corresponding to each test module.

In the embodiment of the present invention, the test control device 140 may first invoke the communication pretest module to test the communication phase. Specifically, the test control device 140 may implement the following test steps when invoking the communication pre-test module:

firstly, client version information of an intelligent household control client for controlling intelligent household equipment is obtained by running a User Interface (UI) automatic test script, and when the intelligent household control client is determined to be the latest version based on the client version information, the version test of the intelligent household control client is determined to be passed.

And then, testing the communication connection between the intelligent home control client and the intelligent home service end by running the interface automatic test script, and determining that the communication test between the intelligent home control client and the intelligent home service end is passed when the communication connection between the intelligent home control client and the intelligent home service end is determined to be normal.

Secondly, testing the network connection between the intelligent home control client and the intelligent home equipment by running the service control command automatic test script, and determining that the network connection between the intelligent home control client and the intelligent home equipment is normal.

And finally, when the version test of the intelligent home control client, the communication test between the intelligent home control client and the intelligent home service terminal and the network connection test between the intelligent home control client and the intelligent home equipment are all determined to pass, determining that the communication prepositive test passes and quitting the calling process of the communication prepositive test module.

Further, the test control device 140 may then invoke the instruction issue test module to perform a test on the instruction issue stage. Specifically, the test control device 140 may implement the following test steps when the test command is called to issue the test module:

firstly, a test instruction is sent to an intelligent household control client for controlling the intelligent household equipment by running an automatic test script of the client, and the intelligent household control client is instructed to issue the set control instruction to the intelligent household equipment through an intelligent household service terminal.

And then, monitoring communication between the intelligent home control client and the intelligent home service terminal by running a network automatic detection script, and capturing a control instruction forwarded by the intelligent home control client through the intelligent home service terminal.

And finally, detecting the captured control instruction by running an interface automatic test script, confirming that the control content corresponding to the captured control instruction is the same as the control content corresponding to the set control instruction and the captured control instruction conforms to the communication protocol between the intelligent home control client and the intelligent home service end, determining that the instruction issuing test is passed and quitting the calling flow of the instruction issuing test module.

Further, the test control device 140 may finally invoke the status report test module to test the status report stage. Specifically, when the test control device 140 calls the state reporting test module, the following test steps can be implemented:

firstly, a state reporting instruction is sent to the intelligent home equipment by running a service control command automation test script, and the intelligent home equipment is instructed to report the current execution state through the intelligent home control client after executing corresponding operation based on the received control instruction.

And then, monitoring communication between the intelligent household equipment and the intelligent household control client by running a network automatic detection script, and capturing the current execution state reported to the intelligent household control client by the intelligent household equipment.

And finally, detecting the captured current execution state by running an interface automatic test script, determining that the captured current execution state is the same as an expected state corresponding to the control instruction and the captured current execution state conforms to a network communication protocol between the intelligent home equipment and the intelligent home control client, determining that the state reporting test is passed, and quitting the calling process of the state reporting test module.

The following further describes the smart home device testing method provided by the embodiment of the present invention, and referring to fig. 2, a specific process of the smart home device testing method provided by the embodiment of the present invention is as follows:

step 201: different test interfaces are set on the test control device 140, and the association relationship between the test interfaces and the device types is established in advance.

Step 202: the test control device 140 determines a test interface connected to the currently tested smart home device, and determines a device type associated with the test interface connected to the currently tested smart home device based on an association relationship between the test interface and the device type.

Step 203: the test control device 140 obtains a test frame corresponding to the determined device type, where the test frame includes three modules, namely a communication pre-test module, an instruction issuing test module and a state reporting test module, and call priorities corresponding to the three modules.

Step 204: the test control device 140 determines the test module to be preferentially called as the communication pre-test module based on the calling priorities corresponding to the three modules.

Step 205: the test control device 140 calls the communication pretest module to perform the communication test on the smart home device, and exits from the call flow of the communication pretest module when determining that the communication test on the smart home device passes, and continues to execute step 206.

Specifically, the testing steps that can be implemented by the test control device 140 when invoking the communication pretest module may refer to the above-described steps, and repeated details are not repeated.

Step 206: the test control device 140 determines the next called test module as an instruction issuing test module based on the respective calling priorities of the three modules.

Step 207: the test control device 140 calls the instruction issuing test module to perform the instruction issuing test on the smart home device, and when it is determined that the instruction issuing test on the smart home device passes, exits from the call flow of the instruction issuing test module, and continues to execute step 208.

Specifically, the testing steps that can be implemented by the test control device 140 when the test module is issued by the call instruction may refer to the above-described steps, and repeated details are not described herein.

Step 208: the test control device 140 determines that the last called test module is a state reporting test module based on the calling priorities corresponding to the three modules.

Step 209: the test control device 140 calls the state reporting test module to perform the state reporting test on the smart home device, and when it is determined that the state reporting test on the smart home device passes, exits from the call flow of the state reporting test module, and continues to execute step 210.

Specifically, the testing steps that can be realized by the test control device 140 when the state reporting test module is called may refer to the above-described steps, and repeated details are not described again.

Step 210: the test control device 140 determines that the test on the smart home devices passes, and exits the test flow of the smart home devices.

Based on the foregoing embodiments, an embodiment of the present invention provides an intelligent home device testing apparatus, and as shown in fig. 3, the intelligent home device testing apparatus 300 at least includes:

a determining unit 301, configured to determine a device type of a currently tested smart home device;

an obtaining unit 302, configured to obtain a test frame corresponding to a device type, where the test frame includes test modules configured for each stage of an operating process of the smart home device and a calling order between the test modules;

the testing unit 303 is configured to sequentially call, according to a calling sequence among the testing modules, the testing modules corresponding to the smart home devices to respectively test the smart home devices at corresponding stages in the operation process.

In a possible implementation manner, when determining the device type of the smart home device currently being tested, the determining unit 301 is configured to:

determining a test interface connected with the intelligent household equipment to be tested at present;

and determining the equipment type associated with the test interface connected with the intelligent household equipment to be tested at present based on the association relationship between the test interface and the equipment type, and taking the determined equipment type as the equipment type of the intelligent household equipment to be tested at present.

In a possible implementation manner, the test modules respectively configured for each stage of the smart home device in the operation process include: the device comprises a communication preposition test module, an instruction issuing test module and a state reporting test module.

In a possible embodiment, if the currently invoked test module is a communication pre-test module, the test unit 303 is configured to, when testing the communication phase:

the method comprises the steps of obtaining client version information of an intelligent home control client for controlling the intelligent home equipment, and determining that the version test of the intelligent home control client passes when the intelligent home control client is determined to be the latest version based on the client version information; and the number of the first and second electrodes,

testing the communication connection between the intelligent home control client and the intelligent home service end, and determining that the communication test between the intelligent home control client and the intelligent home service end passes when the communication connection between the intelligent home control client and the intelligent home service end is determined to be normal; and the number of the first and second groups,

and testing the network connection between the intelligent home control client and the intelligent home equipment, further determining that the communication prepositive test is passed when the network connection between the intelligent home control client and the intelligent home equipment is determined to be normal, and quitting the calling process of the communication prepositive test module.

In a possible implementation manner, if the currently called test module is an instruction issue test module, when testing the instruction issue stage, the test unit 303 is configured to:

sending a test instruction to an intelligent home control client for controlling the intelligent home equipment, and instructing the intelligent home control client to send a set control instruction to the intelligent home equipment through an intelligent home service terminal;

monitoring communication between the intelligent home control client and the intelligent home service terminal, and capturing a control instruction forwarded by the intelligent home control client through the intelligent home service terminal;

and when the control content corresponding to the captured control instruction is determined to be the same as the control content corresponding to the set control instruction and the intercepted control instruction conforms to the communication protocol between the intelligent home control client and the intelligent home service end, determining that the instruction issuing test is passed and exiting the call flow of the instruction issuing test module.

In a possible implementation manner, if the currently called test module is a state reporting test module, when testing the state reporting stage, the test unit 303 is configured to:

sending a state reporting instruction to the intelligent home equipment, and indicating the intelligent home equipment to report a current execution state through the intelligent home control client after executing corresponding operation based on the received control instruction;

monitoring communication between the intelligent home equipment and the intelligent home control client, and capturing a current execution state reported by the intelligent home equipment to the intelligent home control client;

and when the captured current execution state is determined to be the same as the expected state corresponding to the control instruction and the captured current execution state conforms to the network communication protocol between the intelligent home equipment and the intelligent home control client, determining that the state reporting test is passed, and exiting the calling process of the state reporting test module.

It should be noted that, because the principle of the smart home device testing apparatus 300 provided in the embodiment of the present invention for solving the technical problem is similar to the smart home device testing method provided in the embodiment of the present invention, the implementation of the smart home device testing apparatus 300 provided in the embodiment of the present invention may refer to the implementation of the smart home device testing method provided in the embodiment of the present invention, and repeated details are not repeated.

After the method and the device for testing the smart home devices according to the exemplary embodiment of the present invention are introduced, a brief description will be given to the test control device according to the exemplary embodiment of the present invention.

Referring to fig. 4, the test control apparatus 400 according to an exemplary embodiment of the present invention may include a processor 41 and a memory 42, wherein the memory 42 is used for storing computer instructions; and the processor 41 is configured to execute the computer instructions to implement the smart home device testing method according to the exemplary embodiment of the present invention.

It should be noted that the test control apparatus 400 shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of the application of the embodiment of the present invention.

The test control apparatus 400 of the exemplary embodiment of the present invention may further include a bus 43 connecting the different components including the processor 41 and the memory 42. Bus 43 represents one or more of any of several types of bus structures, including a memory bus, a peripheral bus, a local bus, and so forth.

The Memory 42 may include readable media in the form of volatile Memory, such as Random Access Memory (RAM) 421 and/or cache Memory 422, and may further include Read Only Memory (ROM) 423.

The memory 42 may also include a program tool 425 having a set (at least one) of program modules 424, the program modules 424 including, but not limited to: an operating subsystem, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.

The test control device 400 may also communicate with one or more external devices 44 (e.g., keyboard, remote control, etc.), may also communicate with one or more devices that enable a user to interact with the test control device 400, and/or with any device (e.g., router, modem, etc.) that enables the test control device 400 to communicate with one or more other test control devices 400. such communication may be via AN Input/Output (I/O) interface 45. also, the test control device 400 may communicate via the Network adapter 46 with one or more networks (e.g., a local Area Network (L) and &/lTtT translation = L "&/gTt/Tt &/gTt), a Wide Area Network (WAN, for example) and/or a public Network, as shown in FIG. 4, the Network adapter 46 communicates via a bus 43 with other communication modules of the test control device 400. it should be understood that other external storage modules, including, disk array storage modules, disk drive control modules, disk drive subsystems, disk drive modules, and other Redundant storage subsystems 400 may be used, although not limited to include RAID Arrays, RAID controllers, disk drive modules, disk Arrays, and other Redundant storage subsystems.

The following describes a computer-readable storage medium in which exemplary embodiments of the present invention are described. An embodiment of the present invention provides a computer-readable storage medium, where computer instructions are stored, and when the computer instructions are executed by a processor 41, the method for testing smart home devices according to an exemplary embodiment of the present invention is implemented. Specifically, the computer instruction may be built in the test control device 400, so that the test control device 400 may implement the smart home device testing method according to the exemplary embodiment of the present invention by executing the built-in computer instruction.

Furthermore, the smart home device testing method according to the exemplary embodiment of the present invention may also be implemented as a program product including program code for causing the test control device 400 to execute the smart home device testing method according to the exemplary embodiment of the present invention when the program product is run on the test control device 400.

The program product provided by the embodiment of the present invention may adopt any combination of one or more readable media, wherein the readable media may be readable signal media or readable storage media, and the readable storage media may be but not limited to systems, apparatuses or devices of electric, magnetic, optical, electromagnetic, infrared or semiconductor, or any combination thereof, and specifically, more specific examples (non-exhaustive list) of the readable storage media include: an electrical connection having one or more wires, a portable disk, a hard disk, a RAM, a ROM, an Erasable Programmable Read-Only Memory (EPROM), an optical fiber, a portable Compact disk Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

The program product provided by the embodiment of the invention can adopt a CD-ROM and comprises program codes, and can run on a computing device. However, the program product provided by the embodiments of the present invention is not limited thereto, and in the embodiments of the present invention, the readable storage medium may be any tangible medium that can contain or store the program, which can be used by or in connection with an instruction execution system, apparatus, or device.

A readable signal medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.

Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, etc., or any suitable combination of the foregoing.

Program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including AN object oriented programming language such as Java, C + +, or the like, as well as conventional procedural programming languages, such as the "C" language or similar programming languages.

It should be noted that although several units or sub-units of the apparatus are mentioned in the above detailed description, such division is merely exemplary and not mandatory. Indeed, the features and functions of two or more of the units described above may be embodied in one unit, according to embodiments of the invention. Conversely, the features and functions of one unit described above may be further divided into embodiments by a plurality of units.

Moreover, while the operations of the method of the invention are depicted in the drawings in a particular order, this does not require or imply that the operations must be performed in this particular order, or that all of the illustrated operations must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions.

As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.

These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.

While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.

It will be apparent to those skilled in the art that various modifications and variations can be made in the embodiments of the present invention without departing from the spirit or scope of the embodiments of the invention. Thus, if such modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to encompass such modifications and variations.

16页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:居家设备控制系统及其方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!