Method and device for executing test case, terminal equipment and storage medium

By integrating a speech synthesis tool into the test case storage platform, voice instructions for test steps are generated and played, solving the problem of low testing efficiency in embedded software device testing and achieving efficient, accurate test execution and visual impairment-friendly performance.

CN120872808APending Publication Date: 2025-10-31SHENZHEN DONGRUI MEDICAL TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510811665.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-17
Publication Date
2025-10-31

AI Technical Summary

Technical Problem

During the testing of embedded software devices, testers need to frequently switch between devices and computer test case storage platforms, which increases the consumption of testing time and energy. Furthermore, visually inspecting test case steps can easily lead to overlooking the correctness of the content, which is particularly unfriendly, especially for visually impaired personnel.

Method used

The test case storage platform integrates a speech synthesis tool to generate and play voice instructions for test steps, including content and sequence numbers. Testers execute test cases by voice, and the platform supports pause, continue, skip, and end commands. Test results are automatically converted into text and displayed after voice input.

Benefits of technology

It improves the consistency and efficiency of testing, ensures the accurate verification of extensive test case content, reduces manual operations, and enhances friendliness to visually impaired individuals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120872808A_ABST
    Figure CN120872808A_ABST
Patent Text Reader

Abstract

The invention is suitable for the technical field of software testing, and provides a method and device for executing a test case, terminal equipment and a storage medium, the method comprises the following steps: responding to any test case on a selected test case storage platform, and calling a voice synthesis tool in the test case storage platform, the voice synthesis tool has at least one function of voice writing, voice output and voice synthesis; according to a plurality of test steps contained in the test case, a voice playing instruction corresponding to each test step is generated, and the voice playing instruction comprises the content of the test steps and the sequence number of the test steps; and according to the sequence number of the test step, playing the content of the test step in the voice playing instruction, so that a tester executes the test case according to the played content of the test step. According to the method, the test case content is played through the speech synthesis tool, so that the test efficiency can be improved, and the test case file content in a large range can be accurately checked.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application belongs to the field of software testing technology, and in particular relates to a method, apparatus, terminal device and storage medium for executing test cases. Background Technology

[0002] Currently, test cases are detailed operational guidelines used in software testing to verify whether a system or function meets expectations, and they are the core basis for test execution. Because Excel spreadsheets have powerful data processing and visualization capabilities and are easy to use, testers do not need professional programming skills to quickly create, edit, and manage test cases. Therefore, test cases are usually stored in Excel and managed through Excel.

[0003] However, during the testing of embedded software devices, testers often need to switch back and forth between the whole device software test and the computer test case storage platform (such as Excel), which increases the test time and energy consumption. In addition, testers mainly rely on visually to check the description of test case steps and expected results, which makes it easy to overlook the correctness of other content, and it is not very user-friendly for visually impaired people.

[0004] Although testers use an embedded demo version of the test system's testing software on their computers to reduce testing time and effort, this still requires frequent software restarts and manual input of test case results, significantly increasing the time and effort required. Furthermore, testers still need to visually review the test case steps and expected result descriptions during the testing process. Summary of the Invention

[0005] This application provides a method, apparatus, terminal device, and storage medium for executing test cases, which can solve the technical problem that in the existing embedded software device testing process, testers need to visually inspect the test case steps, resulting in low detection efficiency and difficulty in accurately verifying the large amount of test case content.

[0006] In a first aspect, embodiments of this application provide a method for executing test cases, applied to a terminal device, wherein the test case storage platform of the terminal device integrates at least a speech synthesis tool, and the method includes:

[0007] In response to selecting any test case on the test case storage platform, the speech synthesis tool in the test case storage platform is invoked, wherein the speech synthesis tool has at least one of the functions of speech writing, speech output, and speech synthesis;

[0008] Based on the multiple test steps included in the test case, a voice playback instruction corresponding to each test step is generated, wherein the voice playback instruction includes the content of the test step and the sequence number of the test step;

[0009] According to the sequence number of the test steps, the content of the test step in the voice playback instruction is played so that the tester can execute the test case according to the content of the played test step.

[0010] In one possible implementation of the first aspect, before invoking the speech synthesis tool in the test case storage platform in response to selecting any test case on the test case storage platform, the method includes:

[0011] Multiple test cases are stored on the test case storage platform;

[0012] The speech synthesis tool is obtained by integrating a preset speech tool with the test case storage platform.

[0013] Multiple test cases are imported into the speech synthesis tool so that when the speech synthesis tool is invoked, a speech playback instruction corresponding to each test step is generated based on the multiple test steps in the test cases.

[0014] In one possible implementation of the first aspect, during the process of playing the content of the test step in the voice playback instruction according to the sequence number of the test steps, so that the tester executes the test case according to the content of the played test step, the method includes:

[0015] In response to the tester's pause voice command, the playback of the test steps described in the current voice playback command will be temporarily stopped;

[0016] After temporarily pausing the playback of the test steps described in the current voice playback instruction, the playback of the test steps described in the current voice playback instruction will resume in response to the tester's continue voice instruction.

[0017] In one possible implementation of the first aspect, during the process of playing the content of the test step in the voice playback instruction according to the sequence number of the test steps, so that the tester executes the test case according to the content of the played test step, the method further includes:

[0018] In response to the tester's skip voice command, the current voice playback command will be skipped, and the content of the test step in the next voice playback command will be played.

[0019] In response to the tester's end voice command, the playback of all test steps in the voice playback commands will be terminated.

[0020] In one possible implementation of the first aspect, after playing the content of the test step in the voice playback instruction according to the sequence number of the test steps, so that the tester executes the test case according to the played content of the test step, the method includes:

[0021] In response to the preset voice input command from the tester, the test result voice information input by the tester is received;

[0022] The test results audio information is converted into text information using the speech synthesis tool.

[0023] The text information is displayed in the test results of the test case.

[0024] In one possible implementation of the first aspect, after displaying the text information in the test results of the test case, the method includes:

[0025] If the test result shows that the test passed, then obtain the next test case, generate the next voice playback instruction corresponding to the multiple test steps in the next test case, and play the content of the multiple test steps in the next test case according to the next voice playback instruction;

[0026] If the test result indicates that the test failed, playback will be temporarily stopped.

[0027] Secondly, embodiments of this application provide an apparatus for executing test cases, applied to a terminal device, wherein the test case storage platform of the terminal device integrates at least a speech synthesis tool, and the apparatus includes:

[0028] The determination module is used to call the speech synthesis tool in the test case storage platform in response to selecting any one of the test cases in the test case storage platform, wherein the speech synthesis tool has at least one of the functions of speech writing, speech output and speech synthesis.

[0029] The generation module is used to generate a voice playback instruction corresponding to each of the multiple test steps contained in the test case, wherein the voice playback instruction includes the content of the test step and the sequence number of the test step;

[0030] The playback module is used to play the content of the test steps in the voice playback instruction according to the sequence number of the test steps, so that the tester can execute the test case according to the content of the played test steps.

[0031] Thirdly, embodiments of this application provide a terminal device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the method for executing test cases as described above.

[0032] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program that, when executed by a processor, implements the method for executing test cases as described in any of the preceding claims.

[0033] Fifthly, embodiments of this application provide a computer program product that, when run on a terminal device, causes the terminal device to execute the method for executing test cases as described in any of the first aspects.

[0034] The beneficial effects of the embodiments in this application compared with the prior art are:

[0035] An embodiment of this application provides a method for executing test cases, comprising: in response to selecting any test case on a test case storage platform, invoking a speech synthesis tool in the test case storage platform, wherein the speech synthesis tool has at least one of the functions of speech writing, speech output, and speech synthesis; generating a speech playback instruction corresponding to each test step according to multiple test steps included in the test case, wherein the speech playback instruction includes the content of the test step and the sequence number of the test step; and playing the content of the test step in the speech playback instruction according to the sequence number of the test step, so that testers execute the test case according to the content of the played test step. This method, by playing the test case content through a speech synthesis tool, can improve the testing continuity and efficiency of the system under test, and can accurately verify the content of large test case files. Attached Figure Description

