Test case generation method, device, equipment and storage medium

A test case generation and test case technology, applied in the field of data processing, can solve the problems of low code coverage, waste of manpower, low efficiency, etc., to reduce costs, improve generation efficiency, and improve user experience.

Active Publication Date: 2021-08-10
BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
View PDF9 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] At present, in practical applications, most of the developers interpret the content of the software source code and manually set the test cases. This test case generation method not only wastes manpower, high cost, and low efficiency, but also uses the generated test cases for testing. When the code coverage is low

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, device, equipment and storage medium
  • Test case generation method, device, equipment and storage medium
  • Test case generation method, device, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] Embodiments of the present application are described in detail below, examples of which are shown in the drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below by referring to the figures are exemplary, and are intended to explain the present application, and should not be construed as limiting the present application.

[0045] Each embodiment in this application is mainly aimed at related technologies. When testing the developed software, most of the software source code content is interpreted by the developer, and the test cases are manually set. This test case generation method not only wastes manpower and costs. High efficiency, low efficiency, and when the generated test cases are used to test the source files, the code coverage is relatively low. A test case generation method is proposed.

[0046] In the embodiment of the present appli...

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 application proposes a test case generation method, device, device and storage medium, wherein the method includes: traversing the target source code file to obtain each method block contained in the target source code; analyzing and processing each method block to determine each method block Each non-logical operation formula included in the block and the logical operator connecting each non-logical operation formula; according to each non-logical operation formula and the logical operator connecting each non-logical operation formula, generate each test case frame corresponding to each method block ; According to the framework of each test case, generate the test case corresponding to the target source code. This method generates the test case frame corresponding to the method block by parsing the method block contained in the source code, and automatically generates the test case corresponding to the source code according to the test case frame, which not only improves the generation efficiency of the test case and the code coverage, and can also reduce the cost of manually setting test cases and improve user experience.

Description

technical field [0001] The present application relates to the technical field of data processing, in particular to a test case generation method, device, equipment and storage medium. Background technique [0002] After the new version of the software is developed, in order to ensure the stability and accuracy of the software, the software needs to be tested. The new version software is used as the test object. When testing the test object, it is necessary to analyze the function points of the test object to be tested, design test cases according to the function points to be tested, and then use the designed test cases to test the test object. [0003] At present, in practical applications, most of the developers interpret the content of the software source code and manually set the test cases. This test case generation method not only wastes manpower, high cost, and low efficiency, but also uses the generated test cases for testing. , the code coverage is low. Contents o...

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 Patents(China)
IPC IPC(8): G06F11/36
CPCG06F11/3684
Inventor 贾金莉
Owner BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
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