CN113515454A - Test case generation method, device, equipment and storage medium - Google Patents

Test case generation method, device, equipment and storage medium Download PDF

Info

Publication number
CN113515454A
CN113515454A CN202110754219.0A CN202110754219A CN113515454A CN 113515454 A CN113515454 A CN 113515454A CN 202110754219 A CN202110754219 A CN 202110754219A CN 113515454 A CN113515454 A CN 113515454A
Authority
CN
China
Prior art keywords
target
test
test case
voice
module
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
Application number
CN202110754219.0A
Other languages
Chinese (zh)
Inventor
李燕清
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Skyworth RGB Electronics Co Ltd
Original Assignee
Shenzhen Skyworth RGB Electronics Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Skyworth RGB Electronics Co Ltd filed Critical Shenzhen Skyworth RGB Electronics Co Ltd
Priority to CN202110754219.0A priority Critical patent/CN113515454A/en
Publication of CN113515454A publication Critical patent/CN113515454A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • G06F16/334Query execution
    • G06F16/3343Query execution using phonetics

Abstract

The invention belongs to the technical field of automatic testing, and discloses a test case generation method, a device, equipment and a storage medium. The method comprises the following steps: acquiring a target voice test instruction of a user; identifying a target keyword in the target voice test instruction; searching a target test case corresponding to the target keyword in a preset database; and executing the target test case to complete the target function test corresponding to the target test case. By the mode, the keywords in the voice test instruction are obtained according to the voice test instruction sent by the user, the test case of the corresponding function is obtained according to the keywords and executed, the function test is finally completed, the test case can be executed through voice, the corresponding function test can be completed without manual operation of a tester, the time consumed by the test is reduced, and the test efficiency is improved.

Description

