CN112799901A - Automatic testing method and device for voice interaction application program - Google Patents
Automatic testing method and device for voice interaction application program Download PDFInfo
- Publication number
- CN112799901A CN112799901A CN202110392043.9A CN202110392043A CN112799901A CN 112799901 A CN112799901 A CN 112799901A CN 202110392043 A CN202110392043 A CN 202110392043A CN 112799901 A CN112799901 A CN 112799901A
- Authority
- CN
- China
- Prior art keywords
- voice
- instruction
- tested
- voice instruction
- feedback information
- 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.)
- Pending
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 168
- 230000003993 interaction Effects 0.000 title claims abstract description 67
- 238000000034 method Methods 0.000 claims abstract description 36
- 238000013507 mapping Methods 0.000 claims abstract description 31
- 230000006870 function Effects 0.000 claims description 19
- 238000004590 computer program Methods 0.000 claims description 11
- 230000002452 interceptive effect Effects 0.000 claims description 10
- 230000008569 process Effects 0.000 abstract description 8
- 238000010586 diagram Methods 0.000 description 4
- 230000001960 triggered effect Effects 0.000 description 3
- 238000012795 verification Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000010998 test method Methods 0.000 description 2
- 238000004883 computer application Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/26—Functional testing
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L15/00—Speech recognition
- G10L15/22—Procedures used during a speech recognition process, e.g. man-machine dialogue
-
- G—PHYSICS
- G10—MUSICAL INSTRUMENTS; ACOUSTICS
- G10L—SPEECH ANALYSIS TECHNIQUES OR SPEECH SYNTHESIS; SPEECH RECOGNITION; SPEECH OR VOICE PROCESSING TECHNIQUES; SPEECH OR AUDIO CODING OR DECODING
- G10L15/00—Speech recognition
- G10L15/22—Procedures used during a speech recognition process, e.g. man-machine dialogue
- G10L2015/223—Execution procedure of a spoken command
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Quality & Reliability (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Computational Linguistics (AREA)
- Health & Medical Sciences (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Human Computer Interaction (AREA)
- Acoustics & Sound (AREA)
- Multimedia (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the invention provides a method and a device for automatically testing a voice interaction application program. Wherein, the method comprises the following steps: sending a voice instruction to be tested to the equipment to be tested; receiving voice broadcast feedback information generated after the to-be-tested device identifies the functional operation corresponding to the voice instruction; judging whether a target voice instruction corresponding to the voice broadcast feedback information is the same as the voice instruction or not based on a preset instruction and voice broadcast mapping relation set, and if so, marking that the current test example passes; the test case is a function point to be tested in the voice interaction application program, and the test case corresponds to the voice instruction. By adopting the automatic testing method for the voice interaction application program disclosed by the embodiment of the invention, the testing cost can be saved, the operation process is simple, and the testing efficiency of the voice interaction application program is improved.
Description
Technical Field
The invention relates to the technical field of computer application, in particular to a method and a device for automatically testing a voice interaction application program. In addition, an electronic device and a non-transitory computer readable storage medium are also related.
Background
In recent years, with the rapid development of computer technology, the speech recognition technology has become more mature and is widely applied to mobile terminal intelligent devices such as mobile phones and car machines. Particularly, in order to liberate the hands of a driver at the end of the car, ensure safe driving and use the car machine, the voice interaction application program of the car machine becomes an indispensable function of the car machine.
However, at present, as the voice interaction application program covers more and more functions on the intelligent device, more and more test cases for testing various instructions of the voice interaction application program exist, different test cases correspond to different function points of the voice interaction application program, and a large number of simple and logically similar test cases (such as functions of opening music, opening navigation and the like) exist. Testing examples that employ manual testing of these voice interaction applications tend to be inefficient and tedious. Therefore, how to implement the automatic testing of the voice interactive application program and remove the invalid instruction information timely and effectively becomes a problem to be solved in the industry.
Disclosure of Invention
Therefore, the invention provides a voice interaction application program automatic test method and device, and aims to solve the problems that in the prior art, the voice interaction application program instruction test implementation process is complicated, the cost is high, and the test efficiency and the test precision are poor.
The invention provides an automatic testing method for a voice interaction application program, which comprises the following steps:
sending a voice instruction to be tested to the equipment to be tested;
receiving voice broadcast feedback information generated after the to-be-tested device identifies the functional operation corresponding to the voice instruction;
judging whether a target voice instruction corresponding to the voice broadcast feedback information is the same as the voice instruction or not based on a preset instruction and voice broadcast mapping relation set, and if so, marking that the current test example passes;
the test case is a function point to be tested in the voice interaction application program, and the test case corresponds to the voice instruction.
Further, the sending the voice instruction to be tested to the device to be tested specifically includes: sending a voice instruction to a device to be tested according to a preset test sequence based on a test device or a voice instruction set preset with the voice instruction to be tested; the voice instruction set refers to a to-be-tested voice instruction arranged in a cloud background system corresponding to the testing equipment.
Further, the method for automatically testing the voice interaction application program further comprises the following steps:
if the voice broadcast feedback information is not acquired when the preset time threshold is reached, judging that the current test example does not pass, and executing the test of the next voice instruction; and/or the presence of a gas in the gas,
and if the current test case passes the mark, continuing to execute the test of the next voice instruction.
Further, the method for automatically testing the voice interaction application program further comprises the following steps: determining a command for identifying voice broadcast feedback information, a voice broadcast mapping relation set and a corresponding voice command to be tested in advance according to the test example;
whether the target voice instruction corresponding to the voice broadcast feedback information is the same as the voice instruction is judged based on a preset instruction and voice broadcast mapping relation set, and the method specifically comprises the following steps: and matching the voice broadcast feedback information with a preset instruction and a voice broadcast mapping relation set, inquiring a target voice instruction corresponding to the voice broadcast feedback information in the instruction and voice broadcast mapping relation set, and comparing whether the target voice instruction is the same as the voice instruction to be tested.
Further, the voice interaction application program to be tested is loaded on the device to be tested.
The invention also provides a voice interaction application program automatic testing device, which comprises:
the voice instruction sending unit is used for sending a voice instruction to be tested to the equipment to be tested;
the feedback information receiving unit is used for receiving voice broadcast feedback information generated after the to-be-tested equipment identifies the functional operation corresponding to the voice instruction;
the testing unit is used for judging whether a target voice instruction corresponding to the voice broadcast feedback information is the same as the voice instruction or not based on a preset instruction and voice broadcast mapping relation set, and if so, marking that the current testing example passes; the test case is a function point to be tested in the voice interaction application program, and the test case corresponds to the voice instruction.
Further, the voice instruction sending unit is specifically configured to send the voice instruction to the device to be tested according to a preset test sequence based on a test device or a voice instruction set in which the voice instruction to be tested is preset; the voice instruction set refers to a to-be-tested voice instruction arranged in a cloud background system corresponding to the testing equipment.
Further, the automatic testing device for the voice interaction application program further comprises: the instruction test control unit is used for judging that the current test example does not pass and executing the test of the next voice instruction if the voice broadcast feedback information is not acquired when the preset time threshold is reached; and/or if the current test case is marked to pass, continuing to execute the test of the next voice instruction.
Further, the automatic testing device for the voice interaction application program further comprises: the pre-configuration unit is used for determining an instruction for identifying voice broadcast feedback information, a voice broadcast mapping relation set and a corresponding voice instruction to be tested in advance according to the test example;
the test unit is specifically configured to: and matching the voice broadcast feedback information with a preset instruction and a voice broadcast mapping relation set, inquiring a target voice instruction corresponding to the voice broadcast feedback information in the instruction and voice broadcast mapping relation set, and comparing whether the target voice instruction is the same as the voice instruction to be tested.
Further, the voice interaction application program to be tested is loaded on the device to be tested.
Correspondingly, the invention also provides an electronic device, comprising: a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method for automated testing of a voice interactive application as claimed in any one of the preceding claims when the program is executed.
Accordingly, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of the method for automated testing of a voice interactive application as set forth in any of the above.
By adopting the automatic testing method of the voice interaction application program, the voice instruction to be tested is sent to the equipment to be tested, the voice instruction is recognized and the corresponding function operation is triggered and executed, the corresponding voice broadcast feedback information is generated for verification, and if the target voice instruction corresponding to the voice broadcast feedback information is judged to be the same as the voice instruction or not based on the preset instruction and voice broadcast mapping relation set, the testing example corresponding to the voice interaction application program installed in the equipment to be tested is judged to pass through. The method can effectively save the test cost, has a simple operation process, and greatly improves the test efficiency and precision of the test example of the voice interaction application program.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flowchart illustrating an automated testing method for a voice interaction application according to an embodiment of the present invention;
FIG. 2 is a schematic view of a complete flow chart of an automated testing method for a voice interaction application according to an embodiment of the present invention;
FIG. 3 is a schematic structural diagram of an automated testing apparatus for a voice interaction application according to an embodiment of the present invention;
fig. 4 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The following describes an embodiment of the voice interaction application program in detail based on the automatic testing method provided by the invention. As shown in fig. 1, which is a schematic flow chart of an automated testing method for a voice interaction application according to an embodiment of the present invention, a specific implementation process includes the following steps:
step 101: and sending a voice instruction to be tested to the device to be tested.
In the embodiment of the present invention, it is necessary To determine, in advance, the voice instruction information and a set of instructions for identifying voice broadcast feedback information and a voice broadcast mapping relationship, that is, an instruction-tts (text To speech) broadcast feedback content dictionary, according To the test case. And further, the instruction and voice broadcast mapping relation set is preset in corresponding test equipment (such as a mobile intelligent terminal) or a background cloud service system associated with the intelligent equipment. In addition, a voice instruction to be tested needs to be preset to corresponding testing equipment; or the background cloud service system associated with the intelligent device is convenient for the test device to call.
Further, based on a testing device or a voice instruction set preset with a voice instruction to be tested, the voice instruction is sent to the testing device according to a preset testing sequence. The voice instruction set refers to a voice instruction to be tested which is arranged in a cloud background system corresponding to the testing equipment. Specifically, a voice instruction request can be sent to the cloud background system through the testing device, and the obtained voice instruction to be tested is forwarded to the device to be tested. The device to be tested is provided with a voice interaction application to be tested (such as a voice assistant), and the voice interaction application has at least two functions: listen (to recognize the user's voice command), speak (i.e., TTS broadcast).
Step 102: and receiving voice broadcast feedback information generated after the to-be-tested equipment identifies the functional operation corresponding to the voice instruction.
In this step, the device to be tested is an intelligent terminal with a voice interaction application program, and after receiving the voice command, the device to be tested can identify whether the voice command is correct according to a preset rule, execute a corresponding operation, further generate corresponding voice broadcast feedback information, and perform TTS broadcast through the device to be tested.
Specifically, after receiving a correct voice command, a device to be tested (such as a mobile intelligent terminal) equipped with a voice interaction application to be tested broadcasts corresponding voice broadcast feedback information through TTS, for example: "opened video" or "opened music", etc. At this time, the voice interaction application program of one party as the testing device can receive the TTS broadcast of the device to be tested, and judge whether the target voice instruction corresponding to the voice broadcast feedback information is the same as the voice instruction according to a preset instruction and voice broadcast mapping relation set. Specifically, the voice broadcast feedback information can be matched with a preset instruction and voice broadcast mapping relation set, a target voice instruction corresponding to the voice broadcast feedback information in the instruction and voice broadcast mapping relation set is inquired, whether the target voice instruction is corresponding to the voice instruction to be tested is compared, and whether a test case corresponding to the voice instruction passes or not is marked according to a comparison result. It should be noted that the test case is a functional point to be tested (such as turning on a music function, turning off a flashlight function, etc.) in the voice interaction application program, and the test case corresponds to one or more of the voice commands.
Step 103: and judging whether a target voice instruction corresponding to the voice broadcast feedback information is the same as the voice instruction or not based on a preset instruction and voice broadcast mapping relation set, and if so, marking that the current test case passes. The test case is a function point to be tested in the voice interaction application program, and the test case corresponds to the voice instruction.
Specifically, if the voice broadcast feedback information is not acquired when the preset time threshold is reached, judging that the current test example fails, and executing the test of the next voice instruction; and if the current test case passes the mark, continuing to execute the test of the next voice instruction.
In the embodiment of the invention, a preset test device sends a voice instruction to be tested to a device to be tested, and the voice broadcast feedback information is obtained for explanation. The test equipment refers to an intelligent terminal with a voice interaction application program. The test device is preset with a voice instruction to be tested, an instruction for identifying voice broadcast feedback information and a voice broadcast mapping relation set. After the test equipment receives the voice broadcast feedback information, whether the voice broadcast feedback information is overtime is judged firstly, if not, whether the voice broadcast feedback information is correct is further evaluated, if so, a test case corresponding to the current voice instruction is marked to pass, and corresponding identification is carried out. And if the test equipment detects that the voice broadcast feedback information is not received even if the preset time threshold is reached or exceeded, judging that the current test case does not pass, and executing the test of the next voice instruction.
In a specific implementation process, after the voice broadcast feedback information is received by the testing equipment, the voice broadcast feedback information is used as an index, whether a voice instruction corresponding to the current voice broadcast feedback information in the instruction and voice broadcast mapping relation set is consistent with a voice instruction sent by the testing equipment or not is inquired, if yes, the current testing example is marked to pass, and if not, the current voice instruction example is considered to not pass the test. If the current test case passes, marking the test case as passing, and continuing to execute the operation of sending the next voice instruction; if the current voice instruction example is judged not to pass the test, the test is marked as failed, and the operation of sending the next voice instruction is continuously executed.
As shown in fig. 2, in a complete implementation process, two intelligent terminals with voice interaction applications are respectively used as a device 1 (test device) and a device 2 (device to be tested). A plurality of voice commands to be tested (such as music on, navigation on, etc.) are preset in the device 1, and a voice recognition skill command-voice broadcast feedback information dictionary is configured in the background for use by the device 1. Sending preset voice instructions in sequence after sending the awakening instruction based on the equipment 1; based on the fact that the device 2 receives the voice instruction, whether the voice instruction is effective or not is identified according to the voice instruction, and corresponding operation is executed, and then feedback information (such as voice feedback prompts of 'music opened', 'navigation opened', and the like) is broadcasted in a voice mode; after the device 1 receives the voice broadcast feedback information of the device 2, whether a voice instruction corresponding to the current voice broadcast feedback information is consistent with a sent voice instruction is inquired in a preset instruction-voice broadcast feedback information dictionary, if so, a test case corresponding to the current voice instruction is marked to pass, and then the next voice instruction test is continuously executed; if the device 1 still does not receive the voice broadcast feedback information after a certain time (for example, 10 or 20 seconds) is exceeded, it is determined that the test case corresponding to the current voice command fails to be verified, and the next voice command test is continuously executed.
By adopting the voice interaction application program automatic testing method of the embodiment of the invention, the voice instruction to be tested is sent to the device to be tested, the voice instruction is recognized and the corresponding functional operation is triggered and executed, the corresponding voice broadcast feedback information is generated for verification, and if the target voice instruction corresponding to the voice broadcast feedback information is judged to be the same as the voice instruction based on the preset instruction and voice broadcast mapping relation set, the test case corresponding to the voice interaction application program installed in the device to be tested is judged to pass through. The method can effectively save the test cost, has a simple operation process, and greatly improves the test efficiency and precision of the test example of the voice interaction application program.
Corresponding to the provided method for automatically testing the voice interaction application program of the voice interaction application program, the invention also provides a device for automatically testing the voice interaction application program of the voice interaction application program. Since the embodiment of the device is similar to the above-mentioned method embodiment, the description is simple, and please refer to the description of the above-mentioned method embodiment, and the following description of the embodiment of the voice interactive application program automatic testing device is only illustrative. Please refer to fig. 3, which is a schematic structural diagram of an apparatus for automatically testing a voice interaction application according to an embodiment of the present invention.
The invention relates to an automatic testing device for a voice interaction application program, which comprises the following parts:
a voice instruction sending unit 301, configured to send a voice instruction to be tested to a device to be tested;
a feedback information receiving unit 302, configured to receive voice broadcast feedback information generated after the to-be-tested device identifies the function operation corresponding to the voice instruction;
the testing unit 303 is configured to judge whether a target voice instruction corresponding to the voice broadcast feedback information is the same as the voice instruction based on a preset instruction and voice broadcast mapping relationship set, and if so, mark that the current test case passes; the test case is a function point to be tested in the voice interaction application program, and the test case corresponds to the voice instruction.
By adopting the voice interaction application program automatic testing device provided by the embodiment of the invention, the voice instruction to be tested is sent to the equipment to be tested, the voice instruction is recognized and the corresponding function operation is triggered and executed, the corresponding voice broadcast feedback information is generated for verification, and if the target voice instruction corresponding to the voice broadcast feedback information is judged to be the same as the voice instruction or not based on the preset instruction and the voice broadcast mapping relation set, the test case corresponding to the voice interaction application program installed in the equipment to be tested is judged to pass through. The method can effectively save the test cost, has a simple operation process, and greatly improves the test efficiency and precision of the test example of the voice interaction application program.
Corresponding to the provided voice interaction application program automatic testing method, the invention also provides electronic equipment. Since the embodiment of the electronic device is similar to the above method embodiment, the description is simple, and please refer to the description of the above method embodiment, and the electronic device described below is only schematic. Fig. 4 is a schematic physical structure diagram of an electronic device according to an embodiment of the present invention. The electronic device may include: a processor (processor) 401, a memory (memory) 402, and a communication bus 403, wherein the processor 401 and the memory 402 communicate with each other via the communication bus 403. Processor 401 may invoke logic instructions in memory 402 to perform a voice interaction application automation test method comprising: sending a voice instruction to be tested to the equipment to be tested; receiving voice broadcast feedback information generated after the to-be-tested device identifies the functional operation corresponding to the voice instruction; judging whether a target voice instruction corresponding to the voice broadcast feedback information is the same as the voice instruction or not based on a preset instruction and voice broadcast mapping relation set, and if so, marking that the current test example passes; the test case is a function point to be tested in the voice interaction application program, and the test case corresponds to the voice instruction.
Furthermore, the logic instructions in the memory 402 may be implemented in software functional units and stored in a computer readable storage medium when sold or used as a stand-alone product. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, an embodiment of the present invention further provides a computer program product, where the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, the computer program includes program instructions, and when the program instructions are executed by a computer, the computer can execute the method for automatically testing a voice interaction application provided by the above-mentioned method embodiments, where the method includes: sending a voice instruction to be tested to the equipment to be tested; receiving voice broadcast feedback information generated after the to-be-tested device identifies the functional operation corresponding to the voice instruction; judging whether a target voice instruction corresponding to the voice broadcast feedback information is the same as the voice instruction or not based on a preset instruction and voice broadcast mapping relation set, and if so, marking that the current test example passes; the test case is a function point to be tested in the voice interaction application program, and the test case corresponds to the voice instruction.
In another aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program is implemented by a processor to execute the method for automatically testing a voice interaction application provided in the foregoing embodiments, and the method includes: sending a voice instruction to be tested to the equipment to be tested; receiving voice broadcast feedback information generated after the to-be-tested device identifies the functional operation corresponding to the voice instruction; judging whether a target voice instruction corresponding to the voice broadcast feedback information is the same as the voice instruction or not based on a preset instruction and voice broadcast mapping relation set, and if so, marking that the current test example passes; the test case is a function point to be tested in the voice interaction application program, and the test case corresponds to the voice instruction.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (10)
1. An automated testing method for a voice interaction application program is characterized by comprising the following steps:
sending a voice instruction to be tested to the equipment to be tested;
receiving voice broadcast feedback information generated after the to-be-tested device identifies the functional operation corresponding to the voice instruction;
judging whether a target voice instruction corresponding to the voice broadcast feedback information is the same as the voice instruction or not based on a preset instruction and voice broadcast mapping relation set, and if so, marking that the current test example passes;
the test case is a function point to be tested in the voice interaction application program, and the test case corresponds to the voice instruction.
2. The method for automatically testing the voice interaction application program according to claim 1, wherein the sending of the voice instruction to be tested to the device to be tested specifically comprises: sending a voice instruction to a device to be tested according to a preset test sequence based on a test device or a voice instruction set preset with the voice instruction to be tested; the voice instruction set refers to a to-be-tested voice instruction arranged in a cloud background system corresponding to the testing equipment.
3. The automated testing method for voice interactive applications according to claim 1, further comprising:
if the voice broadcast feedback information is not acquired when the preset time threshold is reached, judging that the current test example does not pass, and executing the test of the next voice instruction; and/or the presence of a gas in the gas,
and if the current test case passes the mark, continuing to execute the test of the next voice instruction.
4. The automated testing method for voice interactive applications according to claim 1, further comprising: determining a command for identifying voice broadcast feedback information, a voice broadcast mapping relation set and a corresponding voice command to be tested in advance according to the test example;
whether the target voice instruction corresponding to the voice broadcast feedback information is the same as the voice instruction is judged based on a preset instruction and voice broadcast mapping relation set, and the method specifically comprises the following steps: and matching the voice broadcast feedback information with a preset instruction and a voice broadcast mapping relation set, inquiring a target voice instruction corresponding to the voice broadcast feedback information in the instruction and voice broadcast mapping relation set, and comparing whether the target voice instruction is the same as the voice instruction to be tested.
5. The method for automatically testing the voice interactive application program according to claim 1, wherein the device to be tested is loaded with the voice interactive application program to be tested.
6. An automated testing device for voice interactive applications, comprising:
the voice instruction sending unit is used for sending a voice instruction to be tested to the equipment to be tested;
the feedback information receiving unit is used for receiving voice broadcast feedback information generated after the to-be-tested equipment identifies the functional operation corresponding to the voice instruction;
the testing unit is used for judging whether a target voice instruction corresponding to the voice broadcast feedback information is the same as the voice instruction or not based on a preset instruction and voice broadcast mapping relation set, and if so, marking that the current testing example passes; the test case is a function point to be tested in the voice interaction application program, and the test case corresponds to the voice instruction.
7. The automated testing device of claim 6, wherein the voice instruction sending unit is specifically configured to send the voice instruction to the device to be tested according to a preset testing sequence based on a testing device or a voice instruction set in which the voice instruction to be tested is preset; the voice instruction set refers to a to-be-tested voice instruction arranged in a cloud background system corresponding to the testing equipment.
8. The automated voice interaction application testing apparatus of claim 6, further comprising: the instruction test control unit is used for judging that the current test example does not pass and executing the test of the next voice instruction if the voice broadcast feedback information is not acquired when the preset time threshold is reached; and/or if the current test case is marked to pass, continuing to execute the test of the next voice instruction.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the method for automated testing of a voice interaction application according to any of claims 1-5 are implemented when the program is executed by the processor.
10. A non-transitory computer-readable storage medium, having stored thereon a computer program, wherein the computer program, when executed by a processor, performs the steps of the method for automated testing of a voice interactive application according to any of claims 1-5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110392043.9A CN112799901A (en) | 2021-04-13 | 2021-04-13 | Automatic testing method and device for voice interaction application program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110392043.9A CN112799901A (en) | 2021-04-13 | 2021-04-13 | Automatic testing method and device for voice interaction application program |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112799901A true CN112799901A (en) | 2021-05-14 |
Family
ID=75816882
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110392043.9A Pending CN112799901A (en) | 2021-04-13 | 2021-04-13 | Automatic testing method and device for voice interaction application program |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112799901A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113220590A (en) * | 2021-06-04 | 2021-08-06 | 北京声智科技有限公司 | Automatic testing method, device, equipment and medium for voice interaction application |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109003602A (en) * | 2018-09-10 | 2018-12-14 | 百度在线网络技术(北京)有限公司 | Test method, device, equipment and the computer-readable medium of speech production |
US20190371322A1 (en) * | 2018-05-31 | 2019-12-05 | Beijing Baidu Netcom Science And Technology Co., Ltd. | Method, apparatus and system for testing intelligent voice device |
CN111415684A (en) * | 2020-03-18 | 2020-07-14 | 歌尔微电子有限公司 | Voice module testing method and device and computer readable storage medium |
CN111798833A (en) * | 2019-04-04 | 2020-10-20 | 北京京东尚科信息技术有限公司 | Voice test method, device, equipment and storage medium |
CN111933108A (en) * | 2020-09-25 | 2020-11-13 | 蘑菇车联信息科技有限公司 | Automatic testing method for intelligent voice interaction system of intelligent network terminal |
-
2021
- 2021-04-13 CN CN202110392043.9A patent/CN112799901A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20190371322A1 (en) * | 2018-05-31 | 2019-12-05 | Beijing Baidu Netcom Science And Technology Co., Ltd. | Method, apparatus and system for testing intelligent voice device |
CN109003602A (en) * | 2018-09-10 | 2018-12-14 | 百度在线网络技术(北京)有限公司 | Test method, device, equipment and the computer-readable medium of speech production |
CN111798833A (en) * | 2019-04-04 | 2020-10-20 | 北京京东尚科信息技术有限公司 | Voice test method, device, equipment and storage medium |
CN111415684A (en) * | 2020-03-18 | 2020-07-14 | 歌尔微电子有限公司 | Voice module testing method and device and computer readable storage medium |
CN111933108A (en) * | 2020-09-25 | 2020-11-13 | 蘑菇车联信息科技有限公司 | Automatic testing method for intelligent voice interaction system of intelligent network terminal |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113220590A (en) * | 2021-06-04 | 2021-08-06 | 北京声智科技有限公司 | Automatic testing method, device, equipment and medium for voice interaction application |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107146612B (en) | Voice guidance method and device, intelligent equipment and server | |
US11417331B2 (en) | Method and device for controlling terminal, and computer readable storage medium | |
CN111933108B (en) | Automatic testing method for intelligent voice interaction system of intelligent network terminal | |
CN108172223A (en) | Voice instruction recognition method, device and server and computer readable storage medium | |
CN103595869A (en) | Terminal voice control method and device and terminal | |
CN106293403B (en) | Learning control method and device in black screen standby state and mobile terminal | |
CN107943771B (en) | Response text generation method, device, server and computer readable medium | |
CN104978964A (en) | Voice control instruction error correction method and system | |
CN111326154B (en) | Voice interaction method and device, storage medium and electronic equipment | |
CN104978959A (en) | Voice control method and system | |
CN109741749B (en) | Voice recognition method and terminal equipment | |
CN112799901A (en) | Automatic testing method and device for voice interaction application program | |
CN105227557A (en) | A kind of account number processing method and device | |
CN114155853A (en) | Rejection method, device, equipment and storage medium | |
CN111179907A (en) | Voice recognition test method, device, equipment and computer readable storage medium | |
CN111031063B (en) | Data transmission method and device based on family education machine | |
CN110827827A (en) | Voice broadcasting method and electronic equipment | |
CN112908330B (en) | Voice wake-up method and device for terminal equipment and computer readable storage medium | |
CN109273004B (en) | Predictive speech recognition method and device based on big data | |
CN103941868A (en) | Voice-control accuracy rate adjusting method and system | |
CN115019788A (en) | Voice interaction method, system, terminal equipment and storage medium | |
CN112002325B (en) | Multi-language voice interaction method and device | |
CN114822534A (en) | Voice control method for intelligent tea table, intelligent tea table and storage medium | |
CN113489846A (en) | Voice interaction testing method, device, equipment and computer storage medium | |
CN113904955A (en) | Detection method, device and system of data transmission link |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210514 |
|
RJ01 | Rejection of invention patent application after publication |