Smart home device testing method, device, electronic device and readable storage medium

The smart home device receives and processes playback test instructions and attribute information to automatically determine the test results of the third-party server, solving the problem of poor reliability of test results in the existing technology and achieving a more efficient and reliable test process.

CN113791545BActive Publication Date: 2024-09-20BEIJING WODONG TIANJUN INFORMATION TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010664834.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-10
Publication Date
2024-09-20
Estimated Expiration
2040-07-10

AI Technical Summary

Technical Problem

In the existing technology, the accuracy and reliability of audio and video resources fed back by smart home devices to third-party servers are affected by environmental noise, subjective factors of manual testing, and hardware and network factors, resulting in poor reliability of test results.

Method used

Receive the playback test instructions sent by the test equipment through the smart home device, request the audio and video resource information from the server to be tested, receive and convert the action response information, and determine the test results based on the attribute information and playback test instructions, omitting the voice instructions and response results. process, reducing the interference of environmental and hardware factors.

Benefits of technology

It improves the testing accuracy and reliability of third-party servers, reduces the need for manual verification, and improves testing efficiency and objectivity of results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113791545B
    Figure CN113791545B
Patent Text Reader

Abstract

The present disclosure provides a smart home device testing method, device, electronic device and readable storage medium, which relate to the field of testing technology. The smart home device testing method includes: the smart home device receives a play test instruction sent by the test device; the smart home device requests the server to be tested to obtain audio and video resource information according to the play test instruction; the smart home device receives the attribute information of the audio and video resource fed back by the server to be tested; the smart home device sends the attribute information to the test device, so that the test device can determine the test result of the server to be tested according to the play test instruction and the attribute information. Through the technical solution of the present disclosure, the efficiency and reliability of the function test of the smart home device are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of testing technology, and in particular to a smart home device testing method, device, electronic device and readable storage medium. Background Art

[0002] With the development of voice recognition technology, more and more smart home devices are able to recognize voice commands and request corresponding audio and video resources from third-party servers based on the voice commands.

[0003] In the related technology, the accuracy and reliability of the audio and video resources fed back by the third-party server are tested. Specifically, the audio device is used to play thousands of speech instructions to the smart home, respond to the audio and video resources fed back by the third-party server and play them, and the tester determines whether the response result of the third-party server is reliable based on the playback result.

[0004] In the above test scheme, there are at least the following technical problems:

[0005] (1) Due to the influence of environmental noise, voice commands may affect the accuracy of the response results of the third-party server.

[0006] (2) The accuracy of manual testing is affected by subjective factors, playback hardware, and network factors, resulting in poor reliability of test results from third-party servers.

[0007] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0008] The purpose of the present disclosure is to provide a smart home device testing method, device, electronic device and readable storage medium, which at least to some extent overcome the problem of poor reliability of test results of a third-party server in the related art.

[0009] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.

[0010] According to one aspect of the present disclosure, a smart home device testing method is provided, including: the smart home device receives a play test instruction sent by a test device; the smart home device requests a server to be tested to obtain audio and video resource information according to the play test instruction; the smart home device receives attribute information of the audio and video resource fed back by the server to be tested; the smart home device sends the attribute information to the test device, so that the test device determines the test result of the server to be tested according to the play test instruction and the attribute information.

[0011] According to an embodiment of the present disclosure, the smart home device testing method further includes: the smart home device receives a uniform resource locator corresponding to the audio and video resource fed back by the server to be tested; and the smart home device obtains the corresponding audio and video resource according to the uniform resource locator.

[0012] According to one embodiment of the present disclosure, the smart home device testing method also includes: the smart home device receives action response information fed back by the server to be tested, the action response information is information converted from text form to voice form, and the action response information corresponds to the playback information of the audio and video resources in the playback test instruction.

[0013] According to another aspect of the present disclosure, a smart home device testing method is provided, including: the test device receives a voice playback test instruction; the test device converts the voice playback test instruction into a playback test instruction in text form; the test device sends the playback test instruction to the corresponding smart home device, and the playback test instruction includes playback information of audio and video resources; the test device receives attribute information of the audio and video resources fed back by the smart home device, and the audio and video resources are fed back to the smart home device by the server to be tested; the test device determines the test result of the server to be tested based on the attribute information and the playback test instruction.

[0014] According to one embodiment of the present disclosure, the test device determines the test result of the server to be tested based on the attribute information and the playback test instruction, including: the test device parses the attribute information to determine the relevant information of the audio and video resource, the relevant information includes at least one of the label, name, author, time, format, and duration; the test device determines the preset attribute information contained in the playback information; the test device determines the matching degree between the relevant information of the audio and video resource and the preset attribute information; the test device determines the test result of the server to be tested based on the matching degree.

[0015] According to one embodiment of the present disclosure, the smart home device testing method further includes: the testing device determines the time interval between sending a play test instruction and receiving attribute information; and the testing device determines the response rate of the server to be tested according to the time interval.

[0016] According to an embodiment of the present disclosure, the test result includes at least one of test success or failure, test failure reason and accuracy rate.

[0017] According to another aspect of the present disclosure, a smart home device testing device is provided, including: a first receiving module, used to receive a play test instruction sent by a test device; a first sending module, used to request the server to be tested to obtain audio and video resource information according to the play test instruction; the first receiving module is also used to receive attribute information of the audio and video resources fed back by the server to be tested; the first sending module is also used to send the attribute information to the test device, so that the test device can determine the test result of the server to be tested according to the play test instruction and the attribute information.

[0018] According to another aspect of the present disclosure, a smart home device testing device is provided, including: a second receiving module, used to receive a voice playback test instruction; a conversion module, used to convert the voice playback test instruction into a text playback test instruction; a second sending module, used to send the playback test instruction to the corresponding smart home device, the playback test instruction including the playback information of the audio and video resources; the second receiving module is also used to receive the attribute information of the audio and video resources fed back by the smart home device, the audio and video resources are fed back to the smart home device by the server to be tested; a determination module, used to determine the test result of the server to be tested based on the attribute information and the playback information.

[0019] According to another aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute any one of the above-mentioned smart home device testing methods by executing the executable instructions.

[0020] According to another aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, any one of the above-mentioned smart home device testing methods is implemented.

[0021] The smart home device testing solution provided by the embodiments of the present disclosure sends a play test instruction and determines the test result of the server to be tested based on the attribute information, omitting the process of playing voice instructions and responding to the result, eliminating the need for manual verification of the test result, reducing the interference of the environment due to hardware and network factors, and improving the accuracy, test efficiency and reliability of the third-party server.

[0022] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.

[0024] Figure 1 A schematic diagram showing the architecture of a smart home device testing system in an embodiment of the present disclosure is shown;

[0025] Figure 2 A schematic diagram showing a flow chart of a smart home device testing method in an embodiment of the present disclosure;

[0026] Figure 3 A schematic diagram showing a flow chart of another smart home device testing method in an embodiment of the present disclosure;

[0027] Figure 4 A schematic diagram showing a flow chart of another smart home device testing method in an embodiment of the present disclosure;

[0028] Figure 5 A schematic diagram showing a flow chart of another smart home device testing method in an embodiment of the present disclosure;

[0029] Figure 6 A schematic diagram showing a flow chart of another smart home device testing method in an embodiment of the present disclosure;

[0030] Figure 7 A schematic diagram showing a flow chart of another smart home device testing method in an embodiment of the present disclosure;

[0031] Figure 8 A schematic block diagram showing a smart home device testing device in an embodiment of the present disclosure;

[0032] Fig. 9 A schematic block diagram showing another smart home device testing device in an embodiment of the present disclosure;

[0033] Fig.10 A schematic block diagram showing an electronic device in an embodiment of the present disclosure; and

[0034] Fig.11 A schematic diagram showing a computer-readable storage medium in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0035] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that the disclosure will be more comprehensive and complete and to fully convey the concepts of the example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.

[0036] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and thus their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0037] The solution provided by the present invention determines the test result of the server to be tested by sending a play test instruction to a third-party server and combining the attribute information fed back by the third-party server, omitting the process of playing voice instructions and responding to results, and does not require manual verification of test results, thereby reducing environmental interference caused by hardware and network factors, thereby providing an efficient and highly reliable smart home device testing solution.

[0038] The smart home device testing solution provided in the embodiments of the present disclosure involves technologies such as classification identification and communication interaction, which are specifically described through the following embodiments.

[0039] like Figure 1 As shown, the smart home device test automation system includes: a cloud server 102, a third-party server 104, a smart home device 106, a test script executor 108 and a test result storage 110, etc.

[0040] (1) The cloud server 102, as an embodiment of the test device of the present disclosure, can communicate and interact with the smart home device 106, and is mainly used to provide a running environment and data basis for the classifier. The classifier can realize the conversion from speech to text, or realize the conversion from text to speech.

[0041] (2) The third-party server 104, as an embodiment of the server to be tested of the present disclosure, can also communicate and interact with the smart home device 106, mainly for responding to the request of the smart home device 106 to feedback the corresponding audio and video resources.

[0042] (3) The smart home device 106 may be, for example, a smart speaker, a smart TV, a smart projection device, etc. The smart home device 106 disclosed herein generally has a sound pickup function and a playback function to recognize external voice commands and play audio and video resources.

[0043] (4) The test script executor 108 stores an executable script for testing, and automatically extracts key information contained in the voice command by calling the classifier as preset attribute information corresponding to the audio and video resource.

[0044] (5) The test result storage 110 and the test script executor 108 can communicate and exchange data, and can store and / or perform statistics on the test results of the third-party server 104.

[0045] Based on the above-mentioned smart home device test automation system, the following third-party server test steps may be performed, for example:

[0046] (1) A test is conducted on the music on-demand service of the third-party server 104. The voice command is “play Eason Chan’s Long Time No See”. The extracted preset attribute information includes: “singer – Eason Chan” and “song title – Long Time No See”.

[0047] (2) The cloud server 102 converts the voice command into a text command, and the test script executor 108 sends the text command to the smart home device 106 through the central control interface of the cloud.

[0048] (3) The software development kit built into the smart home device 106 calls the third-party server 104 and obtains the result.

[0049] (4) Taking the request for music service as an example, the third-party server 104 returns a tts (TTS is the abbreviation of Text To Speech, i.e. “from text to speech”) response, as well as video information and / or audio information, and corresponding attribute information.

[0050] (5) The test script executor 108 obtains the above feedback information from the third-party server 104 through the cloud server 102 .

[0051] (6) The test script executor 108 compares the preset attribute information with the attribute information in the feedback information to determine whether the response result of the third-party server 104 is correct.

[0052] Taking requesting music service as an example, if the singer and song information returned by the third-party server 104 is consistent with the singer and song information returned by the classifier, it is considered that the response of the third-party server 104 is correct.

[0053] (7) The test result storage 110 generates a statistical report corresponding to the test result. The statistical report may include, for example, whether the test passed, the specific reason for failure, the specific data of success, etc.

[0054] Refer to the following Figure 2 To describe the smart home device testing method according to this embodiment of the present disclosure. Figure 2 The smart home device testing method shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0055] like Figure 2 As shown, the smart home device testing method disclosed in the present invention includes:

[0056] Step S202: The smart home device receives a play test instruction sent by the test device.

[0057] Step S204: the smart home device requests the server to be tested to obtain audio and video resource information according to the play test instruction.

[0058] Step S206: the smart home device receives attribute information of the audio and video resources fed back by the server to be tested.

[0059] Step S208: The smart home device sends the attribute information to the test device, so that the test device can determine the test result of the server to be tested according to the play test instruction and the attribute information.

[0060] In the above embodiment, the smart home device receives a play test instruction, which is usually a string of text characters. The play test instruction will not be affected by environmental noise.

[0061] Furthermore, the preset attribute information contained in the play test instruction is determined, and the test result of the server to be tested is determined in combination with the attribute information fed back by the server to be tested, which not only has high test efficiency but also high reliability.

[0062] The attribute information may include, for example, product introduction information and playback parameter information of the audio-visual resource, but is not limited thereto.

[0063] based on Figure 2 The steps shown are as follows Figure 3 As shown, the smart home device testing method also includes:

[0064] Step S302: the smart home device receives the uniform resource locator corresponding to the audio and video resource fed back by the server to be tested.

[0065] Step S304: the smart home device obtains the corresponding audio and video resource according to the uniform resource locator.

[0066] In the above embodiment, the smart home device obtains the same resource locator, that is, obtains the acquisition link of the audio and video resource, and plays the audio and video resource through the same resource locator, which has high playback efficiency and is more streamlined.

[0067] based on Figure 3 The steps shown are as follows Figure 4 As shown, the smart home device testing method also includes:

[0068] In step S402, the smart home device receives action response information fed back by the server to be tested, where the action response information is information converted from text form to voice form, and the action response information corresponds to the playback information of the audio and video resource in the playback test instruction.

[0069] In the above embodiment, the smart home device can play the response action to the user through the voice module by receiving the action response information, so that the user can experience the voice function of the smart home device more intuitively.

[0070] Refer to the following Figure 5 To describe the smart home device testing method according to this embodiment of the present disclosure. Figure 5 The smart home device testing method shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present disclosure.

[0071] like Figure 5 As shown, the smart home device testing method includes:

[0072] Step S502: The test device receives a voice playback test instruction.

[0073] Step S504: the test device converts the voice play test instruction into a text play test instruction.

[0074] In step S506, the test device sends a play test instruction to the corresponding smart home device, where the play test instruction includes play information of the audio and video resource.

[0075] In step S508, the test device receives attribute information of the audio and video resources fed back by the smart home device. The audio and video resources are fed back to the smart home device by the server to be tested.

[0076] Step S510: The testing device determines the test result of the server to be tested according to the attribute information and the play test instruction.

[0077] In the above embodiment, the test device converts the voice play test instruction into a text play test instruction and sends it to the corresponding smart home device. The text play test instruction will not be affected by environmental noise.

[0078] Furthermore, the testing device determines preset attribute information contained in the playback test instruction, and determines the test result of the server to be tested in combination with the attribute information fed back by the server to be tested.

[0079] The attribute information may include, for example, product introduction information and playback parameter information of the audio-visual resource, but is not limited thereto.

[0080] based on Figure 5 The steps shown are as follows Figure 6 As shown, in step S510, the test device determines the test result of the server to be tested according to the attribute information and the play test instruction, including:

[0081] Step S602 , the test device parses the attribute information to determine relevant information of the audio-visual resource, where the relevant information includes at least one of a tag, a name, an author, a time, a format, and a duration.

[0082] In the above embodiment, the name may be, for example, an album name and / or a work name.

[0083] Step S604: the testing device determines the preset attribute information included in the playback information.

[0084] Step S606: the testing device determines the matching degree between the relevant information of the audio-visual resource and the preset attribute information.

[0085] Step S608: The testing device determines the test result of the server to be tested according to the matching degree.

[0086] In the above embodiment, the test result of the server to be tested is determined based on the matching degree between the preset attribute information of the test device and the relevant information of the audio and video resources, which is more accurate and objective, and the test result is less affected by the network factors and hardware factors of the smart home device.

[0087] based on Figure 6 The steps shown are as follows Figure 7 As shown, the smart home device testing method also includes:

[0088] Step S702: The test device determines the time interval between sending the play test instruction and receiving the attribute information.

[0089] Step S704: The testing device determines the response rate of the server to be tested according to the time interval.

[0090] In the above embodiment, the response rate of the server to be tested is determined by the time interval between sending the play test instruction and receiving the attribute information. The response rate can be used as a parameter of the response result and can also assist in correcting the response result.

[0091] According to an embodiment of the present disclosure, the test result includes at least one of test success or failure, test failure reason and accuracy rate.

[0092] The above test results may be given in a list, for example, and updated according to the test cycle.

[0093] Refer to the following Figure 8 The smart home device testing device according to this embodiment of the present disclosure is described. Figure 8 The smart home device testing device 800 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0094] like Figure 8 As shown, the smart home device testing device 800 disclosed in this embodiment includes: a first receiving module 802 and a first sending module 804 .

[0095] The first receiving module 802 is used to receive a play test instruction sent by a test device.

[0096] The first sending module 804 is used for requesting the server to be tested to obtain the video and audio resource information according to the play test instruction.

[0097] The first receiving module 802 is further configured to receive attribute information of the audio and video resources fed back by the server to be tested.

[0098] The first sending module 804 is further used to send the attribute information to the test device, so that the test device can determine the test result of the server to be tested according to the play test instruction and the attribute information.

[0099] Refer to the following Fig. 9 The smart home device testing device 900 according to this embodiment of the present disclosure is described. Fig. 9 The smart home device testing device 900 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0100] like Fig. 9 As shown, the smart home device testing device 900 includes: a second receiving module 902 , a conversion module 904 , a second sending module 906 and a determination module 908 .

[0101] The second receiving module 902 is used to receive a voice play test instruction.

[0102] The conversion module 904 is used to convert the voice play test instruction into a text play test instruction.

[0103] The second sending module 906 is used to send a play test instruction to the corresponding smart home device, and the play test instruction includes the play information of the audio and video resource.

[0104] The second receiving module 902 is further used to receive attribute information of audio and video resources fed back by the smart home device, where the audio and video resources are fed back by the server to be tested to the smart home device.

[0105] The determination module 908 is used to determine the test result of the server to be tested according to the attribute information and the playback information.

[0106] Refer to the following Fig.10 The electronic device 1000 according to this embodiment of the present disclosure is described. Fig.10 The electronic device 1000 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0107] like Fig.10 As shown, the electronic device 1000 is in the form of a general computing device. The components of the electronic device 1000 may include but are not limited to: the above-mentioned processing unit 1010, the above-mentioned storage unit 1020, and a bus 1030 connecting components of different smart home device test systems (including the storage unit 1020 and the processing unit 1010).

[0108] The storage unit stores program codes, which can be executed by the processing unit 1010, so that the processing unit 1010 performs the steps according to various exemplary embodiments of the present disclosure described in the above “Exemplary Method” section of this specification. For example, the processing unit 1010 can perform the following steps: Figures 2 to 7 All the steps shown in, as well as other steps defined in the smart home device testing method of the present invention.

[0109] The storage unit 1020 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 10201 and / or a cache storage unit 10202 , and may further include a read-only storage unit (ROM) 10203 .

[0110] The storage unit 1020 may also include a program / utility 10204 having a set of program modules 10205, such program modules 10205 including, but not limited to: operating a smart home device testing system, one or more applications, other program modules, and program data, each of which or some combination may include the implementation of a network environment.

[0111] Bus 1030 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0112] The electronic device 1000 may also communicate with one or more external devices 1070 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), one or more devices that enable a user to interact with the electronic device, and / or any device that enables the electronic device 1000 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed through an input / output (I / O) interface 1050.

[0113] Furthermore, the electronic device 1000 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 1060. As shown, the network adapter 1060 communicates with other modules of the electronic device 1000 via a bus 1030. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID smart home device test systems, tape drives, and data backup storage smart home device test systems, etc.

[0114] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0115] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the above method of the present specification is stored. In some possible implementations, various aspects of the present disclosure may also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary implementations of the present disclosure described in the above "Exemplary Method" section of the present specification.

[0116] refer to Fig.11 As shown, a computer program 1100 for implementing the above method according to an embodiment of the present disclosure is described, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction-executing smart home device test system, device or device.

[0117] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction-executing smart home device testing system, device, or device.

[0118] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.

[0119] Program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0120] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.

[0121] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.

[0122] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a mobile terminal, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0123] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the disclosure disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure, which follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the appended claims.

