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

Pending Publication Date: 2022-05-06
AGRICULTURAL BANK OF CHINA
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The invention provides a test case generation method to solve the problems of unstable test case generation quality and difficult reuse of test cases, which can improve test case generation efficiency, enhance the standardization degree of test cases, and improve software test quality

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Test case generation method and device, electronic equipment and storage medium
  • Test case generation method and device, electronic equipment and storage medium
  • Test case generation method and device, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

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...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a test case generation method and device, electronic equipment and a storage medium, and the method comprises the steps: forming a business rule base according to input elements and operation atoms of each composition node in a business view; determining an operation process set according to the execution sequence of the composition nodes in the business view; and generating a test case based on the association relationship between the business rule base and the operation process set. According to the embodiment of the invention, the automatic generation of the test case is realized, the coverage degree of the test case is improved, the problem that the test case is difficult to reuse is solved, the test case generation efficiency can be improved, the standardization degree of the test case is enhanced, and the software test quality can be improved.

Description

technical field [0001] The invention relates to the technical field of computer applications, in particular to a test case generation method, device, electronic equipment and storage medium. Background technique [0002] Software testing is the process of using manual or automatic means to determine the function of the software system. The purpose of software testing is to check whether the software function meets the specified requirements, find errors in the software system, and whether the software design meets the requirements. The basic methods of software testing mainly include: Static testing, dynamic testing, functional testing, performance testing, black box testing and white box testing, etc. In the field of software testing, test requirements analysis and case writing are the key links of functional testing, which are related to the quality of testing work, which directly affects the soundness of software functions. At present, the writing of business test cases ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F11/36
CPCG06F11/3684G06F11/3696
Inventor 李元库王欣苏畅李佩刚高建瓴
Owner AGRICULTURAL BANK OF CHINA
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products