Test case generation method and device, electronic equipment and storage medium
A test case and atomic technology, applied in software testing/debugging, error detection/correction, electrical digital data processing, etc., can solve the problems of difficult test case reuse and unstable test case generation quality, and achieve automatic generation, The effect of improving test quality and improving coverage
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0027] figure 1 It is a flowchart of a method for generating a test case according to Embodiment 1 of the present invention. This embodiment is applicable to the automatic generation of software test cases. The method can be executed by a test case generation device, which can use hardware and / or implemented in the form of software, the device can be configured in a server or a device terminal. Such as figure 1 As shown, the method includes:
[0028] Step 110, constructing a business rule base according to the input elements and operation atoms of each component node in the business view.
[0029] Among them, the business view can be a visualized directed node graph generated according to the requirements specification or requirements specification of the software system, each component node in the business view can correspond to a function point in the software system, and the input element can be the function point that needs to be input information, an operation atom ca...
Embodiment 2
[0039] figure 2 It is a flow chart of a method for generating a test case according to Embodiment 2 of the present invention. This embodiment is specific to the above embodiment. By identifying the relationship between the business rule base and the operation flow set in the form of an association matrix, further Enhance the coverage of test cases. Such as figure 2 As shown, the method includes:
[0040] Step 210, traversing the component nodes in the business view, and extracting input elements and operation atoms for each component node.
[0041]In the embodiment of the present invention, the business view can be traversed, and the traversal method can include depth traversal or breadth traversal, etc. For the component nodes accessed in the business view, the component nodes can be extracted from the soft requirement specification or requirement specification Corresponding to information such as input elements and operation atoms of software functions, further, the ext...
Embodiment 3
[0097] image 3 is a schematic structural diagram of a test case generation device provided according to Embodiment 3 of the present invention. Such as image 3 As shown, the device includes: a rule determination module 301 , a process determination module 302 and a case generation module 303 .
[0098] The rule determination module 301 is configured to form a business rule base according to the input elements and operation atoms of each component node in the business view.
[0099] The flow determination module 302 is configured to determine an operation flow set according to the execution sequence of each component node in the business view.
[0100] The case generation module 303 is configured to generate a test case based on the association relationship between the business rule base and the operation flow set.
[0101] In the embodiment of the present invention, the rule determination module obtains input elements and operation atoms from the constituent nodes of the b...
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