Method and device for generating test cases
A use case and interface testing technology, applied in software testing/debugging and other directions, can solve the problems of complex relationships and high test case redundancy, achieve low redundancy, improve function coverage and branch coverage, and reduce duplication of labor. Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Example
[0042] Below figure 2 As an example, the processing flow of the present invention will be described in detail. It should be understood that this description is for illustrative purposes only, and the embodiments according to the present invention are not limited thereto. figure 2 In, first obtain the source code A of the software to be tested, analyze the source code A, and generate a flowchart B based on the interface. Users write test cases to automatically generate configuration files and specify the interface function C to be tested. According to the interface-based flowchart B and the specified interface function C to be tested, an interface test case D is generated. The test case automatic generation framework generates test case execution result F according to interface test case D and user input parameter data E.
[0043] The specific steps are as follows. It can be understood that the following execution flow is only for exemplary purposes, and the embodiments accordin...
Example
[0066] Specifically, according to the flowchart of the interface in step S220 and the configuration file of the function call in step S230, the automatic test case generation framework is generated by combining the flowchart and the configuration information of the function. Automatic test case generation framework such as Figure 4 Shown. The test case automatic generation framework receives the specified function to be tested 1, according to the flow of the interface figure 2 And function call configuration file 3 to generate function test cases 4 for various situations.
[0067] Step S250: Obtain the interface function specified by the user, automatically generate a framework according to the test case generated in step S240, generate the interface test case based on the interface function and the flow chart of the interface. Design input parameter data for each interface function, and get the expected output according to the input parameters. Generate test cases based on th...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap