CN114125684B - Smart speaker testing method and device, electronic equipment and storage medium - Google Patents

Smart speaker testing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114125684B
CN114125684B CN202111467853.2A CN202111467853A CN114125684B CN 114125684 B CN114125684 B CN 114125684B CN 202111467853 A CN202111467853 A CN 202111467853A CN 114125684 B CN114125684 B CN 114125684B
Authority
CN
China
Prior art keywords
text
test
test command
command text
user interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111467853.2A
Other languages
Chinese (zh)
Other versions
CN114125684A (en
Inventor
林飞
陈吉胜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Unisound Intelligent Technology Co Ltd
Original Assignee
Unisound Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Unisound Intelligent Technology Co Ltd filed Critical Unisound Intelligent Technology Co Ltd
Priority to CN202111467853.2A priority Critical patent/CN114125684B/en
Publication of CN114125684A publication Critical patent/CN114125684A/en
Application granted granted Critical
Publication of CN114125684B publication Critical patent/CN114125684B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements
    • H04R29/001Monitoring arrangements; Testing arrangements for loudspeakers
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10LSPEECH ANALYSIS OR SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING; SPEECH OR AUDIO CODING OR DECODING
    • G10L15/00Speech recognition
    • G10L15/26Speech to text systems

Abstract

The embodiment of the application discloses an intelligent sound box testing method, an intelligent sound box testing device, electronic equipment and a storage medium. One embodiment of the method comprises the following steps: sending a test command text to a tester according to a preset test case; receiving the voice of a test command text broadcasted by a tester; executing the operation corresponding to the voice of the test command text and broadcasting the audio; receiving an identification text of the audio sent by the tester; and generating a test result according to the expected audio text and the identification text corresponding to the test command text. The embodiment provides an automatic testing method of the intelligent sound box, and improves testing efficiency of the intelligent sound box.

Description

Smart speaker testing method and device, electronic equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of computers, in particular to an intelligent sound box testing method, an intelligent sound box testing device, electronic equipment and a storage medium.
Background
With the development of artificial intelligence technology, intelligent sound boxes, such as intelligent sound boxes with screens and intelligent sound boxes, are gradually used by wide users. The user can interact with the intelligent sound box through voice, so that the intelligent sound box can respond according to the voice sent by the user. At present, the test of the intelligent sound box is mainly to verify the response broadcast of the sound box by manually speaking the corresponding command.
Disclosure of Invention
The embodiment of the application provides an intelligent sound box testing method, an intelligent sound box testing device, electronic equipment and a storage medium.
In a first aspect, some embodiments of the present application provide a smart speaker testing method, including: sending a test command text to a tester according to a preset test case; receiving the voice of a test command text broadcasted by a tester; executing the operation corresponding to the voice of the test command text and broadcasting the audio; receiving an identification text of the audio sent by the tester; and generating a test result according to the expected audio text and the identification text corresponding to the test command text.
In some embodiments, after performing the operation corresponding to the voice of the test command text and broadcasting the audio, the method further comprises: checking a user interface corresponding to the test command text and storing a screenshot; determining whether the user interface verification fails; intercepting and storing a work log in response to determining that the user interface verification fails; generating a test result according to the expected audio text and the identification text corresponding to the test command text, wherein the test result comprises the following steps: and generating a test result according to the user interface verification result, the expected audio text corresponding to the test command text and the identification text.
In some embodiments, performing user interface verification corresponding to the test command text and saving the screenshot includes: determining whether the test command text relates to a preset application; and responding to the determination that the test command text relates to the preset application, and after opening the preset application related to the test command text, checking the corresponding user interface and saving the screenshot.
In some embodiments, in response to determining that the test command text relates to a preset application, after opening the preset application related to the test command text, performing corresponding user interface verification and saving the screenshot, the method further includes: determining whether the test command text contains time information; acquiring time information contained in the test command text in response to determining whether the test command text contains the time information; and responding to the matching of the system time and the acquired time information, checking the corresponding user interface again and saving the screenshot.
In some embodiments, after generating the test result from the user interface verification result, the expected audio text corresponding to the test command text, and the recognition text, the method further comprises: determining whether the test case is executed; and responding to the completion of the execution of the test case, sending a test result corresponding to the test command text included in the test case to the test machine, uploading the screenshot and the intercepted work log, so that the test machine generates and sends a test report to a preset address based on the test result corresponding to the test command text included in the test case, the screenshot and the intercepted work log.
In some embodiments, sending test command text to a tester according to a preset test case includes: and the data exchange is carried out on a preset topic by connecting with the testing machine to a message queue telemetry transmission protocol.
In some embodiments, the tester is connected with a high-fidelity speaker, and the position of the high-fidelity speaker is set according to the actual use situation.
In a second aspect, some embodiments of the present application provide an intelligent sound box testing apparatus, the apparatus including: the sending unit is configured to send a test command text to the testing machine according to a preset test case; a first receiving unit configured to receive a voice of a test command text broadcasted by the tester; the execution unit is configured to execute the operation corresponding to the voice of the test command text and broadcast the audio; a second receiving unit configured to receive the identification text of the audio transmitted by the tester; and the generating unit is configured to generate a test result according to the expected audio text and the identification text corresponding to the test command text.
In some embodiments, the apparatus further comprises: the verification unit is configured to verify the user interface corresponding to the test command text and store the screenshot; a determining unit configured to determine whether the user interface verification fails; an intercepting unit configured to intercept and save the work log in response to determining that the user interface verification fails; and a generation unit further configured to: and generating a test result according to the user interface verification result, the expected audio text corresponding to the test command text and the identification text.
In some embodiments, the verification unit is further configured to: determining whether the test command text relates to a preset application; and responding to the determination that the test command text relates to the preset application, and after opening the preset application related to the test command text, checking the corresponding user interface and saving the screenshot.
In some embodiments, the verification unit is further configured to: determining whether the test command text contains time information; acquiring time information contained in the test command text in response to determining whether the test command text contains the time information; and responding to the matching of the system time and the acquired time information, checking the corresponding user interface again and saving the screenshot.
In some embodiments, the generating unit is further configured to: determining whether the test case is executed; and responding to the completion of the execution of the test case, sending a test result corresponding to the test command text included in the test case to the test machine, uploading the screenshot and the intercepted work log, so that the test machine generates and sends a test report to a preset address based on the test result corresponding to the test command text included in the test case, the screenshot and the intercepted work log.
In some embodiments, the transmitting unit is further configured to: and the data exchange is carried out on a preset topic by connecting with the testing machine to a message queue telemetry transmission protocol.
In some embodiments, the tester is connected with a high-fidelity speaker, and the position of the high-fidelity speaker is set according to the actual use situation.
In a third aspect, some embodiments of the present application provide an apparatus comprising: one or more processors; and a storage device having one or more programs stored thereon, which when executed by the one or more processors cause the one or more processors to implement the method as described in the first aspect.
In a fourth aspect, some embodiments of the present application provide a computer readable medium having stored thereon a computer program which when executed by a processor implements a method as described in the first aspect.
According to the intelligent sound box testing method, the intelligent sound box testing device, the electronic equipment and the storage medium, test command texts are sent to a testing machine according to preset test cases; receiving the voice of a test command text broadcasted by a tester; executing the operation corresponding to the voice of the test command text and broadcasting the audio; receiving an identification text of the audio sent by the tester; according to the expected audio text and the identification text corresponding to the command text for testing, a test result is generated, an automatic test method of the intelligent sound box is provided, and the test efficiency of the intelligent sound box is improved.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the detailed description of non-limiting embodiments, made with reference to the following drawings, in which:
FIG. 1 is an exemplary system architecture diagram to which some of the present application may be applied;
FIG. 2 is a flow chart of one embodiment of a smart speaker testing method according to the present application;
FIG. 3 is a schematic diagram of one embodiment of a smart speaker test device according to the present application;
fig. 4 is a schematic diagram of a computer system suitable for use in implementing some embodiments of the present application.
Detailed Description
The present application is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings.
It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other. The present application will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
FIG. 1 illustrates an exemplary system architecture 100 to which embodiments of the smart speaker testing method or smart speaker testing apparatus of the present application may be applied.
As shown in fig. 1, the system architecture 100 may include a smart speaker 101, terminal devices 102, 103, a network 104, and a server 105. The network 104 is used as a medium to provide a communication link between the smart speakers 101, the terminal devices 102, 103, and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
A user may interact with the server 105 via the network 104 using the smart speakers 101, the terminal devices 102, 103, to receive or send messages, etc. Various client applications, such as a voice play class application, a voice conversion class application, a voice recognition class application, a search class application, and the like, may be installed on the terminal devices 102, 103.
The smart box 101 and the terminal devices 102 and 103 may be hardware or software. When the terminal devices 102, 103 are hardware, they may be provided with various electronic devices including, but not limited to, smartphones, tablets, laptop and desktop computers, and the like. When the smart box 101 and the terminal devices 102 and 103 are software, they can be installed in the electronic devices listed above. Which may be implemented as a plurality of software or software modules, or as a single software or software module. The present invention is not particularly limited herein. The server 105 may be a server providing various services, such as a background server providing support for interaction of the smart speakers 101, the terminal devices 102, 103.
The intelligent sound box 101 can be carried with a test application, and a test command text can be sent to a tester according to a preset test case; receiving the voice of a test command text broadcasted by a tester; executing the operation corresponding to the voice of the test command text and broadcasting the audio; receiving an identification text of the audio sent by the tester; and generating a test result according to the expected audio text and the identification text corresponding to the test command text.
It should be noted that, the method for testing the intelligent sound box provided in the embodiment of the present application may be executed by the server 105, or may be executed by the intelligent sound box 101 and the terminal devices 102 and 103, and accordingly, the device for testing the intelligent sound box may be set in the server 105, or may be set in the intelligent sound box 101 and the terminal devices 102 and 103.
The server may be hardware or software. When the server is hardware, the server may be implemented as a distributed server cluster formed by a plurality of servers, or may be implemented as a single server. When the server is software, it may be implemented as a plurality of software or software modules (e.g., to provide distributed services), or as a single software or software module. The present invention is not particularly limited herein.
It should be understood that the number of intelligent speakers, terminal devices, networks and servers in fig. 1 is merely illustrative. Any number of intelligent speakers, terminal devices, networks, and servers may be provided as desired.
With continued reference to fig. 2, a flow 200 of one embodiment of a smart speaker testing method in accordance with the present application is shown. The intelligent sound box testing method comprises the following steps:
step 201, sending test command text to a tester according to a preset test case.
In this embodiment, the execution body of the intelligent sound box testing method may first send a test command text to the testing machine according to a preset test case. In this embodiment, the test case may include a plurality of test command texts to be tested and expected audio texts corresponding to expected test, and if the intelligent sound box is a device with a screen, some user interface verification data may also be included. The testing machine may comprise a terminal device such as a computer. The execution body can directly communicate with the testing machine by establishing communication connection, and can also communicate by means of some middleware or message queues.
In some optional implementations of the present embodiment, sending test command text to a tester according to a preset test case includes: and the data exchange is carried out on a preset topic by connecting with the testing machine to a message queue telemetry transmission protocol. Message queue telemetry transport protocol (Message Queuing Telemetry Transport, MQTT), a "lightweight" communication protocol based on publish/subscribe (TCP/IP) mode, is built on top of TCP/IP protocol. The biggest advantage of MQTT is that it can provide real-time reliable messaging services to connected remote devices with very little code and limited bandwidth. The message queue telemetry transmission protocol is an instant communication protocol with low overhead and low bandwidth occupation, and the embodiment improves the interaction efficiency between devices during testing through the message queue telemetry transmission protocol.
In some optional implementations of this embodiment, the testing machine is connected with a hi-fi speaker, and the position of the hi-fi speaker is set according to the actual use scenario. In the implementation mode, the test audio is played through the high-fidelity sound box, and the position of the test audio is reasonably set, so that the actual use scene is simulated to the greatest extent, and the accuracy of the test result is further improved.
Step 202, receiving the voice of the test command text broadcasted by the tester.
In this embodiment, the executing body may use the radio device to receive the voice of the test command text broadcasted by the tester.
And 203, executing the operation corresponding to the voice of the test command text and broadcasting the audio.
In this embodiment, the executing body may execute the operation corresponding to the voice of the test command text received in step 202 and broadcast the audio.
In some optional implementations of this embodiment, after performing the operation corresponding to the voice of the test command text and broadcasting the audio, the method further includes: checking a user interface corresponding to the test command text and storing a screenshot; determining whether the user interface verification fails; intercepting and storing a work log in response to determining that the user interface verification fails; generating a test result according to the expected audio text and the identification text corresponding to the test command text, wherein the test result comprises the following steps: and generating a test result according to the user interface verification result, the expected audio text corresponding to the test command text and the identification text. In the implementation mode, the testing of the user interface of the intelligent sound box with the screen is realized, and the testing method of the intelligent sound box is further perfected.
In some optional implementations of this embodiment, performing user interface verification corresponding to the test command text and saving the screenshot includes: determining whether the test command text relates to a preset application; and responding to the determination that the test command text relates to the preset application, and after opening the preset application related to the test command text, checking the corresponding user interface and saving the screenshot. The preset application can comprise an alarm clock and a schedule application, and in the implementation mode, the user interface test method of the intelligent sound box is further perfected by opening the preset application related to the test command text, then checking the corresponding user interface and saving the screenshot.
In some optional implementations of this embodiment, in response to determining that the test command text relates to a preset application, after opening the preset application related to the test command text, performing a corresponding user interface verification and saving the screenshot, the method further includes: determining whether the test command text contains time information; acquiring time information contained in the test command text in response to determining whether the test command text contains the time information; and responding to the matching of the system time and the acquired time information, checking the corresponding user interface again and saving the screenshot. The preset application can comprise an alarm clock and a schedule application, and the time information can be the set backlog or the time of the alarm clock.
And step 204, receiving the identification text of the audio sent by the tester.
In this embodiment, the executing body may receive the identification text sent by the tester for audio through a message queue telemetry transmission protocol or the like. The tester can recognize the audio through a voice recognition technology.
And 205, generating a test result according to the expected audio text and the identification text corresponding to the test command text.
In this embodiment, the execution body may generate the test result according to the expected audio text corresponding to the test command text and the recognition text received in step 204. The execution body may generate the test result by comparing whether the expected audio text and the recognition text generate the test result or determining the similarity of the expected audio text and the recognition text, or may send both to the tester, and generate the test result by comparing whether the expected audio text and the recognition text generate the test result or determining the similarity of the expected audio text and the recognition text. The test results may include pass or fail of the test, or may generate a test score, which may be set according to particular needs.
In some optional implementations of this embodiment, after generating the test result according to the user interface verification result, the expected audio text corresponding to the test command text, and the identification text, the method further includes: determining whether the test case is executed; and responding to the completion of the execution of the test case, sending a test result corresponding to the test command text included in the test case to the test machine, uploading the screenshot and the intercepted work log, so that the test machine generates and sends a test report to a preset address based on the test result corresponding to the test command text included in the test case, the screenshot and the intercepted work log. In this implementation manner, the execution body may upload the screenshot and the intercepted work log through a protocol such as a file transfer protocol (File Transfer Protocol, FTP), and the test machine may obtain the screenshot and the intercepted work log through the file transfer protocol, and the execution body may also directly send the screenshot and the intercepted work log to the test machine. The preset address may include an address of the device and an address of the mailbox. In the implementation mode, the automatic generation of the test report is realized, and the test efficiency is further improved.
The method provided by the embodiment of the application sends the test command text to the tester according to the preset test case; receiving the voice of a test command text broadcasted by a tester; executing the operation corresponding to the voice of the test command text and broadcasting the audio; receiving an identification text of the audio sent by the tester; according to the expected audio text and the identification text corresponding to the command text for testing, a test result is generated, an automatic test method of the intelligent sound box is provided, and the test efficiency of the intelligent sound box is improved.
With further reference to fig. 3, as an implementation of the method shown in the foregoing drawings, the present application provides an embodiment of an intelligent sound box testing apparatus, where the embodiment of the apparatus corresponds to the embodiment of the method shown in fig. 2, and the apparatus may be specifically applied to various electronic devices.
As shown in fig. 3, the smart speaker testing apparatus 300 of the present embodiment includes: a transmitting unit 301, a first receiving unit 302, an executing unit 303, a second receiving unit 304, and a generating unit 305. The sending unit is configured to send a test command text to the testing machine according to a preset test case; a first receiving unit configured to receive a voice of a test command text broadcasted by the tester; the execution unit is configured to execute the operation corresponding to the voice of the test command text and broadcast the audio; a second receiving unit configured to receive the identification text of the audio transmitted by the tester; and the generating unit is configured to generate a test result according to the expected audio text and the identification text corresponding to the test command text.
In this embodiment, the specific processes of the sending unit 301, the first receiving unit 302, the executing unit 303, the second receiving unit 304, and the generating unit 305 of the smart speaker test apparatus 300 may refer to steps 201, 202, 203, 204, and 205 in the corresponding embodiment of fig. 2.
In some optional implementations of this embodiment, the apparatus further includes: the verification unit is configured to verify the user interface corresponding to the test command text and store the screenshot; a determining unit configured to determine whether the user interface verification fails; an intercepting unit configured to intercept and save the work log in response to determining that the user interface verification fails; and a generation unit further configured to: and generating a test result according to the user interface verification result, the expected audio text corresponding to the test command text and the identification text.
In some optional implementations of the present embodiment, the verification unit is further configured to: determining whether the test command text relates to a preset application; and responding to the determination that the test command text relates to the preset application, and after opening the preset application related to the test command text, checking the corresponding user interface and saving the screenshot.
In some optional implementations of the present embodiment, the verification unit is further configured to: determining whether the test command text contains time information; acquiring time information contained in the test command text in response to determining whether the test command text contains the time information; and responding to the matching of the system time and the acquired time information, checking the corresponding user interface again and saving the screenshot.
In some optional implementations of the present embodiment, the generating unit is further configured to: determining whether the test case is executed; and responding to the completion of the execution of the test case, sending a test result corresponding to the test command text included in the test case to the test machine, uploading the screenshot and the intercepted work log, so that the test machine generates and sends a test report to a preset address based on the test result corresponding to the test command text included in the test case, the screenshot and the intercepted work log.
In some optional implementations of the present embodiment, the transmitting unit is further configured to: and the data exchange is carried out on a preset topic by connecting with the testing machine to a message queue telemetry transmission protocol.
In some optional implementations of this embodiment, the testing machine is connected with a hi-fi speaker, and the position of the hi-fi speaker is set according to the actual use scenario.
According to the device provided by the embodiment of the application, the test command text is sent to the tester according to the preset test case; receiving the voice of a test command text broadcasted by a tester; executing the operation corresponding to the voice of the test command text and broadcasting the audio; receiving an identification text of the audio sent by the tester; according to the expected audio text and the identification text corresponding to the test command text, a test result is generated, and after the executor writes the test case according to the specified format and carries out review confirmation, the follow-up operation is automatically carried out, so that manual intervention is not needed, a large amount of test resources are saved, and the test quality can be fully ensured.
Referring now to FIG. 4, there is illustrated a schematic diagram of a computer system 400 suitable for use in implementing a server or terminal of an embodiment of the present application. The server or terminal illustrated in fig. 4 is merely an example, and should not be construed as limiting the functionality and scope of use of the embodiments of the present application.
As shown in fig. 4, the computer system 400 includes a Central Processing Unit (CPU) 401, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 402 or a program loaded from a storage section 408 into a Random Access Memory (RAM) 403. In RAM 403, various programs and data required for the operation of system 400 are also stored. The CPU 401, ROM 402, and RAM 403 are connected to each other by a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
The following components may be connected to the I/O interface 405: an input section 406 such as a keyboard, a mouse, and the like; an output portion 407 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker, and the like; a storage section 408 including a hard disk or the like; and a communication section 409 including a network interface card such as a LAN card, a modem, or the like. The communication section 409 performs communication processing via a network such as the internet. The drive 410 is also connected to the I/O interface 405 as needed. A removable medium 411 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed on the drive 410 as needed, so that a computer program read therefrom is installed into the storage section 408 as needed.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 409 and/or installed from the removable medium 411. The above-described functions defined in the method of the present application are performed when the computer program is executed by a Central Processing Unit (CPU) 401. It should be noted that the computer readable medium described in the present application may be a computer readable signal medium or a computer readable medium, or any combination of the two. The computer readable medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present application, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable 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 computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present application may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the C-programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present application may be implemented by software, or may be implemented by hardware. The described units may also be provided in a processor, for example, described as: a processor includes a transmitting unit, a first receiving unit, an executing unit, a second receiving unit, and a generating unit. The names of these units do not constitute a limitation on the unit itself in some cases, and for example, the transmission unit may also be described as "a unit configured to transmit a test command text to a tester according to a preset test case".
As another aspect, the present application also provides a computer-readable medium that may be contained in the apparatus described in the above embodiments; or may be present alone without being fitted into the device. The computer readable medium carries one or more programs which, when executed by the apparatus, cause the apparatus to: sending a test command text to a tester according to a preset test case; receiving the voice of a test command text broadcasted by a tester; executing the operation corresponding to the voice of the test command text and broadcasting the audio; receiving an identification text of the audio sent by the tester; and generating a test result according to the expected audio text and the identification text corresponding to the test command text.
The foregoing description is only of the preferred embodiments of the present application and is presented as a description of the principles of the technology being utilized. It will be appreciated by persons skilled in the art that the scope of the invention referred to in this application is not limited to the specific combinations of features described above, but it is intended to cover other embodiments in which any combination of features described above or equivalents thereof is possible without departing from the spirit of the invention. Such as the above-described features and technical features having similar functions (but not limited to) disclosed in the present application are replaced with each other.

Claims (9)

1. An intelligent sound box testing method comprises the following steps:
sending a test command text to a tester according to a preset test case;
receiving the voice of the test command text broadcasted by the tester;
executing the operation corresponding to the voice of the test command text and broadcasting the audio;
receiving an identification text of the audio sent by the testing machine;
generating a test result according to the expected audio text corresponding to the test command text and the identification text;
after the operation corresponding to the voice of the test command text is executed and the audio is broadcasted, the method further comprises the following steps:
checking a user interface corresponding to the test command text and storing a screenshot;
determining whether the user interface verification fails;
intercepting and storing a work log in response to determining that the user interface verification fails; and
the generating a test result according to the expected audio text corresponding to the test command text and the identification text comprises the following steps:
and generating a test result according to the user interface verification result, the expected audio text corresponding to the test command text and the identification text.
2. The method of claim 1, wherein the performing the user interface verification and saving screenshot corresponding to the test command text comprises:
determining whether the test command text relates to a preset application;
and responding to the determination that the test command text relates to the preset application, and after the preset application related to the test command text is opened, performing corresponding user interface verification and saving the screenshot.
3. The method of claim 2, wherein, in response to determining that the test command text relates to a preset application, after opening the preset application to which the test command text relates and performing a corresponding user interface verification and saving a screenshot, the method further comprises:
determining whether the test command text contains time information;
acquiring time information contained in the test command text in response to determining whether the test command text contains the time information;
and responding to the matching of the system time and the acquired time information, checking the corresponding user interface again and saving the screenshot.
4. The method of claim 1, wherein after the generating a test result from the user interface verification result, the expected audio text corresponding to the test command text, and the recognition text, the method further comprises:
determining whether the test case is executed;
and responding to the completion of the execution of the test case, sending a test result corresponding to the test command text included in the test case to the test machine, uploading the screenshot and the intercepted work log, and generating and sending a test report to a preset address by the test machine based on the test result corresponding to the test command text included in the test case and the screenshot and the intercepted work log.
5. The method of claim 1, wherein the sending test command text to the tester according to the preset test case comprises:
and the testing machine is connected to a message queue telemetry transmission protocol, and data exchange is carried out on a preset topic.
6. The method of any of claims 1-5, wherein the tester has a hi-fi speaker attached, the location of the hi-fi speaker being set according to an actual use scenario.
7. An intelligent sound box testing device, comprising:
the sending unit is configured to send a test command text to the testing machine according to a preset test case;
a first receiving unit configured to receive a voice of the test command text broadcasted by the testing machine;
the execution unit is configured to execute the operation corresponding to the voice of the test command text and broadcast the audio;
a second receiving unit configured to receive the identification text of the audio transmitted by the tester;
a generation unit configured to generate a test result from the expected audio text corresponding to the test command text and the recognition text;
wherein the apparatus further comprises: the verification unit is configured to verify the user interface corresponding to the test command text and store a screenshot; a determining unit configured to determine whether the user interface verification fails; an intercepting unit configured to intercept and save a work log in response to determining that the user interface verification fails; and a generation unit further configured to: and generating a test result according to the user interface verification result, the expected audio text corresponding to the test command text and the identification text.
8. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the method of any of claims 1-6.
9. A computer readable medium having stored thereon a computer program which, when executed by a processor, implements the method of any of claims 1-6.
CN202111467853.2A 2021-12-02 2021-12-02 Smart speaker testing method and device, electronic equipment and storage medium Active CN114125684B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111467853.2A CN114125684B (en) 2021-12-02 2021-12-02 Smart speaker testing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111467853.2A CN114125684B (en) 2021-12-02 2021-12-02 Smart speaker testing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114125684A CN114125684A (en) 2022-03-01
CN114125684B true CN114125684B (en) 2024-02-27

Family

ID=80366397

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111467853.2A Active CN114125684B (en) 2021-12-02 2021-12-02 Smart speaker testing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114125684B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104253892A (en) * 2013-06-28 2014-12-31 刘伟 Method and system for testing performance of application program in intelligent mobile equipment
CN108228468A (en) * 2018-02-12 2018-06-29 腾讯科技(深圳)有限公司 A kind of test method, device, test equipment and storage medium
CN109285543A (en) * 2018-09-07 2019-01-29 惠州市德赛西威汽车电子股份有限公司 A kind of vehicle-mounted multimedia navigating instrument voice automatization test system
CN111798833A (en) * 2019-04-04 2020-10-20 北京京东尚科信息技术有限公司 Voice test method, device, equipment and storage medium
CN113362806A (en) * 2020-03-02 2021-09-07 北京奇虎科技有限公司 Intelligent sound evaluation method, system, storage medium and computer equipment thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104253892A (en) * 2013-06-28 2014-12-31 刘伟 Method and system for testing performance of application program in intelligent mobile equipment
CN108228468A (en) * 2018-02-12 2018-06-29 腾讯科技(深圳)有限公司 A kind of test method, device, test equipment and storage medium
CN109285543A (en) * 2018-09-07 2019-01-29 惠州市德赛西威汽车电子股份有限公司 A kind of vehicle-mounted multimedia navigating instrument voice automatization test system
CN111798833A (en) * 2019-04-04 2020-10-20 北京京东尚科信息技术有限公司 Voice test method, device, equipment and storage medium
CN113362806A (en) * 2020-03-02 2021-09-07 北京奇虎科技有限公司 Intelligent sound evaluation method, system, storage medium and computer equipment thereof

Also Published As

Publication number Publication date
CN114125684A (en) 2022-03-01

Similar Documents

Publication Publication Date Title
JP7112919B2 (en) Smart device task processing method and device
CN107277153B (en) Method, device and server for providing voice service
US11270690B2 (en) Method and apparatus for waking up device
US11360737B2 (en) Method and apparatus for providing speech service
CN110781373B (en) List updating method and device, readable medium and electronic equipment
CN111786939B (en) Method, device and system for testing management platform of Internet of things
CN112416632B (en) Event communication method and device, electronic equipment and computer readable medium
CN110764983A (en) Test method, device, medium and electronic equipment
JP2020004379A (en) Method and device for releasing information, and method and device for processing information
CN114125684B (en) Smart speaker testing method and device, electronic equipment and storage medium
CN112689020A (en) Message transmission method, message middleware, electronic equipment and storage medium
CN111382058B (en) Service testing method and device, server and storage medium
CN115022328A (en) Server cluster, server cluster testing method and device and electronic equipment
CN114513552A (en) Data processing method, device, equipment and storage medium
CN114707951A (en) Alarm situation big data management method, device, equipment and storage medium
CN114125732A (en) Message processing method and device, storage medium and electronic equipment
CN111290873A (en) Fault processing method and device
CN111752625A (en) Method and device for interface mock
CN111770236A (en) Conversation processing method, device, system, server and storage medium
CN111831530A (en) Test method and device
CN114115784A (en) Control method and device based on intelligent microphone, electronic equipment and storage medium
CN114446295A (en) Voice data set generation method, device, equipment and computer readable medium
CN114708858A (en) Voice service method, device, electronic equipment and storage medium
CN114513548A (en) Directional call information processing method and device
CN111831531A (en) Test method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant