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
test Embodiment D
[0042] Below to figure 2 The processing flow of the present invention is described in detail as an example, and it can be understood that this description is for example purposes only, and the embodiments according to the present invention are not limited thereto. figure 2 In this method, first obtain the source code A of the software to be tested, analyze the source code A, and generate the flow chart B based on the interface. The user writes the test case to automatically generate the configuration file, specifying the interface function C to be tested. Generate an interface test case D according to the interface-based flow chart B and the specified interface function C that needs to be tested. The test case automatic generation framework generates the test case execution result F according to the interface test case D and the user input parameter data E.
[0043] The specific steps are as follows. It should be understood that the following execution process is for examp...
test Embodiment 4
[0067] Step S250: Obtain the interface function specified by the user, automatically generate the framework according to the test case generated in step S240, and generate the interface test case based on the interface function specified by the user and the flow chart based on the interface. Design the input parameter data for each interface function, and get the expected output according to the input parameters. Generate test cases based on the user's profile. Execute the test case, judge whether the output of the interface to be tested meets expectations, and obtain the test result.
[0068] Specifically, the corresponding nodes are queried in the interface-based flow chart, and according to the relevant information recorded by the nodes, starting from the function nodes to be tested, using the method of depth-first traversal, according to the linked list pointing to the corresponding interface node in each function According to the data, all possible calling processes of t...
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, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com