Test case generation method, device, equipment and storage medium
Technical Field
The invention relates to the technical field of automatic testing, in particular to a test case generation method, a test case generation device, test case generation equipment and a storage medium.
Background
At present, many intelligent equipment products supporting voice need multiple rounds of test verification in the development process, the current test situation is that corresponding functional tests are completed through manual operation of testers, and meanwhile, when the specified functions are tested, test cases need to be manually screened and then tested, so that the process is time-consuming and low in efficiency.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a test case generation method, a test case generation device, test case generation equipment and a storage medium, and aims to solve the technical problems that in the prior art, manual execution of test cases consumes much time and is low in efficiency.
In order to achieve the above object, the present invention provides a test case generation method, which comprises the following steps:
acquiring a target voice test instruction of a user;
identifying a target keyword in the target voice test instruction;
searching a target test case corresponding to the target keyword in a preset database;
and executing the target test case to complete the target function test corresponding to the target test case.
Optionally, the identifying a target keyword in the target voice test instruction includes:
extracting a voice segment of the target voice test instruction;
recognizing a voice vocabulary corresponding to the voice fragment;
and searching a target vocabulary of the voice vocabulary in a preset database, and taking the target vocabulary as a target keyword.
Optionally, before searching for the target test case corresponding to the target keyword in the preset database, the method further includes:
obtaining a sample test case and a sample voice test instruction;
setting corresponding sample keywords for the sample test case according to the sample voice test instruction;
and storing the sample keywords and the sample test cases corresponding to the sample keywords into a preset database.
Optionally, after the target test case corresponding to the target keyword is searched in the preset database, the method further includes:
if the target test case corresponding to the target keyword is not found in the preset database, determining a corresponding test function module according to the target keyword;
searching a target test case corresponding to the functional test module in the sample test case;
and adding the target keywords and the target test cases corresponding to the target keywords into a preset database.
Optionally, the executing the target test case to complete the target function test corresponding to the target test case includes:
determining a corresponding target function module according to the target keyword;
and executing the target test case on the target function module and outputting a corresponding test result to complete the target function test corresponding to the target test case.
Optionally, the executing the target test case on the target function module and outputting a corresponding test result to complete the target function test corresponding to the target test case includes:
if the target test case normally runs on the target function module, outputting a test result of the normal running of the target function module;
storing the target function module and a target test case corresponding to the normal operation of the target function module into a first test result table;
and completing the target function test corresponding to the target test case according to the first test result table.
Optionally, the executing the target test case on the target function module and outputting a corresponding test result to complete the target function test corresponding to the target test case includes:
if the target test case does not normally run on the target function module, outputting a test result of the target function module which does not normally run;
storing the target function module and a target test case corresponding to the abnormal operation of the target function module into a second test result table;
and sending warning information to a screen display interface according to the second test result table to complete the target function test corresponding to the target test case.
In order to achieve the above object, the present invention further provides a test case generation device, including:
an acquisition module: the method comprises the steps of obtaining a target voice test instruction of a user;
an identification module: the target voice test instruction is used for identifying a target keyword in the target voice test instruction;
a searching module: the target test case is used for searching a target test case corresponding to the target keyword in a preset database;
an execution module: and the target function test module is used for executing the target test case and completing the target function test corresponding to the target test case.
In addition, in order to achieve the above object, the present invention further provides a test case generating device, including: the test case generation program is configured to implement the test case generation method as described above.
In addition, to achieve the above object, the present invention further provides a storage medium having a test case generation program stored thereon, wherein the test case generation program, when executed by a processor, implements the test case generation method as described above.
The method comprises the steps of obtaining a target voice test instruction of a user; identifying a target keyword in the target voice test instruction; searching a target test case corresponding to the target keyword in a preset database; and executing the target test case to complete the target function test corresponding to the target test case. By the mode, the keywords in the voice test instruction are obtained according to the voice test instruction sent by the user, the test case of the corresponding function is obtained according to the keywords and executed, the function test is finally completed, the test case can be executed through voice, the corresponding function test can be completed without manual operation of a tester, the time consumed by the test is reduced, and the test efficiency is improved.
Drawings
Fig. 1 is a schematic structural diagram of a test case generating device in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a test case generating method according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating a test case generating method according to a second embodiment of the present invention;
FIG. 4 is a schematic overall flowchart of an embodiment of a test case generation method according to the present invention;
fig. 5 is a block diagram of a test case generating apparatus according to a first embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a test case generating device in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the test case generation apparatus may include: a processor 1001, such as a Central Processing Unit (CPU), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a Wireless interface (e.g., a Wireless-Fidelity (Wi-Fi) interface). The Memory 1005 may be a Random Access Memory (RAM) Memory, or may be a Non-Volatile Memory (NVM), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration shown in FIG. 1 does not constitute a limitation of the test case generation apparatus and may include more or fewer components than shown, or some components in combination, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and a test case generation program.
In the test case generating apparatus shown in fig. 1, the network interface 1004 is mainly used for data communication with a network server; the user interface 1003 is mainly used for data interaction with a user; the processor 1001 and the memory 1005 in the test case generating device of the present invention may be provided in the test case generating device, and the test case generating device calls the test case generating program stored in the memory 1005 through the processor 1001 and executes the test case generating method provided by the embodiment of the present invention.
An embodiment of the present invention provides a test case generation method, and referring to fig. 2, fig. 2 is a schematic flow diagram of a first embodiment of a test case generation method according to the present invention.
In this embodiment, the test case generation method includes the following steps:
step S10: and acquiring a target voice test instruction of a user.
It should be noted that, the execution subject of this embodiment is an intelligent device capable of receiving a voice function, such as a smart television, a smart phone, a tablet computer, and the like, and may also be another intelligent device, which is not limited in this embodiment, and the intelligent terminal device can control the system to run a specified action through a voice instruction of the user, so as to achieve the purpose of function testing.
It should be noted that the target voice test instruction is an instruction sent by a user to generate a corresponding test case, and is acquired by a voice acquisition device of the intelligent terminal.
Step S20: and identifying a target keyword in the target voice test instruction.
It should be noted that the target keyword refers to a keyword with a function test module in a target voice test instruction sent by the user, for example, if the target voice test instruction currently sent by the user is "please open a bluetooth module", and the function test module that the user needs to test is a bluetooth module, the target keyword is "bluetooth module"; the target voice test instruction sent by the user currently is 'please open the photographing module', the function test module required to be tested by the user is the photographing module, and the target keyword is 'photographing module'.
It can be understood that after the target voice test instruction of the user is obtained, the target voice test instruction of the user is subjected to voice splitting, and a target keyword in the target voice test instruction is obtained through separate recognition.
In a specific implementation, in order to accurately identify a target keyword in a target voice test instruction, further, the identifying a target keyword in the target voice test instruction includes: extracting a voice segment of the target voice test instruction; recognizing a voice vocabulary corresponding to the voice fragment; and searching a target vocabulary of the voice vocabulary in a preset database, and taking the target vocabulary as a target keyword.
It should be noted that, extracting the voice segment in the target voice test instruction is to perform an extraction and splitting operation on the target voice test instruction, for example, if the current target test voice instruction of the user is "please open the bluetooth module", the voice segment extracting the target voice test instruction is a voice audio segment corresponding to "please", a voice audio segment corresponding to "open", and a voice audio segment corresponding to "bluetooth module".
It can be understood that the speech vocabulary corresponding to the recognized speech segment is the speech vocabulary corresponding to the recognized speech audio segment, for example, the speech audio segment corresponding to "please" is recognized, and the obtained corresponding speech vocabulary is "please"; identifying the voice audio frequency fragment corresponding to the opening to obtain a corresponding voice vocabulary of opening; and for the voice audio clip corresponding to the Bluetooth module, obtaining a corresponding voice vocabulary as the Bluetooth module.
In a specific implementation, after obtaining each voice vocabulary in a target voice test instruction, each voice vocabulary is respectively searched in a preset database, if a corresponding vocabulary exists in the preset database, the searched target vocabulary is used as a target keyword, for example, the voice vocabularies of "please", "open", "bluetooth module" are sequentially searched in the preset database, the vocabulary of "please", "open" is not found in the preset database, and the vocabulary of "bluetooth module" is searched, so that the target vocabulary is the "bluetooth module", and the "bluetooth module" is used as the target keyword.
Step S30: and searching a target test case corresponding to the target keyword in a preset database.
It should be noted that the preset database stores target keywords and target test cases corresponding to the target keywords, and after the target keywords are obtained according to the mapping relationship between the target keywords and the target test cases, the target test cases corresponding to the keywords can be obtained, for example, when the target keywords are "bluetooth modules", all the test cases of the corresponding bluetooth modules for functional tests, for example, the test cases corresponding to the interactive tests and the compatibility tests of the bluetooth modules, are the target test cases.
Step S40: and executing the target test case to complete the target function test corresponding to the target test case.
It should be noted that after the target test case is obtained, the target test case is automatically executed, the test is completed, and the test result of the target function test is obtained.
In a specific implementation, to obtain an accurate test result corresponding to a test case, further, the executing the target test case to complete a target function test corresponding to the target test case includes: determining a corresponding target function module according to the target keyword; and executing the target test case on the target function module and outputting a corresponding test result to complete the target function test corresponding to the target test case.
It should be noted that, a corresponding target function module is obtained according to the target keyword, for example, if the target keyword is a "bluetooth module", the corresponding target function module is a bluetooth module.
It can be understood that after the corresponding target test case is obtained, all the target test cases are executed based on the corresponding bluetooth module and the test result is output, so that a test result table is obtained and the corresponding target function test is completed.
In a specific implementation, in order to identify a test result more clearly, further, the executing the target test case on the target function module and outputting a corresponding test result to complete the target function test corresponding to the target test case includes: if the target test case normally runs on the target function module, outputting a test result of the normal running of the target function module; storing the target function module and a target test case corresponding to the normal operation of the target function module into a first test result table; and completing the target function test corresponding to the target test case according to the first test result table.
It should be noted that, the target test case is executed, if the test case can run normally, the test result of the functional module is normal, and the functional module and the corresponding normal test result are output to the normal test result table, that is, the first test result table, so as to complete the target function test corresponding to the target test case. For example, if the test case test results of all functions of the current bluetooth module are normal operation, the bluetooth module and the normal operation result are stored in the corresponding first test result table.
In a specific implementation, in order to enable a test result that does not normally run to be clearly displayed and enable a tester to timely complete adjustment according to the test result, further, the executing the target test case on the target function module and outputting a corresponding test result to complete a target function test corresponding to the target test case includes: if the target test case does not normally run on the target function module, outputting a test result of the target function module which does not normally run; storing the target function module and a target test case corresponding to the abnormal operation of the target function module into a second test result table; and sending warning information to a screen display interface according to the second test result table to complete the target function test corresponding to the target test case.
It should be noted that, the target test case is executed, if the test case fails to operate normally, the test result of the functional module is indicated to operate abnormally, the functional module and the corresponding test result of the abnormal operation need to be output to an abnormal test result table, that is, a second test result table, and warning information is sent to a screen display interface according to the second test result table to remind a tester of the current abnormal condition, so as to complete the corresponding target function test. For example, in the current function test of the bluetooth module, if the test case related to the bluetooth interaction cannot normally operate, the result of the abnormal operation of the bluetooth module and the test case of the corresponding bluetooth interaction function is stored in the second test result table.
The embodiment obtains a target voice test instruction of a user; identifying a target keyword in the target voice test instruction; searching a target test case corresponding to the target keyword in a preset database; and executing the target test case to complete the target function test corresponding to the target test case. By the mode, the keywords in the voice test instruction are obtained according to the voice test instruction sent by the user, the test case of the corresponding function is obtained according to the keywords and executed, the function test is finally completed, the test case can be executed through voice, the corresponding function test can be completed without manual operation of a tester, the time consumed by the test is reduced, and the test efficiency is improved.
Referring to fig. 3, fig. 3 is a flowchart illustrating a test case generating method according to a second embodiment of the present invention.
Based on the first embodiment, before the step S30, the test case generating method in this embodiment further includes:
step S301: and acquiring a sample test case and a sample voice test instruction.
It should be noted that the sample test case is all test cases which are obtained and stored in advance and used for testing all the functional modules in the intelligent device, and the sample voice test instruction is a voice test instruction which is listed in advance and is possibly sent by all users for testing the functional modules, so as to obtain the sample voice test instruction.
Step S302: and setting corresponding sample keywords for the sample test case according to the sample voice test instruction.
It should be noted that after the sample test cases and the sample voice test instructions are obtained, corresponding sample keywords may be set for all the sample test cases according to the sample voice test instructions.
Step S303: and storing the sample keywords and the sample test cases corresponding to the sample keywords into a preset database.
It should be noted that after the sample keywords are set, the sample keywords and the sample test cases corresponding to the sample keywords need to be stored in the preset database together, and meanwhile, the mapping relationships between the sample keywords and the sample test cases corresponding to the sample keywords also need to be stored in the preset database together.
In a specific implementation, in order to avoid that the target test case corresponding to the target keyword cannot be found, further, after the target test case corresponding to the target keyword is found in the preset database, the method further includes: if the target test case corresponding to the target keyword is not found in the preset database, determining a corresponding test function module according to the target keyword; searching a target test case corresponding to the functional test module in the sample test case; and adding the target keywords and the target test cases corresponding to the target keywords into a preset database.
It should be noted that, when the target test case corresponding to the target keyword is not found in the preset database, the corresponding test function module is determined according to the target keyword, the target test case corresponding to the function test module is found in the sample test case, and the target keyword and the target test case corresponding to the target keyword are added to the preset database. For example, if the current target keyword is "camera module", and the target test case corresponding to the "camera module" is not found in the preset database, the current functional test module is determined to be the camera module, all test cases related to the camera module are found in the sample test case and are used as the target test case, and meanwhile, the target keyword "prototype module" and the target test case corresponding to the prototype module are stored in the preset database.
In a specific implementation, as shown in fig. 4, a user sends a voice test instruction, after obtaining the voice test instruction, the device searches a test case corresponding to a keyword in the voice test instruction from a preset database, when the corresponding case is found, the case is executed, and when the case is not found, the keyword based on the voice test instruction is searched again in the sample test case, and if a corresponding target test case is not found in the sample test case, the user needs to return to obtain the voice test instruction again.
In the embodiment, a sample test case and a sample voice test instruction are obtained; setting corresponding sample keywords for the sample test case according to the sample voice test instruction; and storing the sample keywords and the sample test cases corresponding to the sample keywords into a preset database. By acquiring the samples in advance to set the corresponding keywords for the samples and storing the corresponding relation between the samples in the preset database, the process of searching the test cases corresponding to the keywords subsequently is saved, and the searching efficiency is improved.
In addition, referring to fig. 5, an embodiment of the present invention further provides a test case generation apparatus, where the test case generation apparatus includes:
the obtaining module 10 is configured to obtain a target voice test instruction of a user.
And the identification module 20 is used for identifying the target keyword in the target voice test instruction.
And the searching module 30 is configured to search a preset database for a target test case corresponding to the target keyword.
And the execution module 40 is configured to execute the target test case and complete a target function test corresponding to the target test case.
The embodiment obtains a target voice test instruction of a user; identifying a target keyword in the target voice test instruction; searching a target test case corresponding to the target keyword in a preset database; and executing the target test case to complete the target function test corresponding to the target test case. By the mode, the keywords in the voice test instruction are obtained according to the voice test instruction sent by the user, the test case of the corresponding function is obtained according to the keywords and executed, the function test is finally completed, the test case can be executed through voice, the corresponding function test can be completed without manual operation of a tester, the time consumed by the test is reduced, and the test efficiency is improved.
In an embodiment, the recognition module 20 is further configured to extract a voice segment of the target voice test instruction;
recognizing a voice vocabulary corresponding to the voice fragment;
and searching a target vocabulary of the voice vocabulary in a preset database, and taking the target vocabulary as a target keyword.
In an embodiment, the search module 30 is further configured to obtain a sample test case and a sample voice test instruction;
setting corresponding sample keywords for the sample test case according to the sample voice test instruction;
and storing the sample keywords and the sample test cases corresponding to the sample keywords into a preset database.
In an embodiment, the search module 30 is further configured to determine a corresponding test function module according to the target keyword if the target test case corresponding to the target keyword is not found in the preset database;
searching a target test case corresponding to the functional test module in the sample test case;
and adding the target keywords and the target test cases corresponding to the target keywords into a preset database.
In an embodiment, the executing module 40 is further configured to determine a corresponding target function module according to the target keyword;
and executing the target test case on the target function module and outputting a corresponding test result to complete the target function test corresponding to the target test case.
In an embodiment, the execution module 40 is further configured to output a test result of normal operation of the target function module if the target test case operates normally on the target function module;
storing the target function module and a target test case corresponding to the normal operation of the target function module into a first test result table;
and completing the target function test corresponding to the target test case according to the first test result table.
In an embodiment, the execution module 40 is further configured to output a test result that the target function module does not normally operate if the target test case does not normally operate on the target function module;
storing the target function module and a target test case corresponding to the abnormal operation of the target function module into a second test result table;
and sending warning information to a screen display interface according to the second test result table to complete the target function test corresponding to the target test case.
Since the present apparatus employs all technical solutions of all the above embodiments, at least all the beneficial effects brought by the technical solutions of the above embodiments are achieved, and are not described in detail herein.
In addition, an embodiment of the present invention further provides a storage medium, where the storage medium stores a test case generation program, and the test case generation program, when executed by a processor, implements the steps of the test case generation method described above.
Since the storage medium adopts all technical solutions of all the embodiments, at least all the beneficial effects brought by the technical solutions of the embodiments are achieved, and no further description is given here.
It should be noted that the above-described work flows are only exemplary, and do not limit the scope of the present invention, and in practical applications, a person skilled in the art may select some or all of them to achieve the purpose of the solution of the embodiment according to actual needs, and the present invention is not limited herein.
In addition, the technical details that are not described in detail in this embodiment may refer to the test case generation method provided in any embodiment of the present invention, and are not described herein again.
Further, it is to be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention or portions thereof that contribute to the prior art may be embodied in the form of a software product, where the computer software product is stored in a storage medium (e.g. Read Only Memory (ROM)/RAM, magnetic disk, optical disk), and includes several instructions for enabling a terminal device (e.g. a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. A test case generation method is characterized by comprising the following steps:
acquiring a target voice test instruction of a user;
identifying a target keyword in the target voice test instruction;
searching a target test case corresponding to the target keyword in a preset database;
and executing the target test case to complete the target function test corresponding to the target test case.
2. The method for generating test cases according to claim 1, wherein the identifying the target keywords in the target voice test instruction comprises:
extracting a voice segment of the target voice test instruction;
recognizing a voice vocabulary corresponding to the voice fragment;
and searching a target vocabulary of the voice vocabulary in a preset database, and taking the target vocabulary as a target keyword.
3. The method for generating test cases according to claim 1, wherein before searching for the target test case corresponding to the target keyword in the preset database, the method further comprises:
obtaining a sample test case and a sample voice test instruction;
setting corresponding sample keywords for the sample test case according to the sample voice test instruction;
and storing the sample keywords and the sample test cases corresponding to the sample keywords into a preset database.
4. The method for generating test cases according to claim 1, wherein after searching for the target test case corresponding to the target keyword in the preset database, the method further comprises:
if the target test case corresponding to the target keyword is not found in the preset database, determining a corresponding test function module according to the target keyword;
searching a target test case corresponding to the functional test module in the sample test case;
and adding the target keywords and the target test cases corresponding to the target keywords into a preset database.
5. The method for generating the test case according to claim 1, wherein the executing the target test case to complete the target function test corresponding to the target test case includes:
determining a corresponding target function module according to the target keyword;
and executing the target test case on the target function module and outputting a corresponding test result to complete the target function test corresponding to the target test case.
6. The method for generating test cases according to claim 5, wherein the executing the target test case on the target function module and outputting a corresponding test result to complete the target function test corresponding to the target test case includes:
if the target test case normally runs on the target function module, outputting a test result of the normal running of the target function module;
storing the target function module and a target test case corresponding to the normal operation of the target function module into a first test result table;
and completing the target function test corresponding to the target test case according to the first test result table.
7. The method for generating test cases according to claim 5, wherein the executing the target test case on the target function module and outputting a corresponding test result to complete the target function test corresponding to the target test case includes:
if the target test case does not normally run on the target function module, outputting a test result of the target function module which does not normally run;
storing the target function module and a target test case corresponding to the abnormal operation of the target function module into a second test result table;
and sending warning information to a screen display interface according to the second test result table to complete the target function test corresponding to the target test case.
8. A test case generation apparatus, comprising:
an acquisition module: the method comprises the steps of obtaining a target voice test instruction of a user;
an identification module: the target voice test instruction is used for identifying a target keyword in the target voice test instruction;
a searching module: the target test case is used for searching a target test case corresponding to the target keyword in a preset database;
an execution module: and the target function test module is used for executing the target test case and completing the target function test corresponding to the target test case.
9. A test case generation apparatus, the apparatus comprising: a memory, a processor, and a test case generation program stored on the memory and executable on the processor, the test case generation program configured to implement the test case generation method of any one of claims 1 to 7.
10. A storage medium having a test case generation program stored thereon, the test case generation program, when executed by a processor, implementing the test case generation method according to any one of claims 1 to 7.
CN202110754219.0A 2021-07-01 2021-07-01 Test case generation method, device, equipment and storage medium Pending CN113515454A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110754219.0A CN113515454A (en) 2021-07-01 2021-07-01 Test case generation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110754219.0A CN113515454A (en) 2021-07-01 2021-07-01 Test case generation method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113515454A true CN113515454A (en) 2021-10-19

Family

ID=78066408

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110754219.0A Pending CN113515454A (en) 2021-07-01 2021-07-01 Test case generation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113515454A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106874185A (en) * 2016-12-27 2017-06-20 中车株洲电力机车研究所有限公司 A kind of automated testing method driven based on voiced keyword and system
CN108647355A (en) * 2018-05-16 2018-10-12 平安普惠企业管理有限公司 Methods of exhibiting, device, equipment and the storage medium of test case
CN109979440A (en) * 2019-03-13 2019-07-05 广州市网星信息技术有限公司 Keyword sample determines method, audio recognition method, device, equipment and medium
WO2019165691A1 (en) * 2018-02-28 2019-09-06 平安科技(深圳)有限公司 Method, apparatus and device for automatically generating test case, and readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106874185A (en) * 2016-12-27 2017-06-20 中车株洲电力机车研究所有限公司 A kind of automated testing method driven based on voiced keyword and system
WO2019165691A1 (en) * 2018-02-28 2019-09-06 平安科技(深圳)有限公司 Method, apparatus and device for automatically generating test case, and readable storage medium
CN108647355A (en) * 2018-05-16 2018-10-12 平安普惠企业管理有限公司 Methods of exhibiting, device, equipment and the storage medium of test case
CN109979440A (en) * 2019-03-13 2019-07-05 广州市网星信息技术有限公司 Keyword sample determines method, audio recognition method, device, equipment and medium

Similar Documents

Publication Publication Date Title
CN109726103B (en) Test report generation method, device, equipment and storage medium
CN111026645B (en) User interface automatic test method and device, storage medium and electronic equipment
CN110955416A (en) Interface document generation method, device, equipment and computer storage medium
CN110110038B (en) Telephone traffic prediction method, device, server and storage medium
CN104462307A (en) Searching method and device for object in terminal
CN112052169A (en) Test management method, system, device and computer readable storage medium
CN110320378B (en) Method, apparatus, device and computer readable storage medium for applying for a quality control test
CN109726110B (en) Document testing method, device, apparatus and computer readable storage medium
CN111639157B (en) Audio marking method, device, equipment and readable storage medium
CN112597020A (en) Interface testing method and device, computer equipment and storage medium
CN112181835A (en) Automatic testing method and device, computer equipment and storage medium
CN111179907A (en) Voice recognition test method, device, equipment and computer readable storage medium
CN109637536B (en) Method and device for automatically identifying semantic accuracy
CN111415684A (en) Voice module testing method and device and computer readable storage medium
CN110750460A (en) Browser compatibility detection method, device, equipment and readable storage medium
CN114064473A (en) Vehicle machine system testing method and system, vehicle and computer readable storage medium
CN112395182A (en) Automatic testing method, device, equipment and computer readable storage medium
CN113434395A (en) Automatic generation method, device, equipment and medium of test case
CN112905451A (en) Automatic testing method and device for application program
CN112035412A (en) Data file importing method, device, storage medium and device
CN111368045A (en) User intention identification method, device, equipment and computer readable storage medium
CN113190434B (en) Test case generation method and device, storage medium and computer equipment
CN113515454A (en) Test case generation method, device, equipment and storage medium
CN110716867A (en) Method, device and equipment for detecting multi-page jump pressure
CN115859065A (en) Model evaluation method, device, equipment and storage medium

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