Claims

1. A method for testing smart home devices, characterized in that: The method comprises: The smart home device receives a play test instruction sent by the test device, where the play test instruction is a string in text form and includes preset attribute information; The smart home device requests the server to be tested to obtain audio and video resource information according to the play test instruction; The smart home device receives attribute information of the audio-visual resource fed back by the server to be tested, where the attribute information includes relevant information of the audio-visual resource; The smart home device sends the attribute information to the test device, so that the test device determines the test result of the server to be tested according to the preset attribute information contained in the play test instruction and the attribute information.

2. The smart home device testing method according to claim 1, characterized in that: Also includes: The smart home device receives the uniform resource locator corresponding to the audio and video resource fed back by the server to be tested; The smart home device obtains the corresponding audio and video resource according to the uniform resource locator.

3. The smart home device testing method according to claim 1, characterized in that: Also includes: The smart home device receives action response information fed back by the server to be tested, where the action response information is information converted from text form to voice form, and the action response information corresponds to the playback information of the audio and video resource in the playback test instruction.

4. A method for testing smart home devices, characterized in that: The method comprises: The test device receives a voice playback test instruction; The test device converts the voice play test instruction into a play test instruction in text form, wherein the play test instruction includes preset attribute information; The test device sends the play test instruction to the corresponding smart home device, wherein the play test instruction includes play information of the audio and video resource; The test device receives attribute information of the audio-visual resource fed back by the smart home device, the audio-visual resource is fed back to the smart home device by the server to be tested, and the attribute information includes relevant information of the audio-visual resource; The testing device determines the test result of the server to be tested according to the attribute information and the preset attribute information contained in the play test instruction.

5. The smart home device testing method according to claim 4, characterized in that: The test device determines the test result of the server to be tested according to the preset attribute information contained in the attribute information and the play test instruction, including: The test device parses the attribute information to determine relevant information of the audio-visual resource, where the relevant information includes at least one of a tag, a name, an author, a time, a format, and a duration; The testing device determines the preset attribute information included in the playback information; The testing device determines the matching degree between the relevant information of the audio-visual resource and the preset attribute information; The testing device determines a test result of the server to be tested according to the matching degree.

6. The smart home device testing method according to claim 4 or 5, characterized in that: Also includes: The test device determines the time interval between sending the play test instruction and receiving the attribute information; The testing device determines the response rate of the server to be tested according to the time interval.

7. The smart home device testing method according to any one of claims 1 to 5, characterized in that: The test result includes at least one of test success or failure, test failure reason and accuracy.

8. A smart home device testing device, characterized in that: include: A first receiving module, configured to receive a play test instruction sent by a test device, wherein the play test instruction is a string in text form and includes preset attribute information; A first sending module, configured to request the server to be tested to obtain the corresponding audio-visual resource and the attribute information corresponding to the audio-visual resource according to the play test instruction, wherein the attribute information includes the relevant information of the audio-visual resource; The first receiving module is further used to receive attribute information of the audio and video resources fed back by the server to be tested; The first sending module is further used to send the attribute information to the test device, so that the test device can determine the test result of the server to be tested according to the preset attribute information contained in the play test instruction and the attribute information.

9. A smart home device testing device, characterized in that: include: A second receiving module is used to receive a voice playback test instruction; A conversion module, used for converting the voice play test instruction into a play test instruction in text form, wherein the play test instruction includes preset attribute information; A second sending module, used to send the play test instruction to the corresponding smart home device, wherein the play test instruction includes the play information of the audio and video resource; The second receiving module is further used to receive attribute information of the audio-visual resource fed back by the smart home device, the audio-visual resource is fed back to the smart home device by the server to be tested, and the attribute information includes relevant information of the audio-visual resource; A determination module is used to determine the test result of the server to be tested according to the attribute information and the preset attribute information contained in the play test instruction.

10. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to execute the smart home device testing method according to any one of claims 1 to 7 by executing the executable instructions.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the smart home device testing method according to any one of claims 1 to 7 is implemented.