[0036] To more clearly illustrate the technical solutions in the embodiments of this application, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0037] Figure 1 This is a flowchart illustrating a method for executing test cases according to an embodiment of this application;

[0038] Figure 2 This is a flowchart illustrating a method for executing test cases according to another embodiment of this application;

[0039] Figure 3 This is a schematic diagram of the structure of a device for executing test cases according to an embodiment of this application;

[0040] Figure 4 This is a schematic diagram of the structure of a terminal device provided in an embodiment of this application. Detailed Implementation

[0041] In the following description, specific details such as particular system architectures and techniques are set forth for illustrative purposes and not for limitation, in order to provide a thorough understanding of the embodiments of this application. However, those skilled in the art will understand that this application may also be implemented in other embodiments without these specific details. In other instances, detailed descriptions of well-known systems, apparatuses, circuits, and methods have been omitted so as not to obscure the description of this application with unnecessary detail.

[0042] It should be understood that, when used in this application specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or a collection thereof.

[0043] It should also be understood that the term “and / or” as used in this application specification and the appended claims means any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0044] As used in this application specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if detected [the described condition or event]" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once detected [the described condition or event]," or "in response to detection [the described condition or event]."

[0045] Furthermore, in the description of this application and the appended claims, the terms "first," "second," "third," etc., are used only to distinguish descriptions and should not be construed as indicating or implying relative importance.

[0046] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of this application include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, the phrases "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0047] Currently, test cases are detailed operational guidelines used in software testing to verify whether a system or function meets expectations, and they are the core basis for test execution. Because Excel spreadsheets have powerful data processing and visualization capabilities and are easy to use, testers do not need professional programming skills to quickly create, edit, and manage test cases. Therefore, test cases are usually stored in Excel and managed through Excel.

[0048] However, during the testing of embedded software devices, testers often need to switch back and forth between the whole device software test and the computer test case storage platform (such as Excel), which increases the test time and energy consumption. In addition, testers mainly rely on visually to check the description of test case steps and expected results, which makes it easy to overlook the correctness of other content, and it is not very user-friendly for visually impaired people.

[0049] Although testers use an embedded demo version of the test system's testing software on their computers to reduce testing time and effort, this still requires frequent software restarts and manual input of test case results. This process significantly increases testing time and effort, leading to low testing efficiency. Furthermore, testers still need to visually review the test case steps and expected result descriptions during the testing process.

[0050] Therefore, in view of the above problems, this application provides a method for intelligent execution of test cases based on Excel, so as to improve the efficiency of testing and solve the technical problem that it is not easy to accurately verify the contents of large test case files.

[0051] Please see Figure 1 , Figure 1This is a flowchart illustrating a method for executing test cases according to an embodiment of this application. The method can be applied to a terminal device, whose test case storage platform integrates at least a speech synthesis tool. The method includes:

[0052] S11. In response to selecting any test case on the test case storage platform, invoke the speech synthesis tool in the test case storage platform, wherein the speech synthesis tool has at least one of the functions of speech writing, speech output, and speech synthesis.

[0053] S12. Based on the multiple test steps contained in the test case, generate a voice playback instruction corresponding to each test step, wherein the voice playback instruction includes the content of the test step and the sequence number of the test step.

[0054] S13. Play the contents of the test steps in the voice playback instructions according to the sequence number of the test steps, so that the testers can execute the test cases according to the contents of the played test steps.

[0055] It should be noted that in this embodiment, the executing entity can be a terminal device such as a server, and there are no specific limitations on this.

[0056] In this embodiment, the test case storage platform is a system or platform used to store, manage, and retrieve invalid test cases. The test case storage platform can be a software application that allows testers to create, edit, store, and retrieve test cases; for example, the test case storage platform can be an Excel spreadsheet.

[0057] A speech synthesis tool is a technology or tool that can convert text information into speech information and vice versa. In this embodiment, the speech synthesis tool has functions such as speech writing, speech output, and speech synthesis. Speech writing involves receiving speech signals, speech output involves generating and playing speech, and speech synthesis involves converting received speech signals into text information or converting text information to be output into speech signals.

[0058] A test case is a detailed operational guide used in software testing to verify whether a system or function meets expectations. It's a set of inputs, execution conditions, and expected results designed for a specific testing objective (such as functional verification or performance evaluation). Test cases typically include input data, expected output, and test steps. Test cases provide testers with clear operational steps and verification standards, ensuring the consistency and repeatability of the testing process. By executing test cases and comparing expected and actual results, problems in the software can be located, defects can be systematically discovered, or the correctness of the software can be verified.

[0059] Voice playback instructions are commands or instructions generated based on multiple test steps in a test case. Voice playback instructions can be used to instruct a speech synthesis tool to play specific voice content. In this embodiment, the voice playback instructions may include the content of the test steps and the sequence number of the test steps, that is, they can instruct the speech synthesis tool to play the content of the corresponding test steps in sequence.

[0060] Specifically, when a tester selects a test case on the test case storage platform, the system responds by invoking the speech synthesis tool within the platform. This prepares the system for converting the text content of the test case into speech. The selected test case is then analyzed, extracting its multiple test steps. A corresponding voice playback instruction is generated for each test step, containing the specific content of the test step and its sequence number within the test case. Finally, the test step content from each voice playback instruction is played sequentially according to its sequence number. Testers can listen to these voice instructions and execute the test case accordingly. This eliminates the need for testers to repeatedly switch between the test case storage platform and the test case content; the system guides testers through voice playback, improving testing efficiency and accuracy.

[0061] It is understood that the method for executing test cases provided in this application includes: in response to selecting any test case on a test case storage platform, invoking a speech synthesis tool in the test case storage platform, wherein the speech synthesis tool has at least one of the functions of speech writing, speech output, and speech synthesis; generating a speech playback instruction corresponding to each test step according to multiple test steps included in the test case, wherein the speech playback instruction includes the content of the test step and the sequence number of the test step; and playing the content of the test step in the speech playback instruction according to the sequence number of the test step, so that testers can execute the test case according to the content of the played test step. This method, by playing the test case content through a speech synthesis tool, can improve the testing continuity and efficiency of the system under test, and can accurately verify the content of large test case files.

[0062] In one possible implementation, before invoking the speech synthesis tool in the test case storage platform in response to selecting any test case on the test case storage platform, the method includes:

[0063] Store multiple test cases on the test case storage platform.

[0064] By integrating a pre-defined speech tool with a test case storage platform, a speech synthesis tool is obtained.

[0065] Import multiple test cases into the speech synthesis tool so that when the speech synthesis tool is invoked, it generates a speech playback command corresponding to each test step based on the multiple test steps in the test cases.

[0066] It should be noted that, as Figure 2 As shown, Figure 2 This is a flowchart illustrating a method for executing test cases according to another embodiment of this application. Figure 2 Before executing software test cases, test cases need to be written in a test case storage platform (such as Excel) according to the software requirements specification. This means multiple test cases are pre-stored on the test case storage platform. These test cases can cover different functions and scenarios of the software or application to ensure the comprehensiveness and effectiveness of the testing. In this embodiment, the structures of multiple test cases are basically the same, and key elements may include: module, priority, test case number, title, preconditions, operation steps, expected result, actual result, test result, test version, test time, and executor. Before testing is completed, key elements in the test cases, such as actual result, test result, test version, test time, and executor, are empty; other content cannot be empty. Excel tools (such as macros) can be used to automatically add test case elements; for example, the module and test case number can be automatically filled through dropdown menus.

[0067] Then, a pre-defined voice tool can be integrated with the test case storage platform to obtain a voice synthesis tool, thereby realizing functions such as voice synthesis, voice output, and voice writing. In this embodiment, if the test case storage platform is Excel, an Office plugin or third-party tool can be used in conjunction with Excel to achieve these functions. The voice output function can include reading area, rules, volume, and speech rate, enabling customized voice output of test case content.

[0068] After obtaining the speech synthesis tool, multiple test cases stored on the platform need to be imported into the tool so that it can access and process them. This allows the tool to generate corresponding voice playback commands based on the test steps when invoked. At this point, it's also necessary to customize the relevant parameters in the test cases' voice output function, such as reading area, rules, volume, and speech rate. Finally, the test can be executed.

[0069] It should be noted that an audio output device needs to be connected to the computer system under test so that the tester can hear the test steps in the voice playback instructions.

[0070] In one possible implementation, during the process of playing the content of the test steps in the voice playback instruction according to the sequence number of the test steps, so that the tester executes the test cases according to the content of the played test steps, the method includes:

[0071] In response to the tester's pause voice command, the playback of the test steps in the current voice playback command will be temporarily stopped.

[0072] After temporarily pausing the playback of the test steps in the current voice playback command, the playback of the test steps in the current voice playback command will resume in response to the tester's continue voice command.

[0073] It should be noted that the pause voice command is used to pause the currently playing voice content, while the resume voice command is used to resume playback of previously paused voice content. Pause and resume voice commands can be triggered through specific actions, such as clicking corresponding buttons on the interface or speaking specific voice keywords.

[0074] During the continuous execution of test cases on the system under test, the tester can interrupt playback at any time. Specifically, when the tester initiates a pause command, the system receives and responds to the pause command, pausing playback of the test steps within the current audio playback instruction. Then, when the tester initiates a resume command, the system receives and responds to the resume command, resuming playback of the test steps within the current audio playback instruction.

[0075] It should be understood that by setting pause and resume voice commands, testers can be provided with flexible voice playback control functions, allowing them to pause and resume voice commands at any time according to actual needs, thus improving the convenience and controllability of the testing process.

[0076] In one possible implementation, during the process of playing the content of the test steps in the voice playback instruction according to the sequence number of the test steps, so that the tester executes the test cases according to the content of the played test steps, the method further includes:

[0077] In response to the tester's skip voice command, the current voice playback command will be skipped, and the content of the test step in the next voice playback command will be played.

[0078] In response to the tester's end voice command, the playback of all test steps in the voice playback instructions will be terminated.

[0079] It should be noted that during the continuous execution of test cases on the system under test, testers can also execute operations to skip voice commands and end voice commands. The skip voice command instructs the system to skip the currently playing voice command and proceed directly to the next voice command. The end voice command instructs the system to terminate the playback of all voice commands. Similarly, skipping and ending voice commands can also be triggered through specific actions, such as clicking corresponding buttons on the interface or speaking specific voice keywords.

[0080] During the continuous execution of test cases on the system under test, testers may encounter situations such as being familiar with the content of the current step and no longer needing to listen to the audio playback; or finding that the current step does not match the current test environment and does not need to be executed. In such cases, testers can issue a skip audio command. The system receives and responds to the skip audio command, stops the currently playing audio content, skips the current audio playback command, and automatically locates and plays the next audio playback command, so that testers can quickly enter the execution phase of the next test step.

[0081] Once the tester has completed all required testing steps, or if the test needs to be interrupted, the tester can issue an end-of-test command. The system receives and responds to this command, ceasing playback of all test steps from the audio playback instructions. This ensures that testers can promptly stop the testing process, avoiding unnecessary audio interference, and also helps to allocate system resources efficiently.

[0082] It should be understood that by adding processing logic for skipping and ending voice commands, the system's control over the testing process can be further enhanced, allowing testers to adjust the testing schedule more flexibly according to the actual situation, thereby improving testing efficiency and convenience.

[0083] In one possible implementation, after playing the content of the test steps in the voice playback instruction according to the sequence number of the test steps, so that the tester executes the test cases according to the content of the played test steps, the method includes:

[0084] It responds to the tester's preset voice input command and receives the test result voice information input by the tester.

[0085] The test results are converted from audio to text using a speech synthesis tool.

[0086] Display the text information in the test results of the test cases.

[0087] It should be noted that the preset voice input command is used to inform the system to begin receiving test result information input by testers via voice. This preset voice input command can be triggered by specific voice keywords (such as "input test result"), clicking the preset voice input button on the interface, etc. The test result voice information is a description of the test case execution result expressed by the tester in voice form based on the actual test situation, such as "this test case passed".

[0088] After receiving the test result voice information input by the tester, the voice input function in the speech synthesis tool analyzes and processes the voice information, converting it into text information. Then, the text information is automatically input into the test result area of ​​the test case. This allows testers and other relevant personnel to intuitively see the test result of the test case without having to manually input or search for the voice recording. Furthermore, displaying the test results in text format facilitates subsequent data statistics, analysis, and report generation.

[0089] It should be noted that during the execution of software test cases, the system's microphone settings need to be checked to ensure that microphone permissions have been granted to the test case storage platform (such as Excel). Specifically, to ensure that the test case storage platform can use the microphone for dictation, microphone access must be enabled for the test case storage platform in the system privacy settings module, and the correct microphone must be set as the default device in the "Sound" settings in the control panel.

[0090] After completing these settings, you can open the test case file, activate the dictation function, and input the test results by voice. Specifically, use the installed speech synthesis tool to open the test case file, set up shortcut keys for enabling and pausing dictation, and when a test case fails or is blocked, click the dictation enable button in the dictation function to input the actual test results by voice. You can click the dictation pause button at any time to interrupt the voice input.

[0091] It should be understood that the above method enables testers to input test results by voice instead of manually, and automatically converts them into text information for display, which improves the convenience and efficiency of the testing process, and also facilitates the management and analysis of test results.

[0092] In one possible implementation, after displaying the text information in the test results of the test case, the method includes:

[0093] If the test result shows that the test passed, then obtain the next test case, generate the next voice playback instruction corresponding to the multiple test steps in the next test case, and play the content of the multiple test steps in the next test case according to the next voice playback instruction.

[0094] If the test result shows that the test failed, playback will be temporarily stopped.

[0095] Specifically, when a test case passes, the next test case can be read aloud. This involves obtaining the next test case, generating the corresponding next voice playback command, and then playing the content of multiple test steps within the next test case.

[0096] The reading can be paused when a test case fails. Additionally, the final test result can be quickly entered via voice using the dictation function shortcut.

[0097] It is understood that the method for executing test cases provided in this application conveys the content of the test cases to testers through voice playback and inputs the test results into the test result area through voice dictation. This reduces manual input throughout the process, ensuring the continuity and efficiency of the test. Secondly, during audio output, testers can promptly verify the correctness of the test case content by listening to the test case description. Thirdly, testers obtain test case information through hearing instead of sight, allowing them to concentrate better and improving the efficiency of the test.

[0098] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0099] A method for executing test cases corresponding to the above embodiment, Figure 3 The diagram shows a structural schematic of an apparatus for executing test cases according to an embodiment of this application. For ease of explanation, only the parts related to the embodiment of this application are shown.

[0100] Reference Figure 3 In this embodiment, the device 3 for executing test cases is applied to a terminal device. The test case storage platform of the terminal device integrates at least a speech synthesis tool. The device 3 for executing test cases includes:

[0101] The determination module 31 is used to call the speech synthesis tool in the test case storage platform in response to selecting any test case on the test case storage platform. The speech synthesis tool has at least one of the functions of speech writing, speech output, and speech synthesis.

[0102] The generation module 32 is used to generate a voice playback instruction corresponding to each test step based on the multiple test steps contained in the test case. The voice playback instruction includes the content of the test step and the sequence number of the test step.

[0103] The playback module 33 is used to play the content of the test steps in the voice playback instruction according to the sequence number of the test steps, so that the testers can execute the test cases according to the content of the played test steps.

[0104] It is understood that the apparatus for executing test cases provided in this embodiment 3, in response to selecting any test case on the test case storage platform, calls a speech synthesis tool in the test case storage platform through a determining module 31. The speech synthesis tool has at least one function: speech writing, speech output, and speech synthesis. Then, the generation module 32 generates a speech playback instruction corresponding to each test step according to the multiple test steps included in the test case. The speech playback instruction includes the content of the test step and the sequence number of the test step. Finally, the playback module 33 plays the content of the test step in the speech playback instruction according to the sequence number of the test step, so that the tester executes the test case according to the played test step content. This can improve the testing continuity and efficiency of the system under test, and can accurately verify the content of large test case files.

[0105] Furthermore, the device 3 for executing test cases includes:

[0106] The storage module is used to store multiple test cases on the test case storage platform.

[0107] The integration module is used to integrate with a pre-set speech tool and a test case storage platform to obtain a speech synthesis tool.

[0108] The import module is used to import multiple test cases into the speech synthesis tool, so that when the speech synthesis tool is invoked, a speech playback instruction corresponding to each test step is generated based on the multiple test steps in the test cases.

[0109] Furthermore, the device 3 for executing test cases includes:

[0110] The pause playback module is used to respond to the pause voice command from the tester, and will temporarily stop playing the test steps in the current voice playback command.

[0111] The continue playback module is used to resume playback of the test steps in the current voice playback command after temporarily pausing playback of the test steps in the current voice playback command, in response to the tester's continue voice command.

[0112] Furthermore, the device 3 for executing test cases also includes:

[0113] The skip playback module is used in response to the tester's skip voice command. It will skip the current voice playback command and play the content of the test step in the next voice playback command.

[0114] The terminate playback module is used to respond to the tester's end voice command and will terminate the playback of all test steps in the voice playback command.

[0115] Furthermore, the device 3 for executing test cases includes:

[0116] The voice receiving module is used to respond to the preset voice input commands of the testers and receive the test result voice information input by the testers.

[0117] The speech conversion module is used to convert the test results speech information into text information using a speech synthesis tool.

[0118] The results display module is used to display text information in the test results of the test cases.

[0119] Furthermore, the device 3 for executing test cases includes:

[0120] The first playback submodule is used to obtain the next test case if the test result shows that the test passed, generate the next voice playback instruction corresponding to multiple test steps in the next test case, and play the content of multiple test steps in the next test case according to the next voice playback instruction.

[0121] The second playback submodule is used to temporarily stop playback if the test result shows that the test failed.

[0122] It should be noted that the information interaction and execution process between the modules in the above-mentioned device 3 for executing test cases are based on the same concept as the method embodiment of this application. For details on their specific functions and technical effects, please refer to the method embodiment section, which will not be repeated here.

[0123] This application also provides a terminal device, such as... Figure 4 As shown, Figure 4 This is a schematic diagram of the structure of a terminal device provided in an embodiment of this application. (Refer to...) Figure 4 The terminal device 4 in this embodiment includes a memory 41, a processor 42, and a computer program stored in the memory 41 and executable on the processor 42. When the processor 42 executes the computer program, it implements the steps in the method embodiment for executing test cases as described above.

[0124] This application also provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps described in the various method embodiments above.

[0125] This application provides a computer program product that, when run on a mobile terminal, enables the mobile terminal to implement the steps described in the above-described method embodiments.

[0126] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments of this application can be implemented by a computer program instructing related hardware. The computer program can be stored in a computer-readable storage medium, and when executed by a processor, it can implement the steps of the various method embodiments described above. The computer program includes computer program code, which can be in the form of source code, object code, executable files, or certain intermediate forms. A computer-readable medium can include at least: any entity or device capable of carrying computer program code to a photographic device / terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium. Examples include USB flash drives, portable hard drives, magnetic disks, or optical disks. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electrical carrier signals or telecommunication signals.

[0127] In the above embodiments, the descriptions of each embodiment have different focuses. For parts that are not described in detail or recorded in a certain embodiment, please refer to the relevant descriptions of other embodiments.

[0128] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0129] In the embodiments provided in this application, it should be understood that the disclosed apparatus / network devices and methods can be implemented in other ways. For example, the apparatus / network device embodiments described above are merely illustrative. For instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.

[0130] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.

[0131] The above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application, and should all be included within the protection scope of this application.

Claims

1. A method for executing test cases, characterized in that, Applied to a terminal device, wherein the terminal device's test case storage platform integrates at least a speech synthesis tool, the method includes: In response to selecting any test case on the test case storage platform, the speech synthesis tool in the test case storage platform is invoked, wherein the speech synthesis tool has at least one of the functions of speech writing, speech output, and speech synthesis; Based on the multiple test steps included in the test case, a voice playback instruction corresponding to each test step is generated, wherein the voice playback instruction includes the content of the test step and the sequence number of the test step; According to the sequence number of the test steps, the content of the test step in the voice playback instruction is played so that the tester can execute the test case according to the content of the played test step.

2. The method for executing test cases as described in claim 1, characterized in that, Before invoking the speech synthesis tool in the test case storage platform in response to selecting any test case on the test case storage platform, the method includes: Multiple test cases are stored on the test case storage platform; The speech synthesis tool is obtained by integrating a preset speech tool with the test case storage platform; Multiple test cases are imported into the speech synthesis tool so that when the speech synthesis tool is invoked, a speech playback instruction corresponding to each test step is generated based on the multiple test steps in the test cases.

3. The method for executing test cases as described in claim 2, characterized in that, In the process of playing the content of the test step in the voice playback instruction according to the sequence number of the test steps, so that the tester executes the test case according to the content of the played test step, the method includes: In response to the tester's pause voice command, the playback of the test steps described in the current voice playback command will be temporarily stopped; After temporarily pausing the playback of the test steps described in the current voice playback instruction, the playback of the test steps described in the current voice playback instruction will resume in response to the tester's continue voice instruction.

4. The method for executing test cases as described in claim 3, characterized in that, In the process of playing the content of the test step in the voice playback instruction according to the sequence number of the test steps, so that the tester executes the test case according to the content of the played test step, the method further includes: In response to the tester's skip voice command, the current voice playback command will be skipped, and the content of the test step in the next voice playback command will be played. In response to the tester's end voice command, the playback of all test steps in the voice playback commands will be terminated.

5. The method for executing test cases as described in any one of claims 1-4, characterized in that, After playing the content of the test step in the voice playback instruction according to the sequence number of the test steps, so that the tester executes the test case according to the played test step content, the method includes: In response to the preset voice input command from the tester, the test result voice information input by the tester is received; The test results audio information is converted into text information using the speech synthesis tool. The text information is displayed in the test results of the test case.

6. The method for executing test cases as described in claim 5, characterized in that, After displaying the text information in the test results of the test case, the method includes: If the test result shows that the test passed, then obtain the next test case, generate the next voice playback instruction corresponding to the multiple test steps in the next test case, and play the content of the multiple test steps in the next test case according to the next voice playback instruction; If the test result indicates that the test failed, playback will be temporarily stopped.

7. An apparatus for executing test cases, characterized in that, Applied to terminal devices, wherein the test case storage platform of the terminal device integrates at least a speech synthesis tool, the device comprising: The determination module is used to call the speech synthesis tool in the test case storage platform in response to selecting any one of the test cases in the test case storage platform, wherein the speech synthesis tool has at least one of the functions of speech writing, speech output and speech synthesis. The generation module is used to generate a voice playback instruction corresponding to each of the multiple test steps contained in the test case, wherein the voice playback instruction includes the content of the test step and the sequence number of the test step; The playback module is used to play the content of the test steps in the voice playback instruction according to the sequence number of the test steps, so that the tester can execute the test case according to the content of the played test steps.

8. A terminal device, characterized in that, The method includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the method as claimed in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method as described in any one of claims 1 to 6.

10. A computer program product, characterized in that, Includes a computer program, which, when run, causes the method as described in any one of claims 1 to 6 to be